Invalid characters in header [message #94303] |
Sun, 02 April 2017 11:23  |
mitali1203
Messages: 4 Registered: March 2017
|
Junior Member |
|
|
Hello,
I have a 2d array detector plane histogram (.dph file). I wish to extract header info from this file. However, I tried commands like 'mrd_hread', 'ftab_help', 'headfits', etc but I could not extract the info.
Kindly help me out in this regard.
Thanks,
Mitali
|
|
|
Re: Invalid characters in header [message #94305 is a reply to message #94303] |
Mon, 03 April 2017 09:32   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Sunday, April 2, 2017 at 2:23:12 PM UTC-4, mital...@gmail.com wrote:
> Hello,
> I have a 2d array detector plane histogram (.dph file). I wish to extract header info from this file. However, I tried commands like 'mrd_hread', 'ftab_help', 'headfits', etc but I could not extract the info.
> Kindly help me out in this regard.
> Thanks,
> Mitali
We need more information
1. Show us how you tried the commands. What was your headfits() call, for example?
2. Why couldn't you "extract the info". Did you get an error message? Did the header not look like you expected it to? Did the program hang and never return?
|
|
|
Re: Invalid characters in header [message #94307 is a reply to message #94305] |
Mon, 03 April 2017 11:12  |
mitali1203
Messages: 4 Registered: March 2017
|
Junior Member |
|
|
On Monday, April 3, 2017 at 10:02:51 PM UTC+5:30, wlandsman wrote:
> On Sunday, April 2, 2017 at 2:23:12 PM UTC-4, mital...@gmail.com wrote:
>> Hello,
>> I have a 2d array detector plane histogram (.dph file). I wish to extract header info from this file. However, I tried commands like 'mrd_hread', 'ftab_help', 'headfits', etc but I could not extract the info.
>> Kindly help me out in this regard.
>> Thanks,
>> Mitali
>
> We need more information
>
> 1. Show us how you tried the commands. What was your headfits() call, for example?
>
> 2. Why couldn't you "extract the info". Did you get an error message? Did the header not look like you expected it to? Did the program hang and never return?
The problem was solved using 'sxpar' command and I could extract the required header parameters.
Since it was a .evt file (event file), I first read it using 'mrdfits' command and then used 'sxpar' command successively for extracting the parameters.
Thanks,
Mitali
|
|
|