Skip to main content

A sunpy plugin for accessing data in the Solar Orbiter Archive (SOAR).

Project description

A sunpy plugin for accessing data in the Solar Orbiter Archive (SOAR).

build status code coverage

When interacting with the sunpy-soar project you are asked to follow the SunPy Code of Conduct .

Installation

sunpy-soar requires python >= 3.7 and sunpy >= 2.1. Currently it can only be installed from PyPI using:

pip install sunpy-soar

or conda using

conda install -c conda-forge sunpy-soar

Example usage

The code below gives an example of how to search and download Solar Orbiter data using sunpy.net.Fido:

# Importing sunpy_soar registers the client with sunpy
import sunpy_soar
from sunpy.net import Fido

from sunpy.net.attrs import Instrument, Level, Time
from sunpy_soar.attrs import Identifier

# Create search attributes
instrument = Instrument('EUI')
time = Time('2021-02-01', '2021-02-02')
level = Level(1)
identifier = Identifier('EUI-FSI174-IMAGE')

# Do search
result = Fido.search(instrument & time & level & identifier)
print(result)

# Download files
files = Fido.fetch(result)
print(files)

Available search attributes

When constructing a search, sunpy.net.attrs.Time must be provided. Other search attributes can be used too; sunpy-soar recognises the following:

  • sunpy.net.attrs.Instrument

  • sunpy.net.attrs.Level

  • sunpy_soar.attrs.Identifier

Changelog

1.1

  • Fixed download of data where multiple versions of the requested file are available. Only the most recent version will be downloaded.

  • Added some log messages to the sunpy logger at DEBUG level

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sunpy-soar-1.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file sunpy-soar-1.1.tar.gz.

File metadata

  • Download URL: sunpy-soar-1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.5

File hashes

Hashes for sunpy-soar-1.1.tar.gz
Algorithm Hash digest
SHA256 096e2e14e3ba25cc804349259d51a136da78c4d3a5639dbdfe6609cd51fe17cf
MD5 98a1d4caa98a2b503d23a833e0595bc9
BLAKE2b-256 7bea3fc2db9a1403c020a87043e37e2eac38fd526ebc409f2ab096451fa6d463

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page