X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Mar 2017 05:11 AM by  anon
Error opening Sentinel 2
 8 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:24
New Member


--
17 Mar 2017 05:11 AM
    Hi all, i am trying to import Sentinel 2 dataset. I downloaded the file S2A_MSIL1C_20170313T093031_N0204_R136_T33SXR_20170313T093510.zip. How can i open this file into ENVI 5.4? Thank you for any succestion.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    17 Mar 2017 07:41 AM
    You first need to unzip the file using something like 7-zip or your native archive program on your system. Then go into the first directory and open the top level .XML file.

    Deleted User



    New Member


    Posts:24
    New Member


    --
    17 Mar 2017 08:10 AM
    I already tried this solution. I tryed to open the file MTD_MSIL1C.xml and ENVI returns with the following error: File does not appear to be a valid Sentinel-2 file: mydirectoy\MTD_MSIL1C.xml I tryed also to open the INSPIRE.xml file, and any other file .xml but i have obteined the same error message.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    17 Mar 2017 08:59 AM
    What version of ENVI are you running? It looks like you have one of the new format files that have short file names. There is a patch available for ENVI 5.4 that will resolve this issue.

    Deleted User



    New Member


    Posts:24
    New Member


    --
    17 Mar 2017 09:05 AM
    I definitly need to install this patch (for ENVI 5.4). Where can i find and download the patch?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    17 Mar 2017 09:17 AM
    You can contact supporteu@harris.com to request the patch for 5.4. You can reference ENVI-71042

    Deleted User



    New Member


    Posts:24
    New Member


    --
    17 Mar 2017 09:37 AM
    Thank you. I have a problem with the idlpy bridge. I posted it on IDL forum but it seems less followed by users. Can i try to post my question here?

    Deleted User



    Basic Member


    Posts:228
    Basic Member


    --
    20 Mar 2017 01:00 PM
    You can try posting it here. I can tell you that the people who follow posts on this forum are generally less knowledgeable about IDL. But we might be able to track down some explanation for whatever behavior you are seeing. Peg

    Deleted User



    New Member


    Posts:24
    New Member


    --
    22 Mar 2017 03:53 AM
    Ok, the problem is the following: i have a python script that calls and executes some python functions making idl processes following the IDL.run('instruction') syntax. More in detail, i have a set of function making "radiometric correction", "pansharpening" "layer stacking", and so on. I make the import of idlpy module at the begin of my file. The problem is that license remains busy throughout the execution duration. I try also to make the import of idlpy only from inside each method. There is a way to import the idlpy module at the start of a particular function (eg. for radiometric correction), then end the license utilisation and import again the idlpy module at the next function (eg. pansharpening)? my code is something like: from idlpy import * def idl_RadCorrection(inpu1, input2): IDL.input1=input1 IDL.input2 = input2 IDL.run('first instruction') IDL.run('second instruction') def idl_GramSchimdtPanSharpening(input1, input2): IDL.input1 = input1 IDL.input2 = input2 IDL.run('first instruction') IDL.run('second Instruction') and the main: def idl_RadCorrection(inpu1, input2) def idl_GramSchimdtPanSharpening(input1, input2) My need is to start idl license for the first function (Rad Corr), run it, close idl, do something, start idl again, run second function (Pan Sharpening), close IDL, and so on.... Any suggestion?
    You are not authorized to post a reply.