coconut_tools.download_tomo_file

Download STEREO tomography files (.dat and .jpg) from solarphysics.abersytwyth.ac.uk archive.

This module fetches files of the format:
  • tomo_sta_cor2a_<yyyymmdd>_<altitude>.dat

  • tomo_sta_cor2a_<yyyymmdd>_<altitude>.jpg

from:

https://solarphysics.aber.ac.uk/Archives/tomography/cor2a/<year>/distance_<altitude>/

Functions:
  • download_tomography_file(date, altitude, output_dir): Downloads .dat and .jpg.

  • list_available_altitudes(year): List available altitudes for a given year.

Functions

download_tomography_file(date, altitude, ...)

Download the .dat and .jpg tomography file for a given date and altitude.

list_available_altitudes(year)

List all available altitude folders for a given year.

coconut_tools.download_tomo_file.download_tomography_file(date, altitude, output_dir)[source]

Download the .dat and .jpg tomography file for a given date and altitude.

Parameters:
  • date (str) – The date in ‘YYYYMMDD’ format.

  • altitude (str) – The altitude string, e.g., ‘5-0’, ‘4-4’.

  • output_dir (str) – The directory where to save the files.

Return type:

None

Returns:

None

coconut_tools.download_tomo_file.list_available_altitudes(year)[source]

List all available altitude folders for a given year.

Parameters:

year (str) – Year as a string (e.g., ‘2019’).

Returns:

List of altitude folder names (e.g., [‘5-0’, ‘6-5’]).

Return type:

list