Skip to content

Commit

Permalink
Merge pull request #115 from nansencenter/argo_syntool_config
Browse files Browse the repository at this point in the history
Adjust argo syntool conversion config
  • Loading branch information
aperrin66 authored Sep 30, 2024
2 parents 821ce05 + a5879ad commit aa38da1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions geospaas_processing/converters/syntool/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,21 @@ class BasicSyntoolConverter(SyntoolConverter):
converter_type='amsr_sea_ice_conc',
ingest_parameter_files='ingest_geotiff_3411_raster'),
ParameterSelector(
matches=lambda d: d.source.platform.short_name == 'Argo float',
matches=lambda d: d.entry_id.startswith('argo_profile_'),
converter_type=None,
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'))),
ingest_parameter_files='ingest_erddap_json_3413_argo_profile'),
ParameterSelector(
matches=lambda d: d.entry_id.startswith('argo_trajectory_'),
converter_type=None,
ingest_parameter_files='ingest_erddap_json_3413_argo_trajectory'),
ParameterSelector(
matches=lambda d: d.entry_id.startswith('bioargo_profile_'),
converter_type=None,
ingest_parameter_files='ingest_erddap_json_3413_bioargo_profile'),
ParameterSelector(
matches=lambda d: d.entry_id.startswith('bioargo_trajectory_'),
converter_type=None,
ingest_parameter_files='ingest_erddap_json_3413_bioargo_trajectory'),
)

def __init__(self, **kwargs):
Expand Down

0 comments on commit aa38da1

Please sign in to comment.