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

Home » Public Forums » archive » Re: reading header and manipulating according to the header information
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: reading header and manipulating according to the header information [message #71007 is a reply to message #71006] Sat, 15 May 2010 08:02 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On May 15, 10:21 am, sid <gunvicsi...@gmail.com> wrote:
> Hi,
>     Since I am using huge data of several years, different kind of
> ccds are used on different days. I need to trim the data to a size
> which depends on ccd size, is there any method to read the header
> information and take the ccd size from there and then to proceed
> further, instead of giving the ccd size manually. Because it is really
> very tedious to check for the ccd size each time and then to proceed.
> Please help out.
> For example,
> in one of my data the ccd size that is 1K by 1k is given in header as,
> NAXIS   =
> 3
> NAXIS1  =
> 1024
> NAXIS2  =
> 1024
> NAXIS3  =                    1
> regards
> sid

You can use STREGEX to search for those header lines and GETTOK to
pick out the value.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to retain header info even after writefits
Next Topic: Re: color plot over greyscale image - postscript

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

Current Time: Mon Oct 27 05:15:07 PDT 2025

Total time taken to generate the page: 0.02909 seconds