salem.WRF

class salem.WRF(file, grid=None, time=None)

WRF proof-of-concept template.

Adds unstaggered and diagnostic variables.

__init__(file, grid=None, time=None)

Methods

__init__(file[, grid, time])
close()
get_vardata([var_id, as_xarray]) Reads the data out of the netCDF file while taking into account time and spatial subsets.
set_period([t0, t1]) Set a period of interest for the dataset.
set_roi([shape, geometry, crs, grid, ...]) Set a region of interest for the dataset.
set_subset([corners, crs, toroi, margin]) Set a subset for the dataset.

Attributes

roi Mask of the ROI (same size as subset).
time Time array