umr-lops / xsar

Synthetic Aperture Radar (SAR) Level-1 GRD python mapper for efficient xarray/dask based processing
https://cyclobs.ifremer.fr/static/sarwing_datarmor/xsar/
MIT License
25 stars 8 forks source link

Add 'history' attributes to variables with xpath from xml files #35

Closed oarcher closed 2 years ago

oarcher commented 2 years ago

As requested by @lanougue, this PR adds an 'history' attribute to almost all variables, in a yaml style string:

for example, for the 'incidence' variable:

incidence:
  annotation/s1b.xml:
  - /product/geolocationGrid/geolocationGridPointList/geolocationGridPoint/line
  - /product/geolocationGrid/geolocationGridPointList/geolocationGridPoint/pixel
  - /product/geolocationGrid/geolocationGridPointList/geolocationGridPoint/incidenceAngle