X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 May 2007 11:17 AM by  anon
to open netcdf file to change its map projection
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
22 May 2007 11:17 AM
    Hi, i have been using IDL6.2 and ENVI4.2 and i am trying to open a netcdf file which is basically a lambert map projection with Hg air concentration values. i am trying to open the netcdf file so that i can change the cental meridian to match my domain and then extract ROI, but so far i am not been able to do so, each time i open up the file i have to input the header and it gives me an error, can someone tell me if this version is able to view netcdf file. i can see that the new version has provision for netcdf files. also if there is any uitilities or add-ons thati can use to veiw the netcdf file. any help will be really appreciated thanks suraj

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    22 May 2007 11:17 AM
    ENVI doesn't support netcdf directly so creating a header on the fly is probably not a very robust way of opening these data files. Instead, use IDL's netcdf open routines and extract the data you want into an IDL variable. Then write this IDL variable to an ENVI format file via something like ENVI_WRITE_ENVI_FILE. You can assign the map info using this routine as well. Then you should not need to enter any file information when you open the file in the future.
    You are not authorized to post a reply.