MultiYearX
Multi-year ResourceX Command Line Interface
MultiYearX [OPTIONS] COMMAND [ARGS]...
Options
- --version
Show the version and exit.
- -h5, --resource_path <resource_path>
Required Path to Resource .h5 files
- -o, --out_dir <out_dir>
Required Directory to dump output files
- -yrs, --years <years>
List of years to access, by default None
- -hsds, --hsds
Boolean flag to use h5pyd to handle .h5 ‘files’ hosted on AWS behind HSDS
- -res, --res_cls <res_cls>
Resource type
- Default:
'Resource'
- Options:
Resource | NSRDB | Wind | Wave
- -log, --log_file <log_file>
Path to .log file, if None only log to stdout
- -v, --verbose
Flag to turn on debug logging. Default is not verbose.
dataset
Extract a single dataset
MultiYearX dataset [OPTIONS] COMMAND [ARGS]...
Options
- -d, --dataset <dataset>
Required Dataset to extract
box
Extract all pixels in the given bounding box
MultiYearX dataset box [OPTIONS]
Options
- -ll1, --lat_lon_1 <lat_lon_1>
Required One corner of the bounding box
- -ll2, --lat_lon_2 <lat_lon_2>
Required The other corner of the bounding box
- -fs, --file_suffix <file_suffix>
File name suffix
- -ts, --timestep <timestep>
Timestep to extract
map-means
Map temporal means for given dataset in region if given.
MultiYearX dataset map-means [OPTIONS] COMMAND [ARGS]...
Options
- -r, --region <region>
Region to extract
- -col, --region_col <region_col>
Meta column to search for region
- Default:
'state'
multi-year
Map means for a given subset of years
MultiYearX dataset map-means multi-year [OPTIONS]
Options
- -yrs, --years <years>
Required List of Years to average
year
Map means for a given year
MultiYearX dataset map-means year [OPTIONS]
Options
- -yr, --year <year>
Required Year to average
multi-site
Extract multiple sites given in ‘–sites’ .csv or .json as “latitude”, “longitude” pairs OR “gid”s
MultiYearX dataset multi-site [OPTIONS]
Options
- -s, --sites <sites>
Required .csv or .json file with columns “latitude”, “longitude” OR “gid”
region
Extract a single dataset for all gids in the given region
MultiYearX dataset region [OPTIONS]
Options
- -r, --region <region>
Required Region to extract
- -col, --region_col <region_col>
Meta column to search for region
- Default:
'state'
- -ts, --timestep <timestep>
Timestep to extract
site
Extract the nearest pixel to the given (lat, lon) coordinates OR the given resource gid
MultiYearX dataset site [OPTIONS]
Options
- -ll, --lat_lon <lat_lon>
(lat, lon) coordinates of interest
- -gid, --gid <gid>
Resource gid of interest