cli.GeotiffPreprocessConfig
cli.GeotiffPreprocessConfig(
script,
simulation,
data_file,
band,
units,
output,
timestep,
amend=False,
crs=None,
parallel=False,
)Preprocess GeoTIFF/COG files into Josh’s .jshd format.
For single-band rasters without time dimension. The timestep parameter is required to specify which simulation timestep the data maps to.
Note: GeoTIFF spatial coordinates are implicit in the file format, so x_coord/y_coord options are not needed.
Attributes
| Name | Type | Description |
|---|---|---|
| script | Path | Path to Josh simulation file (.josh). |
| simulation | str | Name of simulation for grid extraction. |
| data_file | Path | Path to GeoTIFF file (.tif, .tiff). |
| band | int | Band index to extract (0-based). |
| units | str | Units of the data for simulation use. |
| output | Path | Path for output .jshd file. |
| timestep | int | Simulation timestep this data maps to (required). |
| amend | bool | Append to existing JSHD file. |
| crs | str | None | Coordinate Reference System if not embedded in TIF. |
| parallel | bool | Enable parallel processing (~Nx speedup on N cores). |