This function should not be called directly ; it is presented here mainly for documenting the syntax of the strings describing a period of time
Init a CliMAF ‘period’ object
Parameters: | dates (str) – must match YYYY[MM[DD[HH[MM]]]][(-|_)YYYY[MM[DD[HH[MM]]]]] , or be ‘fx’ for fixed fields |
---|---|
Returns: | the corresponding CliMAF ‘period’ object |
When using only YYYY, can omit some Ys (for zeros). Cannot handle year 0000
Examples :
CliMAF internally handles date-time values with a 1 minute accurracy; it can provide date information to external scripts in two forms; see keywords ‘period’ and ‘period_iso’ in cscript()
This function should not be called directly ; it is presented here mainly for documenting the list of organizations it can handle for function dataloc
Returns the shortest list of (local or remote) files which include the data for the list of (facet,value) pairs provided
Method :
This function should not be called directly ; it is presented here mainly for documenting the syntax of argument url of function dataloc when organization is set to generic
Allow to describe a generic file organization : the list of files returned by this function is composed of files which :
- contain the variable provided in kwargs
- match the period` provided in kwargs
In the pattern strings, no keyword is mandatory. However, for remote files, filename pattern must include ${varname}, which is instanciated by variable name or filenameVar (given via calias()); this is for the sake of efficiency (please complain if inadequate)
Example :
>>> selectGenericFiles(project='my_projet',model='my_model', simulation='lastexp', variable='tas', period='1980', urls=['~/DATA/${project}/${model}/*${variable}*YYYY*.nc)']
/home/stephane/DATA/my_project/my_model/somefilewith_tas_Y1980.nc
In the pattern strings, the keywords that can be used in addition to the argument names (e.g. ${model}) are: