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

get local path from safe name #62

Closed oarcher closed 2 years ago

oarcher commented 2 years ago

We need to provide a function that return the local path from a safe name, like safe_dir function in sentinelrequest

This function works with a path template that is for datarmor@ifremer like: /home/datawork-cersat-public/cache/project/mpc-sentinel1/data/esa/sentinel-${missionid}/L${LEVEL}/${BEAM}/${MISSIONID}_${BEAM}_${PRODUCT}${RESOLUTION}_${LEVEL}${CLASS}/${year}/${doy}/${SAFE}

For creodias, it should be something like: '/eodata/Sentinel-1/SAR/${PRODUCT}/${year}/${month}/${day}'

oarcher commented 2 years ago

In sentinelrequest, {missionid} and {MISSIONID} are inconsistent:

MISSIONID is like 'S1A', but missionid is '1a' (missing 's')