IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4193


Ignore:
Timestamp:
Jun 9, 2005, 11:17:45 AM (21 years ago)
Author:
desonia
Message:

fixed minor bugs (Bug #307, etc.)

Location:
trunk/psLib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataIO/psFits.c

    r4191 r4193  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-09 19:40:51 $
     9 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-09 21:17:45 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    15201520    }
    15211521
    1522     psBool mStatus = false;
    1523     char* extname = psMetadataLookupPtr(&mStatus, header, "EXTNAME");
    1524     if ( ! mStatus) {
    1525         extname = psMetadataLookupPtr(&mStatus, header, "HDUNAME");
    1526         if (! mStatus) {
    1527             extname = NULL;
     1522    char* extname = NULL;
     1523    if (header != NULL) {
     1524        extname = psMetadataLookupPtr(NULL, header, "EXTNAME");
     1525        if ( extname == NULL) {
     1526            extname = psMetadataLookupPtr(NULL, header, "HDUNAME");
    15281527        }
    15291528    }
  • trunk/psLib/src/fft/psImageFFT.c

    r4128 r4193  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-07 02:29:44 $
     7 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-09 21:17:45 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    409409        psF32 real;
    410410        psF32 imag;
    411         psF32 numElementsSquared = numCols * numCols * numRows * numRows;
     411        psF32 fNumCols = numCols;
     412        psF32 fNumRows = numRows;
     413        psF32 numElementsSquared = fNumCols * fNumCols * fNumRows * fNumRows;
    412414
    413415        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
  • trunk/psLib/src/fits/psFits.c

    r4191 r4193  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-09 19:40:51 $
     9 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-09 21:17:45 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    15201520    }
    15211521
    1522     psBool mStatus = false;
    1523     char* extname = psMetadataLookupPtr(&mStatus, header, "EXTNAME");
    1524     if ( ! mStatus) {
    1525         extname = psMetadataLookupPtr(&mStatus, header, "HDUNAME");
    1526         if (! mStatus) {
    1527             extname = NULL;
     1522    char* extname = NULL;
     1523    if (header != NULL) {
     1524        extname = psMetadataLookupPtr(NULL, header, "EXTNAME");
     1525        if ( extname == NULL) {
     1526            extname = psMetadataLookupPtr(NULL, header, "HDUNAME");
    15281527        }
    15291528    }
  • trunk/psLib/src/image/psImageFFT.c

    r4128 r4193  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-06-07 02:29:44 $
     7 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-06-09 21:17:45 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    409409        psF32 real;
    410410        psF32 imag;
    411         psF32 numElementsSquared = numCols * numCols * numRows * numRows;
     411        psF32 fNumCols = numCols;
     412        psF32 fNumRows = numRows;
     413        psF32 numElementsSquared = fNumCols * fNumCols * fNumRows * fNumRows;
    412414
    413415        out = psImageRecycle(out, numCols, numRows, PS_TYPE_F32);
  • trunk/psLib/test/dataIO/tst_psFits.c

    r4191 r4193  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-06-09 19:40:51 $
     8*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-06-09 21:17:45 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    122122                      extname);
    123123
    124         psMetadataAdd(header,PS_LIST_TAIL, "MYSTR",
     124        psMetadataAdd(header,PS_LIST_TAIL, "EXTNAME",
    125125                      PS_META_STR,
    126126                      "Extension Name",
Note: See TracChangeset for help on using the changeset viewer.