Vortex-cen scripts¶
get_simulation_output.py¶
API for the extraction of files archived with vortex in a research context.
Usage examples:
With a default configuration file under vortex_cen/conf providing the full resource(s) description. In this example, the S2MReanalysis.ini configuration file allows to extract data from the S2M reanalysis over the entire period and all geometries covered by the dataset.
Before any actual extraction, the list of files that will be extracted can be checked as follows :
get_simulation_output -c S2MReanalysis.ini --configsection SafranFlatReanalysis --verbose --checkonly
Note
The actual extraction can be launched by removing the “–checkonly” argument.
WARNING : never do that for the entire reanalysis dataset
In order to limit the extraction to one year and one geometry :
get_simulation_output -c S2MReanalysis.ini --configsection SafranFlatReanalysis --verbose --checkonly
-b 2024080106 -e 2025080106 -g cor2_flat
In order to use a custom configuration file, provide the absolute or relative path to the target file. If this target file contains only the “DEFAULT” section or a single named section, simply type :
get_simulation_output -c path/to/user/file.ini