TNO Intern

Skip to content
cso-s5p-so2.rc 43.1 KiB
Newer Older
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! CSO - CAMS Satellite Operator
!!! Settings for S5p/SO2 processing.
!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


!-----------------------------------------------------------------------
! user specific settings:
!-----------------------------------------------------------------------

! include user specfic settings:
#include cso-user-settings.rc


!======================================================================
!===
!=== Inquire
!===
!======================================================================


!-----------------------------------------------------------------------
! inquire DataSpace
!-----------------------------------------------------------------------

! Obtain names of all available S5p files.
! Stored as csv with processing type, processor version, filenames, etc.

! full time range:
cso.s5p.so2.inquire-table-dataspace.timerange.start        :  ${my.full-timerange.start}
cso.s5p.so2.inquire-table-dataspace.timerange.end          :  ${my.full-timerange.end}
! API url:
cso.s5p.so2.inquire-table-dataspace.url                    :  https://finder.creodias.eu/resto/api

! collection name:
cso.s5p.so2.inquire-table-dataspace.collection             :  Sentinel5P

! product type, always 10 characters!
!   L2__SO2___
!   L2__CO____
!   ...
cso.s5p.so2.inquire-table-dataspace.producttype            :  L2__SO2___

! target area;
!!~ empty for no limitation:
!cso.s5p.so2.inquire-table-dataspace.area                   :  
!~ domain specified as:  west,south,east,north
cso.s5p.so2.inquire-table-dataspace.area                   :  ${my.region.west},${my.region.south},${my.region.east},${my.region.north}
! template for download url given "{product_id}":
cso.s5p.so2.inquire-table-dataspace.download_url           :  https://zipper.dataspace.copernicus.eu/odata/v1/Products({product_id})/$value
! output table, date of today:
cso.s5p.so2.inquire-table-dataspace.output.file            :  ${my.work}/Copernicus-inquire/Copernicus_S5p_SO2_dataspace__%Y-%m-%d.csv
!-----------------------------------------------------------
! overview plot of versions
!-----------------------------------------------------------

! renew existing plots?
cso.s5p.so2.inquire-plot.renew                    :  True

! listing files:
cso.s5p.so2.inquire-plot.file                     :  ${cso.s5p.so2.inquire-table-dataspace.output.file}
!!~ specify dates ("yyyy-mm-dd") to use historic tables,
!!  default is table of today:
!cso.s5p.so2.inquire-plot.filedate                 :  2023-08-07

! annote:
cso.s5p.so2.inquire-plot.title                    :  S5p/SO2 %Y-%m-%d

! output figure, date of today:
cso.s5p.so2.inquire-plot.output.file              :  ${my.work}/Copernicus-inquire/Copernicus_S5p_SO2_dataspace__%Y-%m-%d.png


!======================================================================
!===
!=== convert (and download)
!===
!======================================================================


! renew existing files (True|False) ?
cso.s5p.so2.convert.renew                  :  True
!cso.s5p.so2.convert.renew                  :  False

! time range:
cso.s5p.so2.convert.timerange.start        :  ${my.timerange.start}
cso.s5p.so2.convert.timerange.end          :  ${my.timerange.end}


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! input files
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

! listing of available source files,
! created by 'inquire-dataspace' job:
cso.s5p.so2.convert.inquire.file                   :  ${my.work}/Copernicus-inquire/Copernicus_S5p_SO2_dataspace__%Y-%m-%d.csv
!!~ historic inquire ...
!cso.s5p.so2.convert.inquire.filedate               :  ${cso.s5p.so2.inquire-plot.filedate}

! selection keyword:
my.s5p.so2.selection                                :  C03

! Provide ';' seperated list of to decide if a particular orbit file should be processed.
! If more than one file is available for a particular orbit (from "OFFL" and "RPRO" processing),
! the file with the first match will be used.
! The expressions should include templates '%{header}' for the column values.
! Example to select files from collection '03', preferably from processing 'RPRO' but otherwise from 'OFFL':
!   (%{collection} == '03') and (%{processing} == 'RPRO') ; \
!   (%{collection} == '03') and (%{processing} == 'OFFL')
!
#if "${my.s5p.so2.selection}" == "C03"
cso.s5p.so2.convert.selection                     :  (%{collection} == '03') and (%{processing} == 'RPRO') ; \
                                                     (%{collection} == '03') and (%{processing} == 'OFFL')
#else
#error unsupported my.s5p.so2.selection "${my.s5p.so2.selection}"
#endif

! input directory;
! files are searched here or downloaded to if not present yet;
! supported templates:
!   %{processing}
cso.s5p.so2.convert.input.dir                      :  ${my.work}/Copernicus/S5P/%{processing}/SO2/%Y/%m

! remove downloaded input files after convert?
cso.s5p.so2.convert.downloads.cleanup              :  False

! selection names:
cso.s5p.so2.convert.filters                        :  lons lats valid quality sza ground_pixel cloud_fraction

! filter settings:
cso.s5p.so2.convert.filter.lons.var                :  PRODUCT/longitude
cso.s5p.so2.convert.filter.lons.type               :  minmax
cso.s5p.so2.convert.filter.lons.minmax             :  ${my.region.west} ${my.region.east}
cso.s5p.so2.convert.filter.lons.units              :  degrees_east

! filter settings:
cso.s5p.so2.convert.filter.lats.var                :  PRODUCT/latitude
cso.s5p.so2.convert.filter.lats.type               :  minmax
cso.s5p.so2.convert.filter.lats.minmax             :  ${my.region.south} ${my.region.north}
cso.s5p.so2.convert.filter.lats.units              :  degrees_north

! filter ground pixel sides, more uncertain observations 50-400, here a few more:
!Theys, N., Hedelt, P., De Smedt, I. et al. Global monitoring of volcanic SO2
! degassing with unprecedented resolution from TROPOMI onboard Sentinel-5 Precursor. Sci Rep 9, 2643 (2019).
! https://doi.org/10.1038/s41598-019-39279-y
cso.s5p.so2.convert.filter.ground_pixel.var        :  PRODUCT/ground_pixel
cso.s5p.so2.convert.filter.ground_pixel.type       :  minmax
cso.s5p.so2.convert.filter.ground_pixel.minmax     :  25 425
cso.s5p.so2.convert.filter.ground_pixel.units      :  1

! 2 pixels on the west side of the track are "no-data",
! also "qa_value" is not filled here; 
! therefore need to remove these:
cso.s5p.so2.convert.filter.valid.var               :  PRODUCT/sulfurdioxide_total_vertical_column
cso.s5p.so2.convert.filter.valid.type              :  valid

! Comment in "PRODUCT/qa_value" variable:
!   "A continuous quality descriptor, 
!   varying between 0 (no data) and 1 (full quality data). 
!   Recommend to ignore data with qa_value < 0.5" 
cso.s5p.so2.convert.filter.quality.var             :  PRODUCT/qa_value
cso.s5p.so2.convert.filter.quality.type            :  min
cso.s5p.so2.convert.filter.quality.min             :  0.5
cso.s5p.so2.convert.filter.quality.units           :  1

! no cloudy pixels:
cso.s5p.so2.convert.filter.cloud_fraction.var             :  PRODUCT/SUPPORT_DATA/INPUT_DATA/cloud_fraction_crb
cso.s5p.so2.convert.filter.cloud_fraction.type            :  max
cso.s5p.so2.convert.filter.cloud_fraction.max             :  0.2
cso.s5p.so2.convert.filter.cloud_fraction.units           :  1

! detection flag for SO2:
!  0 = no detection,
!  1 = detection
!  2 = clear detection close to known volcano
!  3 = clear detection close to known anthropogenic source
!  4 = detection at high SZA
cso.s5p.so2.convert.filter.detection.var           :  PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/sulfurdioxide_detection_flag
cso.s5p.so2.convert.filter.detection.units         :  1
cso.s5p.so2.convert.filter.detection.type          :  minmax
cso.s5p.so2.convert.filter.detection.minmax        :  1 3

! this removes the pixels at very high solar-zenit-angle:
cso.s5p.so2.convert.filter.sza.var             :  PRODUCT/SUPPORT_DATA/GEOLOCATIONS/solar_zenith_angle
cso.s5p.so2.convert.filter.sza.type            :  max
cso.s5p.so2.convert.filter.sza.max             :  70
cso.s5p.so2.convert.filter.sza.units           :  degree

!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! output files
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

! output directory and filename:
Loading full blame...