ER2 Geometry Utilities
- load_er2_data(flight, folder='C:\\Users\\lar555\\Documents\\ACCP\\ER2\\telemetry', resample='400ms', load=True)[source]
Load the IWG1 data for a flight into a xarray.Dataset.
- Parameters:
flight (Name of the flight used in the IWG1 file) –
folder (directory where the file is stored) –
resample (If set data will be resampled to this resolution) –
load (If true the resampled file will be loaded if it exists) –
- Return type:
xarray.Dataset containing the IWG1 data
- er2_orientation(er2, instrument_pitch_deg=0.0, instrument_yaw_deg=0.0, instrument_roll_deg=0.0)[source]
Calculate the OpticalGeometry used in Sasktran from an IWG1 point
- Parameters:
er2 (xr.Dataset) – Containing a single time and at least attributes: [‘longitude’, ‘latitude’, ‘altitude’, ‘heading’, ‘pitch’, ‘roll’, ‘time’]
instrument_pitch_deg ([Optional]) – Pitch angle in degrees of the instrument relative to teh aircraft
instrument_yaw_deg ([Optional]) – Yaw angle in degrees of the instrument relative to teh aircraft
instrument_roll_deg ([Optional]) – Roll angle in degrees of the instrument relative to teh aircraft
- Return type:
LookGeometry