Load(): Requires to have $YEAR$+$MONTH$+$DAY$ or $START_DATE$ in the path pattern of an experimental dataset
This extra check was added on request from Ruben and Virginie (see e-mails below).
As reported by @llledo , it is too restrictive if willing to load observational data (that usually contain only YEAR
+MONTH
in the path pattern) as experiments, in order to be able to load other frequencies than hourly or daily.
I will change it to look for only any of YEAR
+MONTH
or START_DATE
.
E-mail history:
Hi Nicolau,
Ruben has loaded b02p data using 19790301 as a startdate option.
I do not understand how this is possible since b02p has 19501101 as
a startdate and only this stardate. Some data were loaded anyway.
Best regards
Virginie
Hello,
This has happened because Ruben configured Load() to do so with the following code:
b02p <- list(path = '/home/Earth/rcruzgar/Desktop/Experiments/b02p/ice_b02p_19501101_fc0-2_195011_202510_Arctic_Projection_drown.nc')
startdates_nsidc <- '19790301'
Data_nsidc <- Load('sic', exp = list(b02p), obs = '/esnas/obs/nsidc/nsidc0079_bootstrap/monthly_mean/sic/sic_nh/$VAR_NAME$_$YEAR$$MONTH$.nc',
sdates = startdates_nsidc, storefreq = "monthly", sampleperiod = 1, output = "lonlat", latmin=60, latmax=90, lonmin=0, lonmax=360)
To avoid this, the tag $START_DATE$ should always be used when defining the path pattern of an experimental dataset of your own, as follows:
b02p <- list(path = '/home/Earth/rcruzgar/Desktop/Experiments/b02p/ice_b02p_$START_DATE$_fc0-2_195011_202510_Arctic_Projection_drown.nc')
If there are no tags in the path pattern Load() fetches the data from the path you specified regardless of the requested start dates, variable, frequency, ...
Regards,
Nico
Hi,
Would it be possible to include a security check that if the START_DATE tag is not
included in the path, then Load stops ?
Thanks a lot for your help
Best regards
Virginie