aws2cosipy
Reads the input data (model forcing) and writes the output to a netCDF
file. It supports point models with create_1D_input and distributed
simulations with create_2D_input.
The 1D input function works without a static file, in which the static variables are created.
Edit the configuration by supplying a valid .toml file - this includes
lapse rates for both cases. See the sample utilities_config.toml for
more information.
Usage:
From source:
python -m cosipy.utilities.aws2cosipy.aws2cosipy -i <input> -o <output> -s <static> [-u <path>] [-b <date>] [-e <date>]
Entry point:
cosipy-aws2cosipy -i <input> -o <output> -s <static> [-u <path>] [-b <date>] [-e <date>]
Options and arguments:
- Required arguments:
- -i, --input <path>
Path to .csv file with meteorological data.
- -o, --output <path>
Path to the resulting COSIPY netCDF file.
- -s, --static_file <path>
Path to static file with DEM, slope etc.
- Optional arguments:
- -u, --u <path>
Relative path to utilities’ configuration file.
- -b, --start_date <int>
Start date.
- -e, --end_date <int>
End date.
- --xl <float>
Left longitude value of the subset.
- --xr <float>
Right longitude value of the subset.
- --yl <float>
Lower latitude value of the subset.
- --yu <float>
Upper latitude value of the subset.
Functions
|
Add spatial data to a dataset. |
|
Add point data to a dataset. |
|
Add spatiotemporal data to a dataset. |
|
Add spatiotemporal point data to a dataset. |
|
Check the validity of the input data. |
|
Check data is within physically reasonable bounds. |
|
|
|
|
|
|
|
Convert series to numeric type. |
|
Create an input dataset from a csv file with input point data. |
|
Create a 2D input dataset from a .csv file. |
|
|
|
|
|
Get user arguments for converting AWS data. |
|
Get metadata associated with a variable name. |
|
Load configuration for module. |
|
|
|
Sum dataframe columns which contain NaNs. |
Raise error if NaNs are in the dataset. |
|
|
Read input data, parse dates, and convert to a dataframe. |
|
Apply lapse rate to data. |
|
|
|
Set dataframe order and convert to numeric type. |
|
Limit bounds for relative humidity. |
Initialise variable names and units. |
|
|
Initialise array and fill with zeros. |
|