hmp show#

Uses hmp.show(), hmp.open().

$ hmp show [-h] [-w WORKSPACE] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [--profile | --point | --rank METRIC | --figure NAME | --report | --table NAME] [--detail] [--to FILE] [--var NAME] [--xy X Y | --cell CELL] [--layer LAYER | --depth METERS] [--label LABEL] [--timestep TIMESTEP] [-n LIMIT] [--worst] [--mixed-windows] [--time TIME] [--opt NAME=VALUE] [--engine {static,interactive}] [--data DIR] [--overview RUN] [--preset {research,management}] [--station ID] [--strict] [--open] [REF ...]

Show a run, a session or a project: summary, profile, point, rank, figure, report

ArgumentWhat it does
REFA run (directory, name, sim_id prefix or @-selector), a session, or '.' for the project. Several runs are read by --point only. Default: the project.
--profilePrint where the time went, not the summary
--pointRead variables in one cell (--var, then --xy or --cell)
--rank METRICRank the runs of the project by METRIC, best first (-n, --worst)
--figure NAMEDraw one figure: a name 'hmp config figures' lists, a registered variable or a preset
--reportWrite the report of a run or of a session
--table NAMEPrint one sealed table
--detailWith the summary of a run, print the facts of the index and the Zarr layout
--to FILEWrite the figure, the point table or the sealed table here
--var NAMEField to read, persisted or virtual. Repeat for several fields.
--xy X YCoordinates in the simulation CRS
--cell CELLZero-based cell index
--layer LAYERZero-based layer index
--depth METERSDepth below the local model top
--label LABELName of the point reported in the table
--timestep TIMESTEPKeep a single timestep (negative counts from the end)
-n, --limit LIMITRows to show (default: 1)
--worstThe worst runs, not the best
--mixed-windowsRank scores computed on different windows, stations or rule versions together
--time TIMEInstant a map draws: a date (2002-10-15), "first" or "last"
--opt NAME=VALUERequest field of a variable or a preset, repeatable (station, layer, scale): a TOML value (false, 12, [8, 4], "text") or bare text
--engine ENGINEEngine of a variable or a preset figure (default: its own) one of static | interactive
--data DIRWrite the tables behind a variable or a preset figure to DIR, one <stem>_<key>.csv each, and draw nothing
--overview RUNThe sealed overview of the site. Default: the overview of the same site.
--preset PRESETresearch writes report/ with three levels, management a one-page sheet one of research | management
--station IDStation of the report series and metrics, or of the ranking (default: the gauge)
--strictFail when the report misses a figure it requires, once it is written
--openOpen the report in the default browser once it is written

Also takes the shared options --workspace --format --verbosity --quiet --verbose --debug.

Examples

$ hmp show base_v2
$ hmp show calage --format json
$ hmp show base_v2 --profile
$ hmp show base_v2 --figure watertable_depth_map --time 2002-10-15 --to map.png
$ hmp show run_a run_b --point --var head --cell 5000 --to point.csv
$ hmp show . --rank nse -n 5
$ hmp show base_v2 --report --preset management

Exit codes it sets itself: 2 10 14. An exception it does not catch ends with the code of its class. All exit codes.