Skip to content

Instantly share code, notes, and snippets.

@pauricthelodger
Created November 5, 2018 11:33
Show Gist options
  • Save pauricthelodger/015286c7d2b9320dffa92bd0cce3fb26 to your computer and use it in GitHub Desktop.
Save pauricthelodger/015286c7d2b9320dffa92bd0cce3fb26 to your computer and use it in GitHub Desktop.
# https://regex101.com/r/W4RKMx/1
SENTINEL_1_ZIP_PATTERN = (
r"(?P<mission_id>S1[AB])"
"_"
r"(?P<mode_beam>IW|EW|WV|S[0-6])"
"_"
r"(?P<product_type>RAW|SLC|GRD|OCN)"
r"(?P<resolution>[FHM_])"
"_"
r"(?P<processing_level>[0-2])"
r"(?P<product_class>[SA])"
r"(?P<polarisation>SH|SV|DH|DV)"
"_"
r"(?P<start_datetime>\d{8}T\d{6})"
"_"
r"(?P<end_datetime>\d{8}T\d{6})"
"_"
r"(?P<absolute_orbit>\d+)"
"_"
r"(?P<mission_data_take_id>[0-9A-F]{6})"
"_"
r"(?P<product_unique_id>[0-9A-F]{4}).zip"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment