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

Use case #9 using the CLI

Marco Zühlke edited this page Sep 2, 2016 · 51 revisions

This page describes how use case #9 workflow can be executed using the ECT CLI.

1. Data product selection

ect ds list --pattern aero
ect ds list --pattern cloud

ect res load aero2007 AEROSOL_ATSR2_ORAC_L3_V3.02_MONTHLY --time 2007
ect res load cloud2007 CLOUD_L3S_MERGED_PHASE1_V1.0 --time 2007

The ect res load command automatically downloads the data, if it not already available on the local computer. This process, called syncing, can be invoked manually, too:

ect ds sync AEROSOL_ATSR2_ORAC_L3_V3.02_MONTHLY  --time 2007
ect ds sync CLOUD_L3S_MERGED_PHASE1_V1.0  --time 2007

2. Co-Registration

ect op list --tag geom

will list all commands that have a tag that matches 'geom'.

3.

ect op help ect.ops.coregister

will print help and list all parameters of operation 'ect.ops.coregister'.

4.

ect res set cloud2007ga ect.ops.coregister master=aero2007 slave=cloud2007 method=nearest

5.

n.a.

6. to 8. Spatial Filtering

according to 2. to 4.

9.

n.a

10. to 12. Temporal Filtering

according to 2. to 4.

13.

n.a.

14. to 17. Time Series Plot

ect op list --tag visual
ect op help ect.ops.timeseriesplot

ect run --write tsplot.png ect.ops.timeseriesplot cloud2007ga.aerosol_optical_depth cloud2007.cloud_cover lat=13 lon=42 multiple_datasets=true

An alternative way would be to assign the timeseries plot in a first step to a resource name and plot it in a second step.

ect res set tsplot ect.ops.timeseriesplot ds=aero2007.aerosol_optical_depth,cloud2007ga.cloud_cover lat=13 lon=42 multiple_datasets=true
ect res write tsplot tsplot.png

18. to 22. Product-Moment Correlation (Pearson)

ect op list --tag compare
ect op help ect.ops.pearson
ect run --write pearson.png ect.ops.pearson ds1=aero2007.aerosol_optical_depth ds2=cloud2007ga.cloud_cover

23. to 27. Spatial Filtering

ect op list --tag filter
ect op help ect.ops.spatial_filter
ect res set aero2007_sub ect.ops.spatial_filter ds=aero2007.aerosol_optical_depth region=POLYGON((......))
ect res set cloud2007_sub ect.ops.spatial_filter ds=cloud2007ga.cloud_cover region=POLYGON((......))

28. to 32. Animated Map

ect op list --tag animation
ect op help ect.ops.animated_map
ect run --write animation.gif ect.ops.animated_map ds=aero2007_sub,cloud2007_sub multiple_datasets=true

33. to 37. Product-Moment Correlation (Pearson)

ect run --write correlation_map.png, correlation.txt ect.ops.pearson ds1=aero2007_sub ds2=cloud2007_sub mode=grid_map

Here the alternative pattern would be:

ect res set correlation ect.ops.pearson ds1=aero2007_sub ds2=cloud2007_sub mode=grid_map
ect res write correlation map=correlation_map.png
ect res write correlation stat=correlation_statistics.txt