@@ -155,11 +155,12 @@ def equal_timestep(self, time_step_h=CONFIG['trop_cyclone']['time_step_h']):
155155
156156 def calc_random_walk (self , ens_size = 9 , ens_amp0 = 1.5 , max_angle = np .pi / 10 , \
157157 ens_amp = 0.1 , seed = CONFIG ['trop_cyclone' ]['random_seed' ], decay = True ):
158- """ Generate random tracks for every track contained.
158+ """ Generate synthetic tracks. An ensamble of tracks is computed for
159+ every track contained.
159160
160161 Parameters:
161- ens_size (int, optional): number of created tracks per original
162- track. Default 9.
162+ ens_size (int, optional): number of ensamble per original track.
163+ Default 9.
163164 ens_amp0 (float, optional): amplitude of max random starting point
164165 shift degree longitude. Default: 1.5
165166 max_angle (float, optional): maximum angle of variation, =pi is
@@ -213,6 +214,11 @@ def calc_random_walk(self, ens_size=9, ens_amp0=1.5, max_angle=np.pi/10, \
213214 LOGGER .info ('No land decay coefficients could be applied. %s' ,\
214215 str (err ))
215216
217+ @property
218+ def size (self ):
219+ """ Get longitude from coord array """
220+ return len (self .data )
221+
216222 def plot (self , title = None ):
217223 """Track over earth. Historical events are blue, probabilistic black.
218224
@@ -347,11 +353,6 @@ def _apply_land_decay(self, v_rel, p_rel, s_rel=True, check_plot=False):
347353 if check_plot :
348354 _check_apply_decay_plot (self .data , orig_wind , orig_pres )
349355
350- @property
351- def size (self ):
352- """ Get longitude from coord array """
353- return len (self .data )
354-
355356 def _calc_land_params (self ):
356357 """Compute tracks attributes dependent on their coordinates:
357358 on_land and dist_since_lf.
0 commit comments