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
how to replace fits variable and store back into same fits file?? [message #93439] Tue, 19 July 2016 04:48 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello all,

I am reading a file as:

aa=mrdfits('spec.fits',1,h)

in that i have an array: aa.FLUX
which is an array of 40000 float numbers.

I want to change the all values inside the array say aa.FLUX with some another
array say B of size 40000 such that

new aa.FLUX becomes:
aa.FLUX=B
and I want to store in back in file spec.fits with new values of aa.FLUX.

Can any one suggest me how to replace it and save it in fits files???

I tried with:
sxaddpar,1,aa.FLUX,B

but its not working.

Any help please
[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 13:56:04 PDT 2025

Total time taken to generate the page: 0.00371 seconds