10 Dec 2010 08:44 AM |
|
Hello,
Just curious, why is the ESRI Grid format not supported with ENVI 4.8 and ArcGIS 10. When I try to save a file as ESRI grid, a message pops up saying that I need ArcGIS 8 or 9. What's the deal with that?
Mike
|
|
|
|
MariM Veteran Member
Posts:2396  
14 Jan 2011 08:28 AM |
|
ENVI 4.3 is not supported with ArcGIS® 10. Only ENVI 4.8 is supported. However, for the original post - there is a known issue with read/write in ENVI if ArcGIS® 10 is installed. One way around this is to open the file in ENVI Zoom which uses a different reader for GRID, and then send the file to ENVI. ENVI will prompt you to enter header information but dismiss this and the file should open in the Available Bands List.
|
|
|
|
Deleted User New Member
Posts:  
26 Jan 2011 10:01 AM |
|
I'm curious if this post answered the original question? I have no problems importing things into ENVI, but I have the same problem described by the original post; which is that when trying to save a file already in the available bands list to an ESRI GRID (with ArcGIS 10 installed) I get the error described in the first post. I get this regardless of whether I open the file directly through ENVI or through ENVI Zoom. Is there a workaround to saving files from the available bands list to ESRI GRID, with ArcGIS 10 installed?
|
|
|
|
MariM Veteran Member
Posts:2396  
26 Jan 2011 10:14 AM |
|
No, you are correct. Zoom only addresses the opening of the file. You still will not be able to save to GRID from ENVI with ArcGIS 10 installed until this is fixed in ENVI.
|
|
|
|
Deleted User New Member
Posts:12  
29 Mar 2011 11:46 AM |
|
I recall being told this would be fixed in 4.8 so I am surprised it has not been fixed yet. Anyway, here is a hack that may be of use.
Save your ENVI file using the extension ".dat" You can also just rename this but don't change the header file extension! ArcGIS 10 can open this file directly.
Now in AG 10 convert this raster dataset to GRID. Just search for GRID, or the path to the tool is...
ArcToolbox => Conversion Tools => To Raster => Raster To Other Formats (multiple)
Hope this helps.
|
|
|
|
Deleted User New Member
Posts:6  
29 Aug 2012 03:30 AM |
|
considering what is written in the first post, I'm experiencing the same problem with ENVI 5.0 and ARCGIS10.
I get the same error!
this bug is not fixed yet!!
how can we do if we want to use this kind of file??
thanks for the answer
|
|
|
|
Deleted User New Member
Posts:  
29 Aug 2012 08:04 AM |
|
Right, ENVI 5 does not support writing of GRID files when you have ArcGIS 10 or later installed. ENVI 5 can read GRID files when ArcGIS 10 is installed, because GDAL (the Geospatial Data Abstraction Library used in ArcGIS 10 and ENVI 5) supports reading of GRID files. But it does not support writing of GRID files. So, neither does ENVI 5.
But, as the post above yours points out, there is a pretty easy work around. You can write your rasters out to the ENVI format, and if you give your files a *.dat filename extension, then ArcGIS 10 will be able to read them in. Then you can do whatever you want with them in ArcGIS 10.
Peg
Exelis VIS Technical Support
|
|
|
|
Deleted User New Member
Posts:6  
30 Aug 2012 03:11 AM |
|
Hi Peg,
actually my problem is to avoid to go forth and back manually between ENVI and ARCGIS because I have to analyze a series of file and I can't do that for each file. I only need to open the data file and then I have to perform other steps on it.
but even using ENVI+IDL (5.0) it is not able to read it in fact the window where I have to insert sample and lines appear..
what should I do now??
thanks a lot
|
|
|
|
MariM Veteran Member
Posts:2396  
30 Aug 2012 07:31 AM |
|
Do you have ArcGIS installed on this system? What file are you selecting to open in ENVI 5? You will need to select the hdr.adf. If this gives you the header dialog, I wonder if the file is actually GRID or corrupted. Can you open it in ArcGIS as a GRID?
|
|
|
|
Deleted User New Member
Posts:6  
31 Aug 2012 06:42 AM |
|
Hi Marim,
I have ARCGIS10 installed on my pc and in my code I'm selecting the hdr.adf file.
I'm sure that it is not corrupted because:
1. using ENVI4.7 it works without any problems (on this pc ARCGIS9 is installed).
2. I can open it also using ArcCatalog.
do you have any suggestions?
thanks in advance
|
|
|
|
MariM Veteran Member
Posts:2396  
31 Aug 2012 06:56 AM |
|
Are you using ENVI 5.0 or 4.8? If you are using 4.8, then you need to open it in ENVI Zoom. If you are using 5.0, you need to use the new interface. If it doesn't work in either, I suggest you contact technical support directly so they can look at your file.
|
|
|
|
Deleted User New Member
Posts:6  
31 Aug 2012 07:32 AM |
|
I'm using ENVI5.0 and it does not work in the new interface.
but the problem is that I have to open the file within a code written in the ENVI+IDL environment. I do not want to open it manually but automatically.
|
|
|
|
MariM Veteran Member
Posts:2396  
31 Aug 2012 07:49 AM |
|
In ENVI 5, the new syntax would be:
ENVI> file = 'hdr.adf'
ENVI> raster1 = e.OpenRaster(file)
Then to display it:
view1 = e.GetView()
layer1 = view1.CreateLayer(raster1)
This works for me for valid GRID files. ENVI 5 Classic does not support opening GRID files.
|
|
|
|