@@ -38,7 +38,7 @@ def plot_analysis(chl: DataArray, period: Period):
3838 continue
3939 ScenePlot ().plot (
4040 chl [t ],
41- title = f"Analysis { time } " ,
41+ title = f"(Re)analysis { time } " ,
4242 fn = file ,
4343 cbar_label = r"chlorophyll concentration (mg m$^{-3}$)" ,
4444 norm = plc .SymLogNorm (1.0 , linscale = 0.1 , vmin = 0.0 , vmax = 100.0 ),
@@ -49,14 +49,14 @@ def plot_analysis(chl: DataArray, period: Period):
4949
5050
5151def plot_forecast (
52- chl : DataArray , period : Period , sigma : Number | None , h : int
52+ chl : DataArray , period : Period , fwhm : Number | None , h : int
5353):
5454 chl = period .slice (chl )
5555
56- if sigma is not None :
56+ if fwhm is not None :
5757 g = Gaussian (chl .dtype )
5858 chl = DataArray (
59- data = g .apply_to (chl .data , sigma = sigma ),
59+ data = g .apply_to (chl .data , fwhm = fwhm ),
6060 coords = chl .coords ,
6161 dims = chl .dims ,
6262 attrs = chl .attrs ,
@@ -79,13 +79,13 @@ def plot_forecast(
7979 )
8080
8181
82- def plot_observed (chl : DataArray , period : Period , sigma : Number | None ):
82+ def plot_observed (chl : DataArray , period : Period , fwhm : Number | None ):
8383 chl = period .slice (chl )
8484
85- if sigma is not None :
85+ if fwhm is not None :
8686 g = Gaussian (chl .dtype )
8787 chl = DataArray (
88- data = g .apply_to (chl .data , sigma = sigma ),
88+ data = g .apply_to (chl .data , fwhm = fwhm ),
8989 coords = chl .coords ,
9090 dims = chl .dims ,
9191 attrs = chl .attrs ,
@@ -114,7 +114,7 @@ def generate_figures(args):
114114
115115 obs = reader .read (args .cube_id , depth_level = 3.0 )
116116 ref , pre = XGB (args ).predict (obs )
117- plot_observed (ref , period = period , sigma = args .sigma )
117+ plot_observed (ref , period = period , fwhm = args .fwhm )
118118 pre .close ()
119119 ref .close ()
120120 obs .close ()
@@ -130,7 +130,7 @@ def generate_figures(args):
130130 for h in [1 , 2 , 3 , 4 , 5 , 6 , 7 ]:
131131 obs = reader .read (args .cube_id , depth_level = 3.0 )
132132 ref , pre = XGB (args ).predict (obs , h = h )
133- plot_forecast (pre , period = period , sigma = args .sigma , h = h )
133+ plot_forecast (pre , period = period , fwhm = args .fwhm , h = h )
134134 pre .close ()
135135 ref .close ()
136136 obs .close ()
@@ -157,29 +157,29 @@ def generate_figures(args):
157157 )
158158 parser .add_argument (
159159 "--analysis" ,
160- help = "plot BGCM analysis" ,
160+ help = "plot BGCM (re) analysis" ,
161161 action = "store_true" ,
162162 default = True ,
163163 required = False ,
164164 dest = "analysis" ,
165165 )
166166 parser .add_argument (
167167 "--no-analysis" ,
168- help = "do not plot BGCM analysis" ,
168+ help = "do not plot BGCM (re) analysis" ,
169169 action = "store_false" ,
170170 default = False ,
171171 required = False ,
172172 dest = "analysis" ,
173173 )
174174 parser .add_argument (
175175 "--gaussian-filter" ,
176- help = "specify the standard deviation (pixels) of a lateral "
177- "Gaussian filter applied to the forecast. If not specified "
178- "no filter is applied." ,
176+ help = "specify the full width at half maximum (pixels) of "
177+ "a lateral Gaussian filter applied to the forecast. "
178+ "If not specified no filter is applied." ,
179179 choices = [0.5 , 1.0 , 1.5 , 2.0 , 2.5 , 3.0 , 3.5 , 4.0 , 4.5 , 5.0 ],
180180 type = float ,
181181 required = False ,
182- dest = "sigma " ,
182+ dest = "fwhm " ,
183183 )
184184 parser .add_argument (
185185 "--period-start" ,
0 commit comments