[[export]]#
One export: what to write, when, in which format, where.
export[[array of tables]] · optional · 10 user keys, 1 dev or expert- Start a file:
hmp config template --modules export(download it), thenhmp check file.toml. Minimal file
Repeat the table: one [[export]] block per item.
Connections found in the code (1)
- Same name
[[sites.export]]Exports of the project, one [[sites.export]] block each, under summary/exports/.
variable = "head"What to export: a name, a list of names, or "all" for everything the run holds. required example value
- Path
export.variable- More
One namespace covers the mesh fields (head, watertable_depth, seepage_mask..., and mesh_cell_area, which "all" leaves out because mesh_cells holds it), the series (discharge, discharge_obs...), the vector layers (watershed, hydrographic_network_reference...), the three layers of the cell mesh (mesh_cells, mesh_seeds, mesh_family_faces), the raster layers (watershed_dem...) and the table budget; 'hmp export <run> --list' prints what a run holds. A name no run can hold is refused before the solve.
- Accepted
- string or list of string
- Example
"head",["head", "discharge"],"all"
# time = ‹string or integer or list of string or integer›The instants to write: a date "YYYY-MM-DD", "first", "last", or a list of them.
- Path
export.time- More
A date takes the stress period that holds it. A format that holds one instant (GeoTIFF, Shapefile, GeoPackage, VTU) writes one file per date. Left out, the whole simulation is written. Cannot be given with period.
- Accepted
- string or integer or list of string or integer
# period = ‹list of string›A window of the simulation, [start, end], two dates "YYYY-MM-DD".
- Path
export.period- More
Every stress period it overlaps is written. Cannot be given with time.
- Accepted
- list of string
# format = ‹string›The file format, a name the export registry serves.
- Path
export.format- More
Left out, each data takes its natural format, or the one the extension of 'file' names. A view format describes the whole run and takes variable = "all" only. The portable archive of a run is written by 'hmp publish --container tar'.
- Accepted
- string
# folder = ‹path›A folder under the exports/ directory of the run, where the files are written with automatic names.
- Path
export.folder- More
Relative to runs/<run>/exports/; an absolute folder or one that climbs out with '..' is refused. Left out, the files go to runs/<run>/exports/.
- Accepted
- path
# file = ‹path›One exact file to write; its extension gives the format.
- Path
export.file- More
Relative to 'folder' under runs/<run>/exports/; an absolute file or one that climbs out with '..' is refused. Only for a request that writes one file: several files need 'folder' and automatic names.
- Accepted
- path
# crs = ‹string›Output CRS, e.g. 'EPSG:4326'.
- Path
export.crs- More
Rasters and vector layers are reprojected from the model CRS. NetCDF, VTU and CSV do not reproject and refuse it. Left out, the model CRS is kept.
- Accepted
- string
# resolution = ‹number›Pixel size of a GeoTIFF of a field, in units of the output CRS. CRS unit > 0
- Path
export.resolution- More
Left out, it is the side of the smallest cell of the mesh, and a mesh that would give more than 1e8 pixels is refused until a resolution is set. Refused on a request that writes no raster.
- Accepted
- number
- Valid range
- > 0 (refused outside)
- Unit
- CRS unit
# layer = ‹integer›Model layer of a 3D field, counted from 0 at the top. - >= 0
- Path
export.layer- More
Left out, every layer a format can hold: a NetCDF variable or a VTU cell array has one entry per layer. QGIS reads a NetCDF that names one layer.
- Accepted
- integer
- Valid range
- >= 0 (refused outside)
- Unit
- -
# deliver_to = ‹list of string›Where to send the files of this block once the run is sealed: a local or UNC folder ending with /, a file, or an ftp://, ftps:// or sftp:// address, whose identity comes from credentials.toml.
- Path
export.deliver_to- Accepted
- list of string
# nodata = -9999.0Fill value of the cells a raster has no data for. expert
- Path
export.nodata- Accepted
- number
[[export]] variable = "head" # time = <string or integer or list of string or integer> # period = <list of string> # format = <string> # folder = <path> # file = <path> # crs = <string> # resolution = <number> # layer = <integer> # deliver_to = <list of string>
export.variable variable “head” [“head”, “discharge”] “all” What to export: a name, a list of names, or “all” for everything the run holds. One namespace covers the mesh fields (head, watertable_depth, seepage_mask…, and mesh_cell_area, which “all” leaves out because mesh_cells holds it), the series (discharge, discharge_obs…), the vector layers (watershed, hydrographic_network_reference…), the three layers of the cell mesh (mesh_cells, mesh_seeds, mesh_family_faces), the raster layers (watershed_dem…) and the table budget; ‘hmp export <run> –list’ prints what a run holds. A name no run can hold is refused before the solve. export.time time not set The instants to write: a date “YYYY-MM-DD”, “first”, “last”, or a list of them. A date takes the stress period that holds it. A format that holds one instant (GeoTIFF, Shapefile, GeoPackage, VTU) writes one file per date. Left out, the whole simulation is written. Cannot be given with period. export.period period not set A window of the simulation, [start, end], two dates “YYYY-MM-DD”. Every stress period it overlaps is written. Cannot be given with time. export.format format not set The file format, a name the export registry serves. Left out, each data takes its natural format, or the one the extension of ‘file’ names. A view format describes the whole run and takes variable = “all” only. The portable archive of a run is written by ‘hmp publish –container tar’. export.folder folder not set A folder under the exports/ directory of the run, where the files are written with automatic names. Relative to runs/<run>/exports/; an absolute folder or one that climbs out with ‘..’ is refused. Left out, the files go to runs/<run>/exports/. export.file file not set One exact file to write; its extension gives the format. Relative to ‘folder’ under runs/<run>/exports/; an absolute file or one that climbs out with ‘..’ is refused. Only for a request that writes one file: several files need ‘folder’ and automatic names. export.crs crs not set Output CRS, e.g. ‘EPSG:4326’. Rasters and vector layers are reprojected from the model CRS. NetCDF, VTU and CSV do not reproject and refuse it. Left out, the model CRS is kept. export.resolution resolution not set CRS unit Pixel size of a GeoTIFF of a field, in units of the output CRS. Left out, it is the side of the smallest cell of the mesh, and a mesh that would give more than 1e8 pixels is refused until a resolution is set. Refused on a request that writes no raster. export.layer layer not set - Model layer of a 3D field, counted from 0 at the top. Left out, every layer a format can hold: a NetCDF variable or a VTU cell array has one entry per layer. QGIS reads a NetCDF that names one layer. export.nodata nodata -9999.0 Fill value of the cells a raster has no data for. export.deliver_to deliver_to not set Where to send the files of this block once the run is sealed: a local or UNC folder ending with /, a file, or an ftp://, ftps:// or sftp:// address, whose identity comes from credentials.toml.