CDAWEBClient#
- class sunpy.net.cdaweb.CDAWEBClient[source]#
Bases:
BaseClient
Provides access to query and download from the Coordinated Data Analysis Web (CDAWeb).
Examples
>>> from sunpy.net import Fido, attrs as a >>> print(a.cdaweb.Dataset) sunpy.net.cdaweb.attrs.Dataset Dataset ID. Attribute Name Client ... Description ------------------------------------------------------- ------ ... -------------------------------------------------------------------------------- a1_k0_mpa CDAWEB ... LANL 2001 Magnetospheric Plasma Analyzer Key Parameters - Mike Henderson (LANL) a2_k0_mpa CDAWEB ... LANL 2002 Magnetospheric Plasma Analyzer Key Parameters - Mike Henderson (LANL) ... >>> res = Fido.search(a.Time('2021/07/01', '2021/07/08'), ... a.cdaweb.Dataset('SOLO_L2_MAG-RTN-NORMAL-1-MINUTE')) >>> res <sunpy.net.fido_factory.UnifiedResponse object at ...> Results from 1 Provider: 7 Results from the CDAWEBClient: Source: https://cdaweb.gsfc.nasa.gov/index.html Dataset Start time End time ------------------------------- ----------------------- ----------------------- SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-01 00:00:29.000 2021-07-01 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-02 00:00:29.000 2021-07-02 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-03 00:00:29.000 2021-07-03 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-04 00:00:29.000 2021-07-04 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-05 00:00:29.000 2021-07-05 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-06 00:00:29.000 2021-07-06 23:59:30.000 SOLO_L2_MAG-RTN-NORMAL-1-MINUTE 2021-07-07 00:00:29.000 2021-07-07 23:59:30.000
See also
sunpy.net.cdaweb.get_datasets
Find dataset IDs for a given observatory
sunpy.net.cdaweb.get_observatory_groups
Get all observatories available from CDAWeb
Attributes Summary
This should return a string that is a URL to the data server or documentation on the data being served.
Methods Summary
fetch
(query_results, *, path, downloader, ...)This enables the user to fetch the data using the client, after a search.
This enables the client to register what kind of Attrs it can use directly.
search
(*query, **kwargs)Search for datasets provided by the Space Physics Data Facility.
Attributes Documentation
- info_url#
Methods Documentation
- fetch(query_results, *, path, downloader, **kwargs)[source]#
This enables the user to fetch the data using the client, after a search.
- Parameters:
query_results – Results to download.
path (
str
orpathlib.Path
, optional) – Path to the download directorydownloader (
parfive.Downloader
) – The download manager to use.
- Returns:
parfive.Results
– The results object, can beNone
ifwait
isFalse
anddownloader
is not None.