wolfram mathematica - FITS Export with custom Metadata -


does has experience in exporting data fits file custom metadata (fits header) information? far able generate fits files standard mathematica fits header template. documentation gives no hint on whether custom metadata export supported , how might done.

the following suggestions comp.soft-sys.math.mathematica not work:

header=import[<some fits file>, "metadata"];  export<"test.fits",data ,"metadata"->header]  

or

export["test.fits",{"data"->data,"metadata"->header}] 

what proper way export own metadata fits file ?

cheers,

markus

update: response wolfram support: "mathematica not yet support export of metadata fits file. example referring importing of data. plan support in future..." "there plans include binary tables fits import functionality."

i try come workaround.

according documentation v.7 , v.8, there couple of ways of accomplishing want, , have rule form correct:

export["test.fits", {"data" -> data, "metadata" -> header}, "rules"] 

the other ways are

export["test.fits", header, "metadata"] export["test.fits", {data, header}, {{"data", "metadata"}}] 

note double brackets around element labels in second method.

edit: after testing, due prodding @belisarius, whenever include "metadata" element, error stating not valid export element. also, can't export "rawdata" element, either. so, i'd submit bug 2 reasons: metadata isn't user settable vitally important serious application. @ minimum, user should @ least able augment default mathematica metadata. second, documentation woefully inadequate in describing "valid" export element vs. import element. of course, i'd describe of documentation v.6 , beyond woefully inadequate, par course.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -