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

Home » Public Forums » archive » how to replace fits variable and store back into same fits file??
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: how to replace fits variable and store back into same fits file?? [message #93445 is a reply to message #93440] Tue, 19 July 2016 07:57 Go to previous messageGo to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
On Tuesday, July 19, 2016 at 6:20:26 PM UTC+5:30, wlandsman wrote:
> On Tuesday, July 19, 2016 at 7:48:15 AM UTC-4, Sapna Mishra wrote:
>
>>
>> new aa.FLUX becomes:
>> aa.FLUX=B
>> and I want to store in back in file spec.fits with new values of aa.FLUX.
>>
>
> mwrfits,'spec.fits',aa,h

No its not working that way i tried it.
actually I have :
aa=mrdfits('spec-3819-55540-0876.fits',1,h)

IDL> help,aa,/str
** Structure <a469504>, 8 tags, length=32, data length=32, refs=1:
FLUX FLOAT 12.7965
LOGLAM FLOAT 3.55550
IVAR FLOAT 0.0395813
AND_MASK LONG 0
OR_MASK LONG 851968
WDISP FLOAT 1.55296
SKY FLOAT 4.95728
MODEL FLOAT 18.1191

now I only want to change value of aa.FLUX.
doing mwrfits,'spec.fits',aa,h as you suggested is changing value of all variables. Is any one getting my problem???
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting time as x-axis
Next Topic: Poltting with TVSCL

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

Current Time: Wed Oct 08 17:44:23 PDT 2025

Total time taken to generate the page: 0.00399 seconds