X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



8318 Rate this article:
3.7

Issues opening Sentinel-2 data sets in ENVI 5.3/5.3.1

Sentinel-2 data support was added to ENVI 5.3 and expanded with ENVI 5.3.1 (SP1).  However, when opening some Sentinel-2 data sets using ENVI, you may encounter different error messages depending on the distributor of the data and how the data are stored.

Long paths

With the initial release of Sentinel-2 data from the ESA/SciHub, it was discovered that the very long file names of the data sets can cause some issues on Windows platforms, particularly if the data are stored deep into the directory structure, which makes the path to the actual data granules extremely long.  For example, a full Sentinel-2 data set can contain many granules of jp2 data.  The un-archived file may have a name such as:

S2A_OPER_PRD_MSIL1C_PDMC_20160125T111126_R053_V20160122T144141_20160122T144141.SAFE

where the actual data files (.jp2) are stored underneath this directory (under GRANULE) and opened using an .XML file that references the various granules within the directory. If this file is stored deep into a directory, the length of the path to the files will exceed the limit that Windows will allow (260 characters).  You may encounter the following error:

"File does not appear to be a valid JPEG2000 file".

If you encounter this issue, move the file to a shorter directory path or to the root directory (C: on Windows).

Missing granules in USGS distributed Sentinel-2 data sets

Sentinel-2 data distributed through SciHub typically contain the full data set with all granules.  The USGS distributes this same data but only for a subset or a a single granule of data.  So they take the full data set (which are upwards of 7 GB) and separate the granules into different files which makes them much smaller to download (<1 GB).  However, the .XML file that is distributed with the USGS data sets is the original XML that references all the original granules.  When you open these data sets in ENVI, you may encounter the same error as before:

"File does not appear to be a valid JPEG2000 file".

but also an object reference error due to the missing data sets:

<OBJREF  (<NullObject>)>

If you encounter this error with Sentinel-2 data sets distributed from the USGS, please contact Harris Geospatial Technical Support to obtain a hotfix for ENVI 5.3.1.

Missing data from SciHub distributed Sentinel-2 data sets

This issue can occur with Sentinel-2 data sets that cross more than one UTM Zone.  The data set can be opened using the .XML without error but it appears that some granules are missing or misplaced in the display.

If you encounter this error with Sentinel-2 data sets distributed from SciHub, please contact Harris Geospatial Technical Support to obtain a hotfix for ENVI 5.3.1.

 

Created 7/18/2016 mm

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »