Description Usage Arguments Details Value Author(s) See Also Examples
This is a very basic function to write some data from R to a fits
file. The function is a wrapper for the C program R2fits
.
1 | write.fits(x, outfile, nx, ny, na.val = 0)
|
x |
The input data. This can be a vector of length (at least) nx x ny, or a matrix with dimensions nx and ny. |
outfile |
The name of the fits file to be written. To force overwriting an existing file us a leading "!". |
nx, ny |
The x and y dimensions of the image to be
written. These have to be specified if |
na.val |
Numerical value to replace |
The output created by R2fits
and hence by this function is a
very basic fits file whose header only contains the image dimensions
and the date of writing. Any extra information on the data will have
to be added automatically.
None.
Oliver Czoske
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.