Skip to content

Commit

Permalink
adjust argo syntool conversion config
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Sep 11, 2024
1 parent 821ce05 commit a5879ad
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 a5879ad

Please sign in to comment.