X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07 Nov 2011 09:48 PM by  anon
Image in pxl file format processing in IDL
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
07 Nov 2011 09:48 PM
    Dear All, I have a file in .pxl format..i can open this in ENVI...I have 9 images(wavelengths from 412 to 869) in that one particular .pxl file....i want to write the code in IDL to process this image...I don't know how to get this file in IDL and process... I want to know the programming in IDL? How to read this file in IDL? I have some algorithms...I want to apply that to this image...How do I process this file in IDL....Please reply it soon... Regards, Suresh M

    Deleted User



    New Member


    Posts:
    New Member


    --
    08 Nov 2011 07:46 AM
    Can you provide more information about the .pxl format that the file is in? I'm not familiar with that format. If you don't know much about the format, maybe it would help if you could explain how this file was generated? Since ENVI can read the file, I wonder if it is in the ENVI format, but just happens to have been given a .pxl filename extension? Because ENVI can read the file, you can send the data in the file from ENVI to IDL by choosing File > Export to IDL Variable from the main ENVI menu. This will only work if your system has enough contiguous RAM to store the full image in memory all at once. Depending on what the format of the file is, you could also use an ENVI batch routine to open the file, if you have an ENVI license available when you are programming in IDL. - Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    11 Nov 2011 05:25 AM
    Thanks for ur reply...I have a licensed version of Envi 4.8 ...But i haven't familier with Envi IDL code...Its completely new to me...So please help me to Understand it...Suggest me any useful guide... This is how it is opening in Available Band List 20101110_slot06_L1A.pxl Warp(Band 1:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 2:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 3:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 4:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 5:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 6:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 7:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) Warp(Band 8:GOCI_1A_2010-11-10.01-16-43_6.pxl.corr) How to use ENVI batch routine...I saw some of IDL codes...But i dont know how to give this file as input to that IDL code...Please give me some example to give input image file in IDL code and then where i have to insert this file, whether i have to give the complete path... I have given variable name to saved the data in the file from ENVI to IDL by choosing File > Export to IDL Variable from the main ENVI menu..But i dont know where it is saved... I want to write some algorithm to process this image file in IDL...Please help me to go further... Thanks & Regards Suresh M

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Nov 2011 08:02 AM
    A good place to start learning about how to use IDL, and the additional routines that ENVI adds to IDL, to create batch scripts for ENVI is in the ENVI documentation under Working with ENVI > Sample Code and Instructions > Overview of ENVI Programming, and then follow the links there for more information. Because all of ENVI's batch scripting is done with IDL, you may also want to start learning about IDL programming. There are a couple of good books for getting you up to speed on IDL programming. You can find information about them here: http://www.exelisvis.com/...upport/IDLBooks.aspx For the specific task that you need to do, you will probably want to check out the documentation for the following ENVI routines: ENVI_OPEN_DATA_FILE To open your image files in ENVI, if they *are not* in the ENVI format. ENVI_OPEN_FILE To open your image files in ENVI, if they *are* in the ENVI format. MATH_DOIT To apply an equation to different bands from the image data. - Peg

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Nov 2011 11:11 PM
    Thanks peg Now i made a program to process..After process with some equation, it is saving as only one image as output...In my original pxl file, it contains 8 bands with 8 images...How to write an output file which have same format of input file... Regards Suresh M
    You are not authorized to post a reply.