Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

UC6 operations demo

Jānis Gailis edited this page Jan 19, 2017 · 2 revisions

Use Case 6 operations

Currently implemented:

  • Long Term Average tool for monthly datasets
  • Arithmetics operations
  • Anomaly calculation with long term average dataset as a reference
  • Anomaly calculation with reference internal to the given dataset

Walkthrough

To gather info about new operations use

cate op list
cate op info <op_name>

To find data sources:

cate ds list -n <name>

To initialize the workspace:

cate ws new

LTA tool

cate res set cl_lta long_term_average source='esacci.CLOUD.mon.L3C.CLD_PRODUCTS.AVHRR.NOAA-17.AVHRR_NOAA.1-0.r1' year_min=2007 year_max=2008 file='/path/where/to/save/lta.nc' var='cc*'

Arithmetic operations

cate res open cl esacci.CLOUD.mon.L3C.CLD_PRODUCTS.AVHRR.NOAA-17.AVHRR_NOAA.1-0.r1 2007-01-01 2008-01-01
cate res set cl_cc select_var ds=cl var='cc*'
cate res set cl_cc_ar arithmetics ds=cl_cc op='log,+5'
cate res write cl_cc_ar '/where/to/save/cl_cc_ar.nc'

Anomaly with LTA reference

cate res set cl_cc_anom anomaly_climatology ds=cl_cc file='/path/to/lta.nc'
cate res write cl_cc_anom 'where/to/save/cl_cc_anom.nc'

Anomaly with internal reference

cate res set cl_cc_anom_in anomaly_internal ds=cl_cc start_date='2007-01-01' end_date='2007-01-31' lat_min=-40 lat_max=40 lon_min=-40 lon_max=40
cate res write cl_cc_anom_in '/where/to/save/cl_cc_anom_in.nc'
Clone this wiki locally