cli.NetcdfPreprocessConfig

cli.NetcdfPreprocessConfig(
    script,
    simulation,
    data_file,
    variable,
    units,
    output,
    x_coord='lon',
    y_coord='lat',
    time_coord='time',
    timestep=None,
    amend=False,
    crs=None,
    parallel=False,
)

Preprocess NetCDF files into Josh’s .jshd format.

For files with time dimensions. Use x_coord, y_coord, and time_coord to specify dimension names if they differ from defaults.

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 NetCDF file (.nc, .nc4, .netcdf).
variable str NetCDF variable name to extract (e.g., “tas”, “pr”).
units str Units of the data for simulation use.
output Path Path for output .jshd file.
x_coord str Name of X/longitude dimension (default: “lon”).
y_coord str Name of Y/latitude dimension (default: “lat”).
time_coord str Name of time dimension (default: “time”).
timestep int | None Extract specific time slice (optional).
amend bool Append to existing JSHD file.
crs str | None Coordinate Reference System if not embedded.
parallel bool Enable parallel processing (~Nx speedup on N cores).