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

Home » Public Forums » archive » Re: READ_GIF and READ_SRF
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
Re: READ_GIF and READ_SRF [message #882] Fri, 02 April 1993 05:37
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
dean@phobos.cira.colostate.edu writes:

> I am using READ_GIF and READ_SRF to read GIF and Sun Raster files with
> IDL. The problem I am having is I would like to resize the TV window to
> fit the GIF or raster file. This x and y size information doesn't appear
> with READ_GIF or READ_SRF. Just filename, image, and color. My question
> is, Where can I get the x and y size information about GIF or raster file?
> This information is within the GIF and Sun raster file, but does IDL provide
> it?
> Kelly Dean
> CSU/CIRA

This information is available after you read the image. Just use the
size function to find the image size and set the window. Example:

read_gif, 'example.gif', img, r, g, b
sz = size(img)
window, xs=sz(1), ys=sz(2)
tvlct, r, g, b
tv, img

Ray Sterner sterner@tesla.jhuapl.edu
Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
Re: READ_GIF and READ_SRF [message #889 is a reply to message #882] Wed, 31 March 1993 15:16 Go to previous message
isaacman is currently offline  isaacman
Messages: 20
Registered: June 1992
Junior Member
In article <JACOBSEN.93Mar31060601@xray1.physics.sunysb.edu>, jacobsen@xray1.physics.sunysb.edu (Chris Jacobsen) writes...
> In article <Mar30.234050.17554@yuma.ACNS.ColoState.EDU> dean@phobos.cira.colostate.edu writes:
>
> is, Where can I get the x and y size information about GIF or raster file?
> This information is within the GIF and Sun raster file, but does IDL provide
> it?
>
The following will do the job under IDL 3.0:

IDL> READ_GIF, 'filename', image
IDL> dims = SIZE (image)
IDL> xsize = dims(1)
IDL> ysize = dims(2)

Rich Isaacman
NASA/GSFC
Re: READ_GIF and READ_SRF [message #892 is a reply to message #889] Wed, 31 March 1993 08:31 Go to previous message
woody is currently offline  woody
Messages: 9
Registered: July 1992
Junior Member
Is there a read_gif routine available for pv-wave? If not will there
be??!!

hello! PVI!!

--
Woody Lee -=-=- woody@gergu2.tamu.edu -=-=- (409) 862-2321
GERG - Latex/A Data Office |"That's the whole problem with science.
Texas A&M University | You've got a bunch of empiricists trying
Department of Oceanography | to describe things of unimaginable
wonder."
College Station, TX 77845 | - Calvin (&
Hobbes)
Re: READ_GIF and READ_SRF [message #893 is a reply to message #892] Wed, 31 March 1993 03:08 Go to previous message
jacobsen is currently offline  jacobsen
Messages: 28
Registered: July 1992
Junior Member
In article <Mar30.234050.17554@yuma.ACNS.ColoState.EDU> dean@phobos.cira.colostate.edu writes:
> I am using READ_GIF and READ_SRF to read GIF and Sun Raster files with
> IDL. The problem I am having is I would like to resize the TV window to
> fit the GIF or raster file. This x and y size information doesn't appear
> with READ_GIF or READ_SRF. Just filename, image, and color. My question
> is, Where can I get the x and y size information about GIF or raster file?
> This information is within the GIF and Sun raster file, but does
> IDL provide it?
Try xsize=n_elements(image(*,0)) and ysize=n_elements(image(0,*))
--
*******************
Chris Jacobsen, Department of Physics, SUNY at Stony Brook
Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail
jacobsen@xray1.physics.sunysb.edu ALL-IN_ONE: CJACOBSEN
*******************
Re: READ_GIF and READ_SRF [message #894 is a reply to message #893] Wed, 31 March 1993 03:05 Go to previous message
jacobsen is currently offline  jacobsen
Messages: 28
Registered: July 1992
Junior Member
In article <Mar30.234050.17554@yuma.ACNS.ColoState.EDU> dean@phobos.cira.colostate.edu writes:

is, Where can I get the x and y size information about GIF or raster file?
This information is within the GIF and Sun raster file, but does IDL provide
it?

Kelly Dean
CSU/CIRA
********************************************************** \ *****
Kelly Dean \
Cooperative Institute for Research in the Atmosphere ___\
Foothills Campus /|
Colorado State University / |\
Fort Collins, CO 80523 / | \
E-MAIL: DEAN%SOL.DNET@SIRIUS.CIRA.COLOSTATE.EDU | \
************************************************************ **************
--
*******************
Chris Jacobsen, Department of Physics, SUNY at Stony Brook
Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail
jacobsen@xray1.physics.sunysb.edu ALL-IN_ONE: CJACOBSEN
*******************
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Logarithmic Z axis on surface plot ?
Next Topic: IMSL/IDL X-windowing Resource Editor?

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

Current Time: Fri Nov 28 09:42:37 PST 2025

Total time taken to generate the page: 0.01318 seconds