From 8a8a417c438935af12ed946f8347d21d873da8e6 Mon Sep 17 00:00:00 2001 From: Adrien Perrin Date: Tue, 5 Mar 2024 13:59:27 +0000 Subject: [PATCH] add idf conversion config for argo profiles from ERDDAP --- geospaas_processing/converters/syntool/converter.py | 5 +++++ .../syntool/parameters/ingest_erddap_json_3413_profile | 3 +++ .../syntool/parameters/ingest_erddap_json_3413_trajectory | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_profile create mode 100644 geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_trajectory diff --git a/geospaas_processing/converters/syntool/converter.py b/geospaas_processing/converters/syntool/converter.py index f452ce53..1015634a 100644 --- a/geospaas_processing/converters/syntool/converter.py +++ b/geospaas_processing/converters/syntool/converter.py @@ -156,6 +156,11 @@ class BasicSyntoolConverter(SyntoolConverter): matches=lambda d: d.entry_id.startswith('asi-AMSR2-'), converter_type='amsr_sea_ice_conc', ingest_parameter_files='ingest_geotiff_3411_raster'), + ParameterSelector( + matches=lambda d: d.source.platform.short_name == 'Argo float', + converter_type=None, + ingest_parameter_files=('ingest_erddap_json_3413_profile', + 'ingest_erddap_json_3413_trajectory')), ) def __init__(self, **kwargs): diff --git a/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_profile b/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_profile new file mode 100644 index 00000000..8a17e01e --- /dev/null +++ b/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_profile @@ -0,0 +1,3 @@ +--input-format argo_profile_erddap_json +--input-options projection=4326 +--output-format argo_profile diff --git a/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_trajectory b/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_trajectory new file mode 100644 index 00000000..c0e88940 --- /dev/null +++ b/geospaas_processing/converters/syntool/parameters/ingest_erddap_json_3413_trajectory @@ -0,0 +1,5 @@ +--input-format argo_trajectory_erddap_json +--input-options projection=4326 +--output-format geojson_trajectory +--output-options with-shape=no + singleFeature=true