IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2012, 5:46:39 PM (14 years ago)
Author:
bills
Message:

In psphot and psphotStack accept exposure number images (EXPNUM) as inputs.
If supplied set the N_FRAMES value for each source based on the
value in the EXPNUM image.

Location:
trunk/psModules/src/camera
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/Makefile.am

    r24836 r33690  
    3030        pmReadoutStack.c \
    3131        pmReadoutFake.c \
    32         pmFPABin.c
     32        pmFPABin.c \
     33        pmFPAExpNumIO.c
    3334
    3435pkginclude_HEADERS = \
     
    5960        pmReadoutStack.h \
    6061        pmReadoutFake.h \
    61         pmFPABin.h
     62        pmFPABin.h \
     63        pmFPAExpNumIO.h
    6264
    6365CLEANFILES = *~
  • trunk/psModules/src/camera/pmFPAfile.c

    r31671 r33690  
    543543    if (!strcasecmp(type, "PATTERN")) {
    544544        return PM_FPA_FILE_PATTERN;
     545    }
     546    if (!strcasecmp(type, "EXPNUM")) {
     547        return PM_FPA_FILE_EXPNUM;
    545548    }
    546549
     
    589592      case PM_FPA_FILE_PATTERN:
    590593        return "PATTERN";
     594      case PM_FPA_FILE_EXPNUM:
     595        return "EXPNUM";
    591596      default:
    592597        return ("NONE");
  • trunk/psModules/src/camera/pmFPAfile.h

    r29833 r33690  
    5151    PM_FPA_FILE_PATTERN,
    5252    PM_FPA_FILE_LINEARITY,
     53    PM_FPA_FILE_EXPNUM,
    5354} pmFPAfileType;
    5455
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r29935 r33690  
    5353#include "pmSubtractionIO.h"
    5454#include "pmPatternIO.h"
     55#include "pmFPAExpNumIO.h"
    5556#include "pmConcepts.h"
    5657#include "pmConfigRun.h"
     
    231232        status = pmAstromModelReadForView (view, file, config);
    232233        break;
     234      case PM_FPA_FILE_EXPNUM:
     235        status = pmExpNumRead(view, file, config);
     236        break;
    233237      case PM_FPA_FILE_ASTROM_REFSTARS:
    234238      case PM_FPA_FILE_JPEG:
     
    291295      case PM_FPA_FILE_DARK:
    292296      case PM_FPA_FILE_PATTERN:
     297      case PM_FPA_FILE_EXPNUM:
    293298        {
    294299            // create FPA structure component based on view
     
    500505        status = pmFPAviewWriteSourcePlot (view, file, config);
    501506        break;
     507
     508      case PM_FPA_FILE_EXPNUM:
     509        // when ppStack output's EXPNUM file it uses a file rule where the file type is MASK
     510        psError(PS_ERR_IO, true, "cannot write type EXPNUM (%s)", file->name);
     511        return false;
    502512
    503513      case PM_FPA_FILE_WCS:
     
    562572      case PM_FPA_FILE_ASTROM_REFSTARS:
    563573      case PM_FPA_FILE_LINEARITY:
     574      case PM_FPA_FILE_EXPNUM:
    564575        psTrace ("psModules.camera", 5, "closing %s (%s) (%d:%d:%d)\n", file->filename, file->name, view->chip, view->cell, view->readout);
    565576        status = psFitsClose (file->fits);
     
    636647      case PM_FPA_FILE_ASTROM_MODEL:
    637648      case PM_FPA_FILE_ASTROM_REFSTARS:
     649      case PM_FPA_FILE_EXPNUM:
    638650        psTrace ("psModules.camera", 6, "NOT freeing %s (%s) : save for further analysis\n", file->filename, file->name);
    639651        return true;
     
    797809      case PM_FPA_FILE_ASTROM_REFSTARS:
    798810      case PM_FPA_FILE_LINEARITY:
     811      case PM_FPA_FILE_EXPNUM:
    799812        psTrace ("psModules.camera", 5, "opening %s (%s) (%d:%d:%d)\n",
    800813                 file->filename, file->name, view->chip, view->cell, view->readout);
     
    9961009        status = pmAstromRefstarsWritePHU (view, file, config);
    9971010        break;
     1011      case PM_FPA_FILE_EXPNUM:
    9981012      case PM_FPA_FILE_ASTROM_MODEL:
    9991013      case PM_FPA_FILE_SX:
Note: See TracChangeset for help on using the changeset viewer.