IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20826


Ignore:
Timestamp:
Nov 24, 2008, 3:27:52 PM (17 years ago)
Author:
Paul Price
Message:

Wasn't setting IMNAXIS[12], just working out what the values were supposed to be...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO.c

    r20741 r20826  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.67 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-11-14 02:11:45 $
     5 *  @version $Revision: 1.68 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-11-25 01:27:52 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    440440                    }
    441441                }
    442 
    443442                if (numCols == 0 || numRows == 0) {
    444443                    psWarning("Output source file has invalid IMNAXIS1, IMNAXIS2.");
    445444                }
     445                psMetadataAddS32(hdu->header, PS_LIST_TAIL, "IMNAXIS1", PS_META_REPLACE,
     446                                 "Number of columns in original image", numCols);
     447                psMetadataAddS32(hdu->header, PS_LIST_TAIL, "IMNAXIS2", PS_META_REPLACE,
     448                                 "Number of rows in original image", numRows);
    446449
    447450                psFitsWriteBlank (file->fits, hdu->header, headname);
     
    490493            if (xsrcname) {
    491494              if (!strcmp (exttype, "PS1_DEV_1")) {
    492                   status = pmSourcesWrite_PS1_DEV_1_XSRC (file->fits, sources, xsrcname, recipe);
     495                  status = pmSourcesWrite_PS1_DEV_1_XSRC (file->fits, sources, xsrcname, recipe);
    493496              }
    494497              if (!strcmp (exttype, "PS1_CAL_0")) {
    495                   status = pmSourcesWrite_PS1_CAL_0_XSRC (file->fits, readout, sources, file->header, xsrcname, recipe);
     498                  status = pmSourcesWrite_PS1_CAL_0_XSRC (file->fits, readout, sources, file->header, xsrcname, recipe);
    496499              }
    497500            }
    498501            if (xfitname) {
    499502              if (!strcmp (exttype, "PS1_DEV_1")) {
    500                   status = pmSourcesWrite_PS1_DEV_1_XFIT (file->fits, sources, xfitname);
     503                  status = pmSourcesWrite_PS1_DEV_1_XFIT (file->fits, sources, xfitname);
    501504              }
    502505              if (!strcmp (exttype, "PS1_CAL_0")) {
    503                   status = pmSourcesWrite_PS1_CAL_0_XFIT (file->fits, readout, sources, file->header, xfitname);
     506                  status = pmSourcesWrite_PS1_CAL_0_XFIT (file->fits, readout, sources, file->header, xfitname);
    504507              }
    505508            }
Note: See TracChangeset for help on using the changeset viewer.