argopy.ArgoIndex.query.date

argopy.ArgoIndex.query.date#

ArgoIndex.query.date(BOX=None, nrows=None, composed=False, **kwargs)#

Search index for a date range

Parameters:
  • BOX (list or str, optional) โ€“

    An index box to search Argo records for. Can be:

    • Full 6-element list: [lon_min, lon_max, lat_min, lat_max, date_min, date_max]

    • 2-element list: [date_min, date_max]

    • Single date string: interpreted as day-only (profiles on that specific date)

  • ge (str, optional) โ€“ Greater or equal bound for date filtering (lower limit). Default: โ€˜1900-01-01โ€™

  • le (str, optional) โ€“ Less or equal bound for date filtering (upper limit). Default: โ€˜2100-12-31โ€™

Return type:

ArgoIndex

Warning

Only date bounds are used from the index box.

Notes

Either BOX or ge/le keywords must be provided.

Examples

from argopy import ArgoIndex
idx = ArgoIndex(index_file='core')

idx.query.date([-60, -55, 40., 45., '2007-08-01', '2007-09-01'])
idx.query.date(ge='2007-08-01', le='2007-09-01')
idx.query.date(['2007-08-01', '2007-09-01'])
idx.query.date('2007-09-01')