Re: create *.img-file in ENVI/IDL [message #20342] |
Tue, 13 June 2000 00:00 |
Nando Iavarone
Messages: 48 Registered: December 1998
|
Member |
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
Jörg Schliwa wrote:
<blockquote TYPE=CITE><style></style>
<font size=-1>Thanks for the tip
so far, but now I got a problem with creating the header. Is there a dialog
for selecting the projection parameters, e.g. 'Gauss Kruger Zone 2', or
do I have to write a dialog on my own? In ENVI's menue irregular points
to grid is such a dialog present.</font>
<br><font size=-1>Any ideas?</font>
<br><font size=-1>Joerg</font></blockquote>
<p><br>....sure ;o)
<br>why don't you try with widget_map ENVI widget?
<br>in auto_manage it is very simple to handle it.
<p>best regards,
<br> Nando.
<br>
<pre>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</pre>
</body>
</html>
|
|
|
Re: create *.img-file in ENVI/IDL [message #20343 is a reply to message #20342] |
Tue, 13 June 2000 00:00  |
J�rg Schliwa
Messages: 12 Registered: April 2000
|
Junior Member |
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Thanks for the tip so far, but now I got a problem with
creating the header. Is there a dialog for selecting the projection parameters,
e.g. 'Gauss Kruger Zone 2', or do I have to write a dialog on my own? In ENVI's
menue irregular points to grid is such a dialog present.<BR>Any
ideas?<BR>Joerg<BR></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV>Nando Iavarone <<A
href="mailto:f.iavarone@acsys.it">f.iavarone@acsys.it</A>> schrieb in im
Newsbeitrag: <A
href="mailto:394390DC.1B8B6C@acsys.it">394390DC.1B8B6C@acsys.it</A>...</DIV>"Jörg
Schliwa" wrote:
<BLOCKQUOTE TYPE="CITE">I'm just starting in programming with IDL in ENVI
and I want to save an <BR>array to an ENVI-image-file *.img. But somehow I
can't find the right <BR>function. <BR> </BLOCKQUOTE>
<P><BR>you have to write the file with the well known IDL function <BR>(openW,
writeU, close) for file writing. <BR>after the writing you have to create the
ENVI header file .hdr using the function <BR>ENVI_SETUP_HEAD. this function
has a lot of keyword describing the file dimensions (in pixels), the data
type, etc. Refer to the ENVI help for the keyword to use. It is quite
documented.
<P>Best regards. <PRE>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</PRE>
</BLOCKQUOTE></BODY></HTML>
|
|
|
Re: create *.img-file in ENVI/IDL [message #20348 is a reply to message #20342] |
Mon, 12 June 2000 00:00  |
cjengo
Messages: 28 Registered: June 1999
|
Junior Member |
|
|
What makes a file an "ENVI" file is the associated text header (.hdr)
file. Write your array to a file using 'writeu', then set-up a header
file with 'envi_setup_head' using all the appropriate parameters. Be
sure to set the write (/write) keyword... Took me a while to figure out
why it wouldn't actually write the file to disk!
Chris
In article <8htpqg$seb$1@ac1.ewetel.de>,
"J�rg Schliwa" <joerg.schliwa@ewetel.net> wrote:
> I'm just starting in programming with IDL in ENVI and I want to save
an
> array to an ENVI-image-file *.img. But somehow I can't find the right
> function.
>
> Can somebody help me?
>
> Thanks in advance,
> Joerg
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|