From naoumov@physics.unc.edu Sun May 29 21:30:47 1994 X-VM-Summary-Format: "%n %*%a %-17.17F %-3.3m %2d %4l/%-5c %I\"%s\"\n" X-VM-Labels: nil X-VM-VHeader: ("Resent-" "From:" "Sender:" "To:" "Apparently-To:" "Cc:" "Subject:" "Date:") nil X-VM-Bookmark: 1 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1303" "" "29" "May" "1994" "01:09:56" "-0500" "Sergei Naoumov" "naoumov@physics.unc.edu" nil "32" "FITS images to GIF images" "^From:" nil nil "5" nil nil (number " " mark " Sergei Naoumov May 29 32/1303 " thread-indent "\"FITS images to GIF images\"\n") nil] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!math.ohio-state.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.msfc.nasa.gov!naoumov Newsgroups: sci.astro.research Organization: Dept. of Physics and Astronomy, Univ. North. Carolina at Chapel Hill Lines: 32 Approved: astres@pecos.msfc.nasa.gov Distribution: world Message-ID: <2s9bjk$5m@pecos.msfc.nasa.gov> NNTP-Posting-Host: pecos.msfc.nasa.gov Keywords: techniques From: naoumov@physics.unc.edu (Sergei Naoumov) Sender: astres@pecos.msfc.nasa.gov Subject: FITS images to GIF images Date: 29 May 1994 01:09:56 -0500 Hey, guys! I thank you all for the response I had posted a few days ago. I've got many suggestions, so I thought, it's good to make some sort of a review. Well, the conversion of "scientific" images can be done in, say, three different ways: 1. Display it with SAOimage or Ximtool and then grab it from the screen. I think it's ok when you don't need good quality -- just to have it. Xv can be used for this purpuse since it has a "Grab" function. To be honest, I knew about it when I posted my question and I tried it but the quolity is not good enough. 2. Use Xv with a patch that makes it able to read FITS files. No problem, it works but it's a kind of slow when an image is big: my Sparc 10 reads and displays 2119x2119 image for about a minute. The patch can be found everywhere (standard X's sites). 3. Use PBMPlus package which is really the fast one. You have to say fitstopgm file.fits | pgmtoppm | ppmtogif file.gif That's the way it works. Thank you all again. Sergei -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Sergei O. Naoumov serge@envy.astro.unc.edu tel: (919)962-3998 + +Department of Physics & Astronomy, UNC-CH, Chapel Hill, NC 27599, USA+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From kgb@mail.ast.cam.ac.uk Sun May 29 21:31:11 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1029" "" "29" "May" "1994" "01:11:49" "-0500" "Karl Glazebrook" "kgb@mail.ast.cam.ac.uk" nil "23" "Re: IRAF's imh to GIF" "^From:" nil nil "5" nil nil (number " " mark " Karl Glazebrook May 29 23/1029 " thread-indent "\"Re: IRAF's imh to GIF\"\n") nil] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!math.ohio-state.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.msfc.nasa.gov!pecos.msfc.nasa.gov!not-for-mail Newsgroups: sci.astro.research Organization: Institute of Astronomy, Cambridge Lines: 23 Approved: astres@pecos.msfc.nasa.gov Distribution: world Message-ID: <2s9bn5$5n@pecos.msfc.nasa.gov> References: <2s5p5s$f8@pecos.msfc.nasa.gov> Reply-To: kgb@mail.ast.cam.ac.uk NNTP-Posting-Host: pecos.msfc.nasa.gov Keywords: techniques From: kgb@mail.ast.cam.ac.uk (Karl Glazebrook) Sender: astres@pecos.msfc.nasa.gov Subject: Re: IRAF's imh to GIF Date: 29 May 1994 01:11:49 -0500 In article f8@pecos.msfc.nasa.gov, bmac@eggneb.astro.ucla.edu (Bruce Alan Macintosh) writes: >naoumov@physics.unc.edu (Sergei Naoumov) writes: >>I'm wondering is anybody has some sort of a program that converts >>IRAF's images (or FITS images) into GIF, TIFF or whatever XV can >>read. >A disadvantage is that you only get as many levels as your saoimage >supports - usually it seems to reserve about 200 colors, so this isn't >very bad. Using something fancy like pbmplus would give you better >dynamic range and more control, but would be a lot more work. > >Bruce Macintosh bmac@astro.ucla.edu No work at all - use fitstopgm & ppmtogif if you HAVE the pbmplus package. But for most applications, as others have pointed out, XV's screen grab (which is in versions 3.0 AND 2.0) facility - from an SAOimage display - will suffice. --- Karl Glazebrook, email: kgb@mail.ast.cam.ac.uk Institute of Astronomy, finger: kgb@jhereg.ast.cam.ac.uk Cambridge, U.K. WWW: http://cast0.ast.cam.ac.uk/~kgb/ From hos@corona.ucsc.edu Mon May 30 23:32:03 1994 Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!concert!news-feed-1.peachnet.edu!news.duke.edu!MathWorks.Com!europa.eng.gtefsd.com!news.msfc.nasa.gov!corona.UCSC.EDU!hos From: hos@corona.ucsc.edu (Chris Mihos) Newsgroups: sci.astro.research Subject: Re: IRAF's imh to GIF Date: 27 May 1994 16:35:30 -0500 Organization: UCO/Lick Observatory, Santa Cruz Lines: 31 Sender: astres@pecos.msfc.nasa.gov Approved: astres@pecos.msfc.nasa.gov Distribution: world Message-ID: <2s5p32$f7@pecos.msfc.nasa.gov> References: <2s4uq8$fqs@pecos.msfc.nasa.gov> Reply-To: hos@corona.ucsc.edu NNTP-Posting-Host: pecos.msfc.nasa.gov Keywords: techniques In article <2s4uq8$fqs@pecos.msfc.nasa.gov>, Sergei Naoumov wrote: >Hello, folks! > >I'm wondering is anybody has some sort of a program that converts >IRAF's images (or FITS images) into GIF, TIFF or whatever XV can >read. It seems a little bit unusual but I really need it. The point >is that I'm extracting images from Digital Sky Survey, and this >STScI's thing gives me only FITS files. I need to make fancy things >(like captions, a little editing, etc.) with them and print. That's >why I need it. > >I'm sure this problem is not unique, so, please, share your experience >if you have one. > >Thanks in advance, > Sergei > > I usually display the image, then do: xwd > image.xwd (make an x window dump) xwdtopnm image.xwd | pnmtotiff > image.tiff (converts to a pnm file, then to a tiff file) It's klunky, but it works. I am open to better suggestions... "xwdtopnm" and "pnmtotiff" are part of the "pbmplus" package, by Jeff Poskanzer. Chris From bmac@eggneb.astro.ucla.edu Mon May 30 23:32:18 1994 Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!concert!news-feed-1.peachnet.edu!news.duke.edu!MathWorks.Com!europa.eng.gtefsd.com!news.msfc.nasa.gov!eggneb.astro.ucla.edu!bmac From: bmac@eggneb.astro.ucla.edu (Bruce Alan Macintosh) Newsgroups: sci.astro.research Subject: Re: IRAF's imh to GIF Date: 27 May 1994 16:37:00 -0500 Organization: UCLA Dept of Astronomy Lines: 19 Sender: astres@pecos.msfc.nasa.gov Approved: astres@pecos.msfc.nasa.gov Distribution: world Message-ID: <2s5p5s$f8@pecos.msfc.nasa.gov> References: <2s4uq8$fqs@pecos.msfc.nasa.gov> NNTP-Posting-Host: pecos.msfc.nasa.gov Summary: just plain xv Keywords: techniques naoumov@physics.unc.edu (Sergei Naoumov) writes: >I'm wondering is anybody has some sort of a program that converts >IRAF's images (or FITS images) into GIF, TIFF or whatever XV can >read. One of the simplest techniques - for producing display images, not preserving the science data in an image - is just to use xv itself to grab an image displayed using iraf and saoimage. xv3.00 has a "grab" button which will grab either an entire window or a portion of it. Simply use iraf to display the image - which lets you adjust the levels, scaling etc. to your liking - in color or greyscale, and then use xv to grab it, and save it as a gif. A disadvantage is that you only get as many levels as your saoimage supports - usually it seems to reserve about 200 colors, so this isn't very bad. Using something fancy like pbmplus would give you better dynamic range and more control, but would be a lot more work. Bruce Macintosh bmac@astro.ucla.edu From hjdpci@ultb.isc.rit.edu Tue May 31 20:29:12 1994 Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!sdd.hp.com!usc!howland.reston.ans.net!europa.eng.gtefsd.com!news.msfc.nasa.gov!ultb!hjdpci From: hjdpci@ultb.isc.rit.edu (H.J. Deeg ) Newsgroups: sci.astro.research Subject: Re: IRAF's imh to GIF Date: 31 May 1994 07:56:04 -0500 Organization: Rochester Institute of Technology Lines: 25 Sender: astres@pecos.msfc.nasa.gov Approved: astres@pecos.msfc.nasa.gov Message-ID: <2sfc54$1vp@pecos.msfc.nasa.gov> References: <2s4uq8$fqs@pecos.msfc.nasa.gov> NNTP-Posting-Host: pecos.msfc.nasa.gov Keywords: techniques In article <2s4uq8$fqs@pecos.msfc.nasa.gov> naoumov@physics.unc.edu writes: >Hello, folks! > >I'm wondering is anybody has some sort of a program that converts >IRAF's images (or FITS images) into GIF, TIFF or whatever XV can >read. It seems a little bit unusual but I really need it. The point >is that I'm extracting images from Digital Sky Survey, and this >STScI's thing gives me only FITS files. I need to make fancy things >(like captions, a little editing, etc.) with them and print. That's >why I need it. For presentation-type work, where you only need a qualitative capture of the image, you can use xv to grab and save any window that is displayed on the screen, such as in saoimage. It then gives you a few options for the file format to save it in. The other option i'm aware of is with Spyglass Transform, which is a commercial data display program. It can read FITS and save in a variety of common formats. The drawback, besides the cost (maybe $300), is that Transform needs a lot of memory to read an image. We couldn't get it to read 2k by 2k images with a 24Mbyte sun, but smaller images work fine. Hope it helps Hans-Joerg Deeg