Skip to main content

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

Project description

sunpy-soar

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
import sunpy.net.attrs as a

# Create search attributes
instrument = a.Instrument('EUI')
time = a.Time('2021-02-01', '2021-02-02')
level = a.Level(1)
product = a.soar.Product('EUI-FSI174-IMAGE')

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

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

Available search attributes

The easiest way to access search attributes is using import sunpy.net.attrs as a. When constructing a search, a.Time must be provided. Other search attributes can be used too - sunpy-soar recognises the following:

  • a.Instrument

  • a.Level

  • a.soar.Product

The third near argument to a.Time is not supported - you will have to manually filter the results if you want to find the one closest to a given time.

Changelog

1.2

  • The Identifier attribute is deprecated - use Product instead, which is a direct replacement (with a better name!).

  • Allow time-only searches to be made.

  • Registered the Product attribute in the sunpy.net.attrs.soar namespace. After running import sunpy.net.attrs as a, the attribute can now be accessed using a.soar.Product.

  • The "Filesize" column in returned results now has units of astropy.units.Mbyte (previously it had no units).

  • Removed a validation check on a.Level. If an level that SOAR doesn’t understand is passed, zero results will now be returned instead of an error being raised.

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

1.0

First stable sunpy-soar release.

  • Fixed searches where there are no results.

  • Added filesize to the result table

  • Raise an error if the SOAR server can’t be reached

1.0b1

First sunpy-soar release.

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.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

sunpy_soar-1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sunpy-soar-1.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sunpy-soar-1.2.tar.gz
Algorithm Hash digest
SHA256 ebf3547d419ddf5e15b2af8fbeb1ea4167bb43dcf8ee249ca3ecc47aba7e5ded
MD5 f15a6e2639922990c313afeb20023cde
BLAKE2b-256 59a51943075f2f4866939d683fec3feb6b7ebaead67d2b435047bd0af0ee1979

See more details on using hashes here.

File details

Details for the file sunpy_soar-1.2-py3-none-any.whl.

File metadata

  • Download URL: sunpy_soar-1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for sunpy_soar-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0667f03d7b548cce2970b62386a68bf3137ad614f41358e454684e785e8a68ba
MD5 842e77a0e5e0ba70a9653f2c292f4369
BLAKE2b-256 54ee3173525b7f3ed9e49e3d00b89a214f69f3e8192797cc0a0ab0bcc6b41a69

See more details on using hashes here.

Supported by

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