Skip to content

Commit

Permalink
Merge pull request #113 from nansencenter/syntool_bioargo
Browse files Browse the repository at this point in the history
Add syntool config for bioargo
  • Loading branch information
aperrin66 authored Sep 5, 2024
2 parents de65384 + d8cd3e9 commit fa0b456
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
13 changes: 11 additions & 2 deletions geospaas_processing/converters/syntool/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,17 @@ class BasicSyntoolConverter(SyntoolConverter):
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')),
ingest_parameter_files=(
ParameterSelector(matches=lambda p: p.name.startswith('ArgoFloats_'),
ingest_file='ingest_erddap_json_3413_argo_profile'),
ParameterSelector(matches=lambda p: p.name.startswith('ArgoFloats_'),
ingest_file='ingest_erddap_json_3413_argo_trajectory'),
ParameterSelector(
matches=lambda p: p.name.startswith('ArgoFloats-synthetic-BGC_'),
ingest_file='ingest_erddap_json_3413_bioargo_profile'),
ParameterSelector(
matches=lambda p: p.name.startswith('ArgoFloats-synthetic-BGC_'),
ingest_file='ingest_erddap_json_3413_bioargo_trajectory'))),
)

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--input-format argo_profile_erddap_json
--input-options projection=4326
--output-format argo_profile
--output-options product_name=argo_profiles
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
--output-format geojson_trajectory
--output-options with-shape=no
singleFeature=true
product_name=argo_trajectories
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--input-format argo_profile_erddap_json
--input-options projection=4326
--output-format argo_profile
--output-options product_name=bioargo_profiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--input-format argo_trajectory_erddap_json
--input-options projection=4326
--output-format geojson_trajectory
--output-options with-shape=no
singleFeature=true
product_name=bioargo_trajectories

0 comments on commit fa0b456

Please sign in to comment.