cso_inquire module

The cso_inquire module provides some general classes to support inqueries of data portals.

Class hierchy

The classes and are defined according to the following hierchy:

Classes

class cso_inquire.CSO_Inquire_Plot(rcfile, rcbase='', env={}, indent='')

Bases: utopya_rc.UtopyaRc

Create plot of processing version versus time to indicate the available orbits in the SciHub archive.

The information on orbits is taken from a csv table created by CSO_SciHub_Inquire class. Specifify the name of the table file in the settings:

! listing file:
cso.tutorial.inquire-s5phub-plot.file     :  ${my.work}/Copernicus/Copernicus_S5p_NO2_s5phub_%Y-%m-%d.csv

The date templates are by default filled for the current day. Alternatively, specify an explicit date:

!~ specify dates ("yyyy-mm-dd") to use historic table:
cso.tutorial.inquire-s5phub-plot.filedate  :  2022-01-28

The plot could also be created by combining multiple tables; use a semi-colon to seperate the file names (and eventually the dates):

! listing files:
cso.tutorial.inquire-s5phub-plot.file       :  ${my.work}/Copernicus/Copernicus_S5p_NO2_s5phub_%Y-%m-%d.csv ; \
                                               ${my.work}/Copernicus/Copernicus_S5p_NO2_pal_%Y-%m-%d.csv
!~ specify dates ("yyyy-mm-dd") to use historic tables:
!cso.tutorial.inquire-s5phub-plot.filedate  :  2022-01-28 ; 2022-01-28

The created plot shows a time line and on the vertical ax the processor versions; a bar indicates when a certain version was used to process orbits:

Overview of available NO2 processings.

Specify the name of the target plot:

! output table, date of today:
<rcbase>.output.file            :  ${my.work}/Copernicus_S5P_NO2_%Y-%m-%d.png

Specify

The following flag is used to ensure that the plot is renewed:

! renew existing plots?
cso.tutorial.inquire-s5phub-plot.renew                    :  True