Miscellaneous |
Version lineage of this tool (guids ordered most recent to oldest) |
toolshed.g2.bx.psu.edu/repos/climate/cds_essential_variability/cds_essential_variability/0.2.0 (this tool) |
toolshed.g2.bx.psu.edu/repos/climate/cds_essential_variability/cds_essential_variability/0.1.4 |
cds_essential_variability |
Requirements (dependencies defined in the <requirements> tag set) |
name | version | type |
python | 3 | package |
cdsapi | 0.5.1 | package |
cdo | 1.9.10 | package |
Additional information about this tool |
export HOME=`pwd` && #set $cdsapirc_file = os.environ.get('COPERNICUS_CDSAPIRC_KEY_FILE', '') #if os.path.isfile(str($cdsapirc_file)) echo "xx $cdsapirc_file xx" && cp $cdsapirc_file .cdsapirc && #else echo 'use tool cdsapirc file' && cp '$__tool_directory__/cdsapirc.cfg' .cdsapirc && #end if python3 '$__tool_directory__/ecv_retrieve.py' 'ecv-for-climate-change' '$variable' --month '$month' #if str($product_type.product) == 'monthly_mean' --year '$product_type.year' --time_aggregation '1_month_mean' #else if str($product_type.product) == 'anomaly' --climate_reference_period $product_type.climate_reference_period --time_aggregation '$product_type.selector' --year '$product_type.year' #else --climate_reference_period $product_type.climate_reference_period --time_aggregation '1_month_mean' #end if --product_type '$product_type.product' --format 'tgz' --output 'tmp.tgz' --verbose && tar zxvf tmp.tgz && cat *.grib > tmpg.grib && cdo remapcon,$adv.resol -setgridtype,regular tmpg.grib tmp.grib && cdo -f nc -t ecmwf copy tmp.grib tmp.nc
Functional tests |
name | inputs | outputs | required files |
Test-1 |
variable: 0_7cm_volumetric_soil_moisture product_type|year: 2018 product_type|product: monthly_mean month: 12 adv|resol: r144x72 |
name: value |
value |
Test-2 |
variable: precipitation product_type|year: 2017 product_type|product: anomaly month: 12 adv|resol: r144x72 |
name: value |
value |