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

Home » Public Forums » archive » Re: read/writing tiff files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: read/writing tiff files [message #35633 is a reply to message #35632] Sat, 28 June 2003 04:28 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Alexandra Panton wrote:

> ok, this is probably a really simple question but having decided that
> having 500+ images to process I needed to do some idl programming !
> What i want to do is really simple - but as with all things and
> computers simple rapidly progresses to the impossible :)
>
> Here's what I want to do:
> I have a directory on my computer with all my images, - tiff files in,
> I want to read them into an array - I can do this bit, apply my
> processing steps (having trouble with that!), then write the output as
> a tiff or jpg file.
>
> I have managed to do this to a fashion but it writes blank files -
> very useful!
>
> my code so far...

Dear Alexandra,

there are a lot of tips available at Davids page
www.dfanning.com

Here in short how I would do this:

stuff = 'f:\ftp_web_root\Recent\hawaii\GOES_9\all'
file=file_search(stuff,'*.tif',COUNT=n)
for i=0L,n-1 do begin
result=query_image(file[i],info)
print,info.dimensions
help,info,/str
img=read_image(files[i],red,green,blue)
img=(330-(0.5*img))
write_image,'d:\goes\hawaii\changed_'+files[i],'TIFF',red,gr een,blue
endfor

You should have a look at the info structure of the query function.
I don't know in which way your images are color coded. I would suggest to
read the tips on Davids page regarding color problems too.

best regards

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Jeffries-Matusita(JM) distance
Next Topic: NUFT code... not working

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

Current Time: Sat Oct 11 22:29:49 PDT 2025

Total time taken to generate the page: 2.47880 seconds