get_latest_response#
- irispy.utils.response.get_latest_response(observation_time=None)[source]#
Returns the latest IRIS response structure.
This is not downloading the latest response file from the IRIS website,’ but rather reading the latest response file from the local data directory.
Goal is to replicate the base functionality of the IDL routine
iris_get_response.proin the SSWIDL package.There are no plans to support anything but the latest response file.
This routine does calculate time dependent effective areas using as is done in the SSWIDL version of this code.
As a result of being translated from IDL, it has that IDL code smell and layout. The upside to this is that if upstream IDL changes occur, it is easy to adapt this in the future compared to if it was Python-ized.
- Parameters:
observation_time (
astropy.time.Time, optional) – Observation times of the datapoints. Must be in a parsable time format. If not provided, the current time is used.- Returns:
Various parameters regarding IRIS response or effective area structure.
Includes the following keys:
date_obs :
astropy.time.Timelambda :astropy.units.Quantityarea_sg :astropy.units.Quantityname_sg :strdn2phot_sg :tupleof length 2 area_sji :astropy.units.Quantityname_sji :strdn2phot_sji :tupleof length 4 comment :strversion :intversion_date :astropy.time.Time- Return type: