s2d2.sentinel2_datastrip

Module Contents

Classes

Sentinel2Datastrip

class s2d2.sentinel2_datastrip.Sentinel2Datastrip(path: s2d2.typing.Path)[source]
load_metadata() None[source]
_get_ids_from_xmltree(general_info: xml.etree.ElementTree.Element) None[source]
_get_abs_orbit_from_xmltree(general_info: xml.etree.ElementTree.Element) None[source]
_get_tile_list_from_xmltree(tile_list: xml.etree.ElementTree.Element) None[source]
_get_gps_flightpath_from_xmltree(gps_list: xml.etree.ElementTree.Element) None[source]

Notes

The metadata structure of MTD_DS looks like:

* MTD_DS.xml
└ n1:Level-1C_DataStrip_ID
   ├ n1:General_Info
   ├ n1:Image_Data_Info
   ├ n1:Satellite_Ancillary_Data_Info
   │  ├ Time_Correlation_Data_List
   │  ├ Ephemeris
   │  │  ├ GPS_Number_List
   │  │  ├ GPS_Points_List
   │  │  └ AOCS_Ephemeris_List
   │  │  │  └ AOCS_Ephmeris
   │  │  │     ├ VALID_FLAG
   │  │  │     ├ OPSOL_QUALITY
   │  │  │     ├ POSITION_VALUES
   │  │  │     ├ VELOCITY_VALUES
   │  │  │     ├ VELOCITY_ERRORS
   │  │  │     ├ GPS_TIME
   │  │  │     ├ NSM
   │  │  │     ├ QUALITY_INDEX
   │  │  │     ├ GDOP
   │  │  │     ├ PDOP
   │  │  │     ├ TDOP
   │  │  │     ├ NOF_SV
   │  │  │     └ TIME_ERROR
   │  ├ Attitudes
   │  ├ Thermal_Data
   │  └ ANC_DATA_REF
   │
   ├ n1:Quality_Indicators_Info
   └ n1:Auxiliary_Data_Info
_get_aocs_flightpath_from_xmltree(aocs_list: xml.etree.ElementTree.Element) None[source]

Notes

These are as follows:
  • VALID_FLAG: bool

    true if ephemeris is valid

  • OPSAL_QUALITY: int

    0: solution is valid 1: solution propagated 2: cyclic position update available

  • POSITION_VALUES: yyyy-mm-ddThh:mm:ss.s

  • VELOCITY_VALUES: bool bool bool bool bool bool bool …

    list of 11 boolean flags separated by whitespace for STR1 STR2 STR3 GPSR-A GPSR-B VCU-A VCU-B IMU-1 IMU-2 IMU-3 IMU-4

  • GPS_TIME: int

  • ORBIT_ANGLE: float

    orbit angle with respect to WGS-84

  • INNOVATION_STR1: float float float

    difference between GSE filter estimate and second in-use STR measurement

  • INNOVATION_STR2: float float float

    difference between GSE filter estimate and second in-use STR measurement

  • ATTITUDE_QUALITY_INDICATOR: str

_get_corrected_attitudes_from_xmltree(attitudes_list: xml.etree.ElementTree.Element) None[source]

Notes

The metadata structure of MTD_DS looks like:

* MTD_DS.xml
└ n1:Level-1C_DataStrip_ID
   ├ n1:General_Info
   ├ n1:Image_Data_Info
   ├ n1:Satellite_Ancillary_Data_Info
   │  ├ Time_Correlation_Data_List
   │  ├ Ephemeris
   │  ├ Attitudes
   │  │  └ Corrected_Attitudes
   │  │  │  └ Values
   │  │  │     ├ QUATERNION_VALUES
   │  │  │     ├ QUATERNION_VALIDITY
   │  │  │     ├ GPS_TIME
   │  │  │     ├ INUSE_FLAGS
   │  │  │     ├ AOCS_MODE
   │  │  │     ├ AOCS_SUBMODE
   │  │  │     ├ INNOVATION_STR1
   │  │  │     ├ INNOVATION_STR2
   │  │  │     └ ATTITUDE_QUALITY_INDICATOR
   │  ├ Thermal_Data
   │  └ ANC_DATA_REF
   ├ n1:Quality_Indicators_Info
   └ n1:Auxiliary_Data_Info
These are as follows:
  • QUATERNION_VALUES: float float float float

    space separated list of 4 quaternion values ordered as qv1 qv2 qv3 qs

  • QUATERNION_VALIDITY: bool

    true if quaternion is valid

  • GPS_TIME: yyyy-mm-ddThh:mm:ss.s

  • INUSE_FLAGS: bool bool bool bool bool bool bool …

    list of 11 boolean flags separated by whitespace for STR1 STR2 STR3 GPSR-A GPSR-B VCU-A VCU-B IMU-1 IMU-2 IMU-3 IMU-4

  • AOCS_MODE: int

  • AOCS_SUBMODE: int

  • INNOVATION_STR1: float float float

    difference between GSE filter estimate and second in-use STR measurement

  • INNOVATION_STR2: float float float

    difference between GSE filter estimate and second in-use STR measurement

  • ATTITUDE_QUALITY_INDICATOR: str

get_altitude()[source]
get_velocity()[source]