TNO Intern

Update api

Merge request reports

Loading
+5 −16
Changes for config/tutorial/tutorial.rc: 5 added lines, 16 removed lines.
Original line number Diff line number Diff line
@@ -301,21 +301,13 @@ VIRTUAL_ENV :
! full time range:
cso.tutorial.inquire-table-dataspace.timerange.start        :  2018-01-01 00:00:00
cso.tutorial.inquire-table-dataspace.timerange.end          :  2025-01-01 00:00:00
!! ... testing ...
!cso.tutorial.inquire-table-dataspace.timerange.start        :  2018-06-01 00:00:00
!cso.tutorial.inquire-table-dataspace.timerange.end          :  2018-07-01 00:00:00

! API url:
cso.tutorial.inquire-table-dataspace.url                    :  https://catalogue.dataspace.copernicus.eu/resto/api
cso.tutorial.inquire-table-dataspace.url                    :  https://stac.dataspace.copernicus.eu/v1

! collection name:
cso.tutorial.inquire-table-dataspace.collection             :  Sentinel5P

! product type, always 10 characters!
!   L2__NO2___
!   L2__CO____
!   ...
cso.tutorial.inquire-table-dataspace.producttype            :  L2__NO2___
cso.tutorial.inquire-table-dataspace.collections             :  sentinel-5p-l2-no2-rpro \
                                                                sentinel-5p-l2-no2-offl

! target area;
!!~ empty for no limitation:
@@ -323,9 +315,6 @@ cso.tutorial.inquire-table-dataspace.producttype : L2__NO2___
!~ domain specified as:  west,south,east,north
cso.tutorial.inquire-table-dataspace.area                   :  ${my.region.west},${my.region.south},${my.region.east},${my.region.north}

! template for download url given "{product_id}":
cso.tutorial.inquire-table-dataspace.download_url           :  https://zipper.dataspace.copernicus.eu/odata/v1/Products({product_id})/$value

! output table, date of today:
cso.tutorial.inquire-table-dataspace.output.file            :  ${my.work}/Copernicus/Copernicus_S5p_NO2_dataspace__%Y-%m-%d.csv

@@ -339,7 +328,7 @@ cso.tutorial.inquire-plot.renew : True
cso.tutorial.inquire-plot.file                     :  ${cso.tutorial.inquire-table-dataspace.output.file}
!!~ specify dates ("yyyy-mm-dd") to use historic tables,
!!  default is table of today:
!cso.tutorial.inquire-plot.filedate                 :  2022-01-18
!cso.tutorial.inquire-plot.filedate                 :  2026-03-11

! annote:
cso.tutorial.inquire-plot.title                    :  S5p/NO2 %Y-%m-%d
@@ -371,7 +360,7 @@ cso.tutorial.convert.timerange.end : ${my.timerange.end}
! listing of available source files,  created by 'inquire' job:
cso.tutorial.convert.inquire.file                   :  ${my.work}/Copernicus/Copernicus_S5p_NO2_dataspace__%Y-%m-%d.csv
!!~ historic inquire ...
!cso.tutorial.convert.inquire.filedate               :  2024-01-18
!cso.tutorial.convert.inquire.filedate               :  2026-03-25

! selection keyword:
my.tutorial.selection                                :  C03
+3 −0
Changes for doc/source/history.rst: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -125,6 +125,9 @@ A summary of the versions and changes.
* | *v2.14*
  | Plot pixels als polygons in case track information is not present.
  
* | *v2.15*
  | Updates for access to Copernicus DataSpace: use STAC API to inquire, and download from S3 buckets.


To be done
==========
+4 −0
Changes for doc/source/s5p-no2.rst: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ This is used to obtain the alternative retrieval and tropospheric averaging kern
scalled versions of the original variables:

.. math::
    :nowrap:

     \begin{eqnarray}
       \hat{\mathbf{y}}_r(\hat{\mathbf{x}}_a)      &=& \frac{M^{trop}}{\hat{M}^{trop}(\hat{\mathbf{x}}_a)}\ \mathbf{y}_r \\
       \hat{\mathbf{A}}^{trop}(\hat{\mathbf{x}}_a) &=& \frac{M^{trop}}{\hat{M}^{trop}(\hat{\mathbf{x}}_a)}\ \mathbf{A}^{trop} \\
@@ -121,6 +123,8 @@ scalled versions of the original variables:
A simulation of the retrieval from the same model concentrations becomes:

.. math::
    :nowrap:

    \begin{eqnarray}
      \hat{\mathbf{y}}_s(\hat{\mathbf{x}}_a)
        &=& \hat{\mathbf{A}}^{trop}(\hat{\mathbf{x}}_a)\ \mathbf{V}\mathbf{G}\ \hat{\mathbf{x}}_a \\
+4 −1
Changes for src/cso/cso_colocate.py: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -14,6 +14,9 @@
# 2025-04, Arjo Segers
#   Changed imports for python packaging.
#
# 2026-01, Arjo Segers
#   Fixed escape characters in (document) strings.
#


########################################################################
@@ -282,7 +285,7 @@ class CSO_CoLocate(utopya.UtopyaRc):
        loc_lat = self.GetSetting("locations.latitude")
        # read:
        locations = pandas.read_csv(
            locations_file, sep="\s*" + sep + "\s*", engine="python", comment=comment
            locations_file, sep=f"\\s*{sep}\\s*", engine="python", comment=comment
        )
        # count:
        nloc = len(locations)
+338 −388

File changed.

Preview size limit exceeded, changes collapsed.

Loading
Loading