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

Home » Public Forums » archive » Re: Looking for general purpose image display.
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: Looking for general purpose image display. [message #8961] Tue, 20 May 1997 00:00 Go to previous message
Michel Tallon is currently offline  Michel Tallon
Messages: 1
Registered: May 1997
Junior Member
Dyer Lytle wrote:
>
> Hi all,
>
> I'm about to write a general purpose image display widget in IDL
> similar in functionality to SAOimage. I figure something like
> that may already have been written in IDL so I thought it best to
> query this newsgroup before I re-invent the wheel.
>
> Any leads on a general image display program?
>
> Many thanks,
>
> -Dyer
>
> --
> ------------------------------
> Dyer Lytle
> dlytle@as.arizona.edu
> http://tigger.as.arizona.edu/~dlytle
> HST NICMOS Project
> Steward Observatory
> University of Arizona
> ------------------------------

I simply use the following:


PRO Sao, image, verbose=verbose

On_Error, 2 ; return to the caller of the
function

IF ( N_params() NE 1 ) THEN message, 'Syntax - sao, image, [/verbose]'

imsize = size(image)
IF ((imsize(0) GT 2) OR (imsize(0) EQ 0)) THEN BEGIN
message, 'Image does not have the correct dimension'
ENDIF

IF (imsize(0) EQ 1) THEN BEGIN
image = reform(image,sqrt(imsize(1)),sqrt(imsize(1)))
ENDIF

options=''
IF n_elements(verbose) NE 0 THEN BEGIN
options=options+' +v'
back=''
ENDIF ELSE BEGIN
options=options+' -v'
back=' &'
ENDELSE

writefits, 'saotmp.fits', image
spawn, '(saoimage'+options+' -ll -zero -fits saotmp.fits; rm -f
saotmp.fits 2>/dev/null)'+back

END

--
Michel Tallon CRAL, Observatoire de Lyon
mtallon@obs.univ-lyon1.fr 69561 Saint-Genis-Laval cedex
http://www-obs.univ-lyon1.fr/ France
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Using Errorf in IDL
Next Topic: GRAFFER Version 2.00 now available.

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

Current Time: Fri Oct 10 08:19:47 PDT 2025

Total time taken to generate the page: 0.40261 seconds