This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Use case #9 using the CLI
Jānis Gailis edited this page Sep 20, 2016
·
51 revisions
This page describes how use case #9 workflow can be executed using the ECT CLI.
For all CLI commands see CLI command overview.
ect ds list -n aero
ect ds list -n cloud
ect ws init
ect res open aero2007 ds_name=AEROSOL_ATSR2_ORAC_L3_V3.02_MONTHLY start_time=2007 end_time=2007
ect res open cloud2007 ds_name=CLOUD_L3S_MERGED_PHASE1_V1.0 start_time=2007 end_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
ect op list --tag geom
will list all commands that have a tag that matches 'geom'.
ect op help ect.ops.coregister
will print help and list all parameters of operation 'ect.ops.coregister'.
ect res set cloud2007ga ect.ops.coregister master=aero2007 slave=cloud2007 method=nearest
n.a.
according to 2. to 4.
n.a
according to 2. to 4.
n.a.
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
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
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((......))
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
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