imap_data_access.io.query#

Query the data archive for files matching the parameters.

Before running the query it will be checked if a version ‘latest’ command was passed and that at least one other parameter was passed. After the query is run, if a ‘latest’ was passed then the query results will be filtered before being returned.

param table:

The desired table for the query to be performed against. Defaults to the science table.

type table:

str, optional

param instrument:

Instrument name (e.g. mag)

type instrument:

str, optional

param data_level:

Data level (e.g. l1a)

type data_level:

str, optional

param descriptor:

Descriptor of the data product / product name (e.g. burst)

type descriptor:

str, optional

param start_date:

Start date in YYYYMMDD format. Note this is to search for all files with start dates on or after this value.

type start_date:

str, optional

param end_date:

End date in YYYYMMDD format. Note this is to search for all files with start dates before the requested end_date.

type end_date:

str, optional

param ingestion_start_date:

Ingestion start date in YYYYMMDD format. Note this is to search for all files with ingestion start dates on or after this value.

type ingestion_start_date:

str, optional

param ingestion_end_date:

Ingestion end date in YYYYMMDD format. Note this is to search for all files with ingestion start dates before the requested end_date.

type ingestion_end_date:

str, optional

param repointing:

Repointing string, in the format ‘repoint00000’.

type repointing:

str, optional

param version:

Data version in the format vXXX or ‘latest’.

type version:

str, optional

param extension:

File extension (cdf, pkts)

type extension:

str, optional

returns:

List of files matching the query

rtype:

list