comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » ADF format in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
ADF format in IDL [message #56619] Fri, 02 November 2007 00:33
mdoubkova is currently offline  mdoubkova
Messages: 4
Registered: September 2007
Junior Member
I have another suggestion. I have to admit that I got scared (as
usual) by the ESRI format, in this case ESRI GRID binary format. I
think I would spend a whole day figuring out how to read this since I
am not a programmer, but geographer with some programming skills. So
here is another possible solution:

convert ESRI GRID to ascii grid and then simply read it using
read_ascii in IDL

1) converting to ascii grid bunch of files
&s count := [filelist * outfile -grid]
&if %count% <= 0 &then
&return Error generating output file.
&s unit := [open outfile ok -read]
&do I := 1 &to %count%
&s cover := [read %unit% ok]
&s output = %cover%_ascii
GRIDASCII %cover% %output%
&end
&s ok := [close %unit%]
&s ok := [delete outfile -file]
&return

2) coverting to simple binary file
data=read_ascii(file, data_start=6,num_records=nrows,delimiter=' ')
data=data.(0)

openw,lun,outfile,/get_lun
writeu, lun, data
close,lun,/force
free_lun,lun

Hope this may be helpful,
Marcela
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL sorting
Next Topic: 64-bit version of IDL 7.0 for Mac OS 10.5 (leopard)?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:49:28 PDT 2025

Total time taken to generate the page: 0.02166 seconds