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 #93446 is a reply to message #93445] Tue, 19 July 2016 08:07 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, July 19, 2016 at 10:57:08 AM UTC-4, Sapna Mishra wrote:
> 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???

you say you only changed the value of aa.flux. The other structure tags remained the same. Why would you think that they changed?
[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: Sat Nov 29 08:10:22 PST 2025

Total time taken to generate the page: 0.01708 seconds