File name formats and dates

File name formats and dates#

Various types of files are necessary to run pyCIF. pyCIF accepts generic formats when file names are dependent on, e.g., the date of the simulation. In this case, the generic date-dependent file name should be given as a string compatible with the Python datetime function, strptime as detailed here.

For instance, if your meteo file names are function of the current date, the following syntax will be required in the Yaml file:

mymeteo: /mymeteo_folder/mymeteo_%Y%m%d_%H%M.nc

pyCIF will automatically recognize a date format as YYYYMMDD_HHMM, i.e. 20140327_1212 corresponds to March 27 th, 2014 at 12:12.