X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 Jun 2015 09:07 AM by  anon
Populating FITS Image Data into Grid Array
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
29 Jun 2015 09:07 AM
    Hello - I have a set of FITS images which I intend on fitting to an emission model. Then, I wish to take these models and populate a grid array with the emission (where each 1 deg x 1 deg corresponds to the emission intensity). Could someone direct me to the routines I'll need to: (1) extract from a FITS image and fit to an emission model and (2) populate a grid with the model data?

    Zachary Norman



    Basic Member


    Posts:173
    Basic Member


    --
    30 Jun 2015 08:18 AM
    Hi John, You can use the Astrolib library to read and write FITS files. This is a third party library and it not officially supported by Exelis VIS. You can download the library from here: http://idlastro.gsfc.nasa.gov/ and some of the functions are documented on our website. A few of these functions are WRITEFITS (http://www.exelisvis.com/docs/writefits.html) and READFITS (http://www.exelisvis.com/docs/readfits.html). For your second question, if you mean to return an array of data from your FITS files, then I think that is what the READFITS function does automatically. Specifically, this is from the above documentation page for READFITS and the result returned from the function: "Result = FITS data array constructed from designated record. If the specified file was not found, then Result = -1"
    You are not authorized to post a reply.