A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » FITS
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

[fitsbits] [Fwd: cfitisio/wcslib inheritance]



 
 
Thread Tools Display Modes
  #1  
Old June 1st 06, 06:38 PM posted to sci.astro.fits
external usenet poster
 
Posts: n/a
Default [fitsbits] [Fwd: cfitisio/wcslib inheritance]

Subject: cfitisio/wcslib inheritance
Date: Thu, 25 May 2006 10:01:11 +0100
From: Peter Bunclark
Organization: University of Cambridge, England
Newsgroups: sci.astro.fits

Is there a simple way to inherit the primary header when using
fits_hdr2str and wcspih ? The particular case being, EQUINOX and
RADESYS are in the primary (which has NAXIS = 0) and the rest
of the WCS in the extesions of a MEF.

If I concatenate the strings from hdr2str for the primary and
each extension, will wcspih skim past the initial dataless
header?


Regardless of whether wcspih (in wcslib) will ignore the NAXIS = 0 keyword
from the primary array, a more robust solution would be to use the 'exclist'
parameter in the first call to fits_hdr2str (in CFITSIO) to exclude the
NAXIS primary array keyword (and SIMPLE and BITPIX as well) from the output
string. Then concatenate the keyword string from the primary array onto the
end of the keyword string from each extension.

Bill Pence
--
__________________________________________________ __________________
Dr. William Pence
NASA/GSFC Code 662 HEASARC +1-301-286-4599 (voice)
Greenbelt MD 20771 +1-301-286-1684 (fax)


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[fitsbits] [Fwd: cfitisio/wcslib inheritance] William Pence FITS 0 May 31st 06 07:43 PM
[fitsbits] [Fwd: FITS to HDF5 converter] William Pence FITS 1 January 27th 06 11:52 AM
[Fwd: [Fwd: Big Bang Busted in Science Classes for High Schools]] Double-A Misc 0 May 31st 04 11:17 PM
[Fwd: [Fwd: Big Bang Busted in Science Classes for HighSchools]] Richard Henry Misc 2 May 31st 04 05:10 PM


All times are GMT +1. The time now is 04:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.