hmp export#

Uses hmp.export(), hmp.open().

$ hmp export [-h] [-w WORKSPACE] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [--list] [--regen [{all,exports,figures}]] [--deliver] [--time TIME [TIME ...]] [--period START END] [--as FORMAT] [--to DEST] [--crs CRS] [--resolution RESOLUTION] [--layer LAYER] [--nodata NODATA] [--credentials PATH] [--allow-host HOST] [--max-download-bytes N] SIM_REF [VARIABLE ...]

Export data of a run: fields, series, layers, the budget, or the whole run

ArgumentWhat it does
SIM_REFFull sim_id, unique hex prefix, name, or an @-selector (@last, @best:METRIC, @worst:METRIC, @running)
VARIABLEWhat to export: names from --list, or "all" for everything the run holds, each in its natural format
--listPrint what this run can export, by kind, and write nothing
--regen [REGEN]Write again what the run recorded: its exports (exports/index.json), its figures (figures/index.json), or both, the default one of all | exports | figures
--deliverSend once more the files the [[export]] blocks of the sealed run name, and every file whose bytes changed since. Takes no variable and no export option
--time TIME [TIME ...]Instants to write: dates (2002-10-15), "first" or "last". A date takes the stress period that holds it. Default: the whole simulation
--period START ENDA window of the simulation, two dates. Every period it overlaps is written
--as FORMATFile format, a name the export registry serves: netcdf, geotiff, csv, a view format like rocrate, or one an installed package adds. Default: the natural format of each data, or the --to extension
--to DESTWhere under runs/<run>/exports/: a name with an extension is one exact file, and gives the format; any other is a folder, with automatic names (default: runs/<run>/exports/)
--crs CRSOutput CRS of rasters and vector layers, e.g. EPSG:4326 (default: the model CRS)
--resolution RESOLUTIONPixel size of a GeoTIFF, in units of the output CRS (default: the side of the smallest cell)
--layer LAYERModel layer of a field of several layers (0 is the top one)
--nodata NODATAFill value of the cells a GeoTIFF has no data for (default: -9999)

Also takes the shared options --workspace --format --verbosity --quiet --verbose --debug --credentials --allow-host --max-download-bytes.

Examples

$ hmp export my_run --list
$ hmp export my_run all
$ hmp export my_run head watertable_depth --time 2002-10-15
$ hmp export my_run discharge discharge_obs --period 2001-01-01 2002-12-31
$ hmp export my_run watershed hydrographic_network_reference
$ hmp export my_run watertable_depth --time last --to watertable.tif --crs EPSG:4326
$ hmp export my_run head --to maps/ --as geotiff
$ hmp export my_run --regen
$ hmp export my_run --regen figures

Exit codes it sets itself: 1 2. All exit codes.