wrf2cosipy

Create 2D input from WRF data.

Reads the input data (model forcing) and writes the output to a netcdf file. Edit the configuration by supplying a valid .toml file. See the sample utilities_config.toml for more information.

Usage:

From source: python -m cosipy.utilities.wrf2cosipy.wrf2cosipy -i <path> -o <path> -u [<path] [-b <date>] [-e <date>]

Entry point: cosipy-wrf2cosipy -i <path> -o <path> -u [<path] [-b <date>] [-e <date>]

Options and arguments:

Required arguments:
-i, --input <path>

Path to WRF file.

-o, --output <path>

Path to the resulting COSIPY file.

Optional arguments:
-u, --u <path>

Relative path to utilities’ configuration file.

-b, --start_date <yyyymmdd>

Start date.

-e, --end_date <yyyymmdd>

End date.

Functions

add_variable_along_latlon(ds, var, name, ...)

Add spatial data to a dataset.

add_variable_along_timelatlon(ds, var, name, ...)

Add spatiotemporal data to a dataset.

check(field, max_bound, min_bound)

Check the validity of the input data.

create_input(wrf_file, cosipy_file, ...)

Create an input dataset from WRF data.

get_user_arguments(parser)

Get user arguments for converting AWS data.

load_config(module_name)

Load configuration for module.

main()

wrf_rh(T2, Q2, PSFC)

Get the relative humidity.