X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 15 Dec 2008 01:39 PM by  anon
How to write an array into a dateset as a band, not a dateset?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
15 Dec 2008 01:39 PM
    Hi, there I want to write several 2-D arrays into a dateset as several ‘bands’, not several 'datesets' in a file. I use HDF_SD_START  with keywords  /CREATE  to create a HDF file, and use HDF_SD_CREATE to create a dateset in the generated file. Now I have some (suppose 7) 2-D arrays that can be wrote into the file. What I want is to write these 7 array into the dateset as '7 bands in one dataset', not as 7 datesets in this file. that is to say, if I use ENVI_FILE_QUERY  to check the NB of the file, I want the result is 7, not 1. How can I do it in IDL? thanks

    Deleted User



    New Member


    Posts:
    New Member


    --
    22 Dec 2008 02:55 PM
    supplement to my question: What I want is to 'STACKING' these datesets  into one dataset, and the datasets before 'stacting' serves as "bands" after stacking. I know how to achieve this ‘Stacking layers’ in ENVI, But how can I finish it By IDL Programming?

    Deleted User



    New Member


    Posts:
    New Member


    --
    05 Jan 2009 10:59 AM
    hdf_sd_attrset  is to add attributes to a dataset. I can not find any example about how to use it to add an array to a dataset as a band. can you give me any instance? thank you.
    You are not authorized to post a reply.