| Re: READ_GIF and READ_SRF [message #882] |
Fri, 02 April 1993 05:37 |
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 #892 is a reply to message #889] |
Wed, 31 March 1993 08:31  |
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  |
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  |
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
*******************
|
|
|
|