IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2006, 11:06:14 AM (20 years ago)
Author:
eugene
Message:

fixed code to measure local background for sources: added new function psphotSelectBackground, new args for psphotMagnitudes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotOutput.c

    r10096 r10185  
    11# include "psphot.h"
     2
     3pmReadout *psphotSelectBackground (pmConfig *config, pmFPAview *view) {
     4
     5    bool status;
     6    pmReadout *background;   
     7
     8    pmFPAfile *file = psMetadataLookupPtr (&status, config->files, "PSPHOT.BACKMDL");
     9    if (!file) return NULL;
     10    if (file->mode == PM_FPA_MODE_INTERNAL) {
     11        background = file->readout;
     12    } else {
     13        background = pmFPAviewThisReadout (view, file->fpa);
     14    }
     15    return background;
     16}
     17
     18bool psphotDumpConfig (pmConfig *config) {
     19
     20  psMetadataConfigWrite (config->site, "site.md");
     21  psMetadataConfigWrite (config->camera, "camera.md");
     22  psMetadataConfigWrite (config->recipes, "recipes.md");
     23  psMetadataConfigWrite (config->arguments, "arguments.md");
     24  psMetadataConfigWrite (config->files, "files.md");
     25  return true;
     26}
    227
    328int psphotSaveImage (psMetadata *header, psImage *image, char *filename) {
Note: See TracChangeset for help on using the changeset viewer.