I am having difficulty with the MGRS part of the product naming convention, as defined in https://earth.esa.int/web/sentinel/user-guides/sentinel-2-msi/naming-convention (Granule naming convention). (BTW : Sentinel2 handbook appears to be out of date in this respect).
I work for the EC JRC where we have an archive of S2A L1C products.
I am working principally in Python (2.7, 3.4) with snappy and am using the mgrs module on an Apple mac.
The naming-convention web page states:
Tile Number (_Xxxxxx) = _Txxxxx which represents the Tile number according to the US-MGRS naming convention (tile)
An example of a problem granule:
$ROOT/2015/S2A_OPER_PRD_MSIL1C_PDMC_20151201T123622_R002_V20151130T010047_20151130T010047.SAFE/GRANULE/S2A_OPER_MSI_L1C_TL_SGS__20151130T092547_A002287_T54MYR_N02.00
The 54MYR part of the filename (before last group) does not seem to be a legal MGRS grid reference.
It blows-up in python e.g.:
In [1]: import mgrs
In [2]: pmgrs = mgrs.MGRS()
In [3]: pmgrs.toLatLon(“54MYR”)
RTreeError: Error in “Convert_MGRS_To_Geodetic”: MGRS Errors: String Error
This appears to be confirmed when I consult various mapping webpages such as
and
q1) I note that the processing version (N02.00) is very early. We also have some (N02.01), none of which have these problems.
Could it be that we need upload more recently processed versions of these tiles?
What is the minimum N-number that we can consider stable?
And a few extra question thrown in…
q2) Is there a java API function that returns information on MGRS grids used?
q3) Is there a way of searching for a keyword in the SNAP engine API pages?
Many thanks for your help…
Olly Morgan