load_HMI_stokes

stokespy.load_HMI_stokes(user_dir, user_date, user_email, max_conn=1, download=False, show_files=False, derotate=False)[source]

Locate and fetch the HMI 720s Level 1 Stokes data closest in time to a user specified date. Routine can both fetch the data from JSOC or read pre-downloaded data. The original resolution and orientation of the data is preserved unless the derotate keyword is specified which corrects for HMI’s orientation relative to the pre-defined solar north direction.

TODO: 1. If download is False the code finds the nearest files in time which may not be inside the time search window. Create a keyword that determines the width of the search time window and then excludes any files, even locally from it. The downside to this is the reduced ability to load any files.

Parameters
  • user_date (astropy.time object.) –

  • user_email (Notification email. This must be registered with JSOC.) –

  • user_dir (Directory where data is/will be stored.) –

  • max_conn (The number of connections to be used when downloading from JSOC. The default setting will be the slowest but least likely to generate download errors.) –

  • download (Flag that can be set to avoid quering JSOC for data that the user already knows is present.) –

  • show_files (Flag to display the files where data is loaded from) –

  • derotate (Flag if the HMI data should be derotated based on CROTA2 keyword. This ensures the PCij matrix is diagonal.) –