Function Arguments
/*-***********************************************************************/ /* */ /* mTranspose */ /* */ /* This module switches around the axes for a 3D or 4D image. This is */ /* mainly so we can get a cube rearranged so the spatial axes are the */ /* first two. */ /* */ /* This program subsets an input image around a location of interest */ /* and creates a new output image consisting of just those pixels. */ /* The location is defined by the RA,Dec (J2000) of the new center and */ /* the XY size in degrees of the area (X and Y) in the direction of */ /* the image axes, not Equatorial coordinates. */ /* */ /* char *inputFile Input FITS file */ /* char *outputFile Subimage output FITS file */ /* */ /* int norder Number of axes (3 or 4) */ /* */ /* int order The output ordering of axes desired. For */ /* instance, to convert a cube where the first */ /* axis is wavelength, the second RA and the */ /* third Dec to RA, Dec, wavelength ordering */ /* (a common situation), the output order is */ /* 2,3,1. */ /* */ /* int debug Debugging output level */ /* */ /*************************************************************************/ struct mTransposeReturn *mTranspose(char *inputFile, char *outputFile, int innorder, int *inorder, int debug)
Return Structure
struct mTransposeReturn { int status; // Return status (0: OK, 1:ERROR) char msg [1024]; // Return message (for error return) char json[4096]; // Return parameters as JSON string double mindata; // Minimum data value. double maxdata; // Maximum data value. };