Input/output (sunpy.io)#

The primary focus of sunpy.io is to provide a common interface for reading and writing. sunpy.io contains readers for files that are commonly used in solar physics.

These include:

  • Public API - GENX - ANA - NOAA SWPC Solar Region Summary (SRS) - ASDF

The other readers are intended for use by sunpy.map and sunpy.timeseries and are not intended to be used directly by users.

Special File Readers#

sunpy.io.special.genx Module#

This module implements a solarsoft genx file reader.

Functions#

read_genx(filename)

solarsoft genx file reader.

sunpy.io.ana Module#

This module provides an ANA file Reader.

This is a modified version of pyana.

Warning

The reading and writing of ana files is not supported under Windows.

By default, this module is not installed on platforms other than Linux (x86-64) and macOS (x86-64 and ARM64). See the installation guide for more info.

Functions#

read(filename[, debug])

get_header(filename[, debug])

write(filename, data[, comments, compress, ...])

sunpy.io.special.srs Module#

This module implements a SRS File Reader.

Functions#

read_srs(filepath)

Parse a SRS table from NOAA SWPC.

sunpy.io.special.asdf Package#