argopy.ArgoIndex.query

argopy.ArgoIndex.query#

ArgoIndex.query()#

Extension providing search methods to query index entries

All search methods can be combined with the ArgoIndex.query.compose() method, see examples.

Examples

Listing 40 List of search methods#
from argopy import ArgoIndex
idx = ArgoIndex()

idx.query.wmo
idx.query.cyc
idx.query.wmo_cyc

idx.query.lon
idx.query.lat
idx.query.date
idx.query.lat_lon
idx.query.box

idx.query.params
idx.query.parameter_data_mode

idx.query.profiler_type
idx.query.profiler_label

idx.query.institution_code
idx.query.institution_name
idx.query.dac
Listing 41 Composition of queries#
from argopy import ArgoIndex
idx = ArgoIndex(index_file='bgc-s')

idx.query.compose({'box': BOX, 'wmo': WMOs})
idx.query.compose({'box': BOX, 'params': 'DOXY'})
idx.query.compose({'box': BOX, 'params': 'DOXY'})
idx.query.compose({'box': BOX, 'params': (['DOXY', 'DOXY2'], {'logical': 'and'})})
idx.query.compose({'params': 'DOXY', 'profiler_label': 'ARVOR'})

Note that composing query with:

  • wmo and cyc is slower than using the wmo_cyc method

  • lon and lat is slower than using the lon_lat method

  • lon, lat and date is slower than using the box method