-
Notifications
You must be signed in to change notification settings - Fork 12
Data Paths and Datasets instructions
These options control behaviour associated with including input data in each stage and are all grouped under the data_paths
and apis
key-values.
The data_paths
specify the local location where data is to read from or written to. All paths should be a forward-slash separated file path. All data_path
aside from the local_cache
should be relative to the local_cache
or absolute paths. Accepted keywords are:
keyword | required | type | stage | description |
---|---|---|---|---|
local_cache |
yes | str |
all | The location to download a copy of remotely sourced data, and of the generated 'geofabrics.log' file. |
-
local_cache
[Requiredstr
] - The location to download a copy of remotely sourced data, and of the generated 'geofabrics.log' file. This is required if theapis
keyword is specified. Ifresult_dem
ordense_dem_extents
are note specified. They will be written here with default names. -
subfolder
[Optional with a default ofresults
] - The folder to store generated results in. -
downloads
[Optional with a default ofdownloads
] - The folder to store any downloaded raster, vector or LiDAR data in. The default is adownloads
subfolder in thelocal_cache
folder. -
extents
[Requiredstr
] - The location to the catchment boundary polygon within which to generate a DEM. -
result_dem
[Optional with default ofgenerated_dem.nc
in thelocal_cache
.str
] - The location to save the hydrologically conditioned DEM to. -
result_geofabric
[Optional with default ofgenerated_geofabric.nc
in thelocal_cache
.str
] - The location to save the geofabric with hydrologically conditioned DEM and roughness layers to. -
raw_dem
[Optional with default ofdem.nc
in thelocal_cache
.str
] - The DEM generated from just LiDAR and any specified coarse DEM. -
lidar
[Optional and only used if 'open topography' is not specified as an API.list
] - The location of a local copy of one or more LiDAR tiles. By preference defined in theapis
section. -
land
[Optionalstr
] - The location of a local copy of a polygon defining the land (i.e. NZ Coastline). If not defined here or in theapis
section no offshore area will be defined. -
ocean_contours
[Optionallist
] - The location of any local vector data defining the bathymetry contours (i.e. NZ Depth Contours). By preference, instead define in theapis
section. -
coarse_dems
[Optional.str
] - The location of a local copy of a DEM to use where there is no LiDAR data. By preference, instead define in thedatasets
section. -
rivers
[Optional alist
ofdict
's] - Eachdict
contains anextents
andelevations
key with the location of local vector data defining a river extents (extents
) and bathymetry point elevations (elevations
). -
waterways
[Optionaldict
] - Adict
contains anextents
andelevations
key with the location of local vector data defining a waterway network extents (extents
) and bathymetry point elevations (elevations
). -
measured_sections
[Optional astr
] - The path to a geometry file of z-polylines defining the measured long-sections across the river. -
riverbanks
[Optionalstr
] - The path to a geometry file of two polylines defining each bank of the river.
the datasets
keyword and contents is technically optional. It specifies LiDAR, raster and vector datasets, where a datasets includes files and CRS information. These can be located locally (at least for LiDAR) or remotely (accessed through an API). In the case of local access it's contents specifies the location of the data, and in the case of remote API accessed data its contents specifies the data services where data is to be read from. The remote data is locally cached in specified downloads
folders which defaults to being within the local_cache
.
Accepted apis
keywords are:
-
lidar
: *open_topography
- Use this keyword if LiDAR data is to be pulled from OpenTopography. This must be followed by a dictionary containing a single (note support for multiple datasets will be added in time - please create an issue if you need this now) LiDAR dataset to download as a key (i.e."open_topography": { "NZ18_Banks": true }
. In the case that the.LAZ
files for a dataset do not contain full datum information (i.e. Wellington_2013), you can specify the.LAZ
CRS information using"open_topography": { "Wellington_2013": { "crs": { "horizontal": 2193, "vertical": 7839 } } }
.-
local
- Use this keyword if you have a locally stored LiDAR dataset (must have a tile index file). Either specify the dataset name and thedataset_folder
which contains the LiDAR files and tile index file (must be of form{dataset_name}_TileIndex.zip
, or use thefile_paths
keyword to specify the LiDAR files, and thetile_index_file
keyword to specify the tile index file with complete path.
-
-
vector
:linz
orlris
orstats_nz
- Specify these if you want vector data to be downloaded from either the LINZ or LRIS Data Service. These requires the same keywords.-
key
- This is mandatory for both and should containYOUR_API_KEY
for that data service as a string. -
land
orbathymetry_contours
[Both optional] - These are the accepted vector values. Both are optional, although there is not point specifying your API key if you are not going to specify one of these layers to download. In either case you should then specify alayer
and optionally thegeometry_name
of that layer. See geoapis: Basic Usage for more details on thegeometry_name
. Thelayer
is the unique identifier in the URL when you view the dataset on the dataservice. (i.e.51153
for an example of a land vector on the LINZ LDS, or50448
for and example of a bathymetry_contours.
-
-
raster
:linz
orlris
orstats_nz
- Specify the rater layer to download and-
key
- This is mandatory for both and should containYOUR_API_KEY
for that data service as a string. For a raster it must be a manual key. -
coarse_dems
[Optional] - This is the accepted raster value. You should specify alayer
. See geoapis: Basic Usage for more details. Thelayer
is the unique identifier in the URL when you view the dataset on the dataservice. (i.e.51768
for an example of a coarse_dems.
-
This defines the order of precedence and value included in the lidar_source
layer. It is required if you have multiple LiDAR datasets. If you have only one LiDAR dataset it will be auto-populated if it is not included. An example is shown below. Note that all LiDAR datasets must be given a mapping value and these values must be unique.
"dataset_mapping": {
"lidar": {
"dataset_name_1": 1,
"dataset_name_2": 2
}
}