IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2009, 3:52:09 PM (17 years ago)
Author:
beaumont
Message:

Additional developments in pmStackVisual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branches/cnb_branch_20090215/psModules/src/extras/pmVisual.c

    r22419 r22722  
    2121#include "pmAstrometryObjects.h"
    2222#include "pmSubtractionStamps.h"
    23 
     23#include "pmTrend2D.h"
    2424#include "pmFPAExtent.h"
    2525
     
    3434#include "pmSubtractionVisual.h"
    3535#include "pmStackVisual.h"
     36#include "pmSourceVisual.h"
     37
     38//#define TESTING
    3639
    3740static bool isVisual = false;
     
    5053    pmSubtractionVisualClose();
    5154    pmStackVisualClose();
     55    pmSourceVisualClose();
    5256    //XXX handle psphot
    5357    //    psphotVisualClose();
     
    209213
    210214bool pmVisualScaleImage(int kapaFD, psImage *inImage, const char *name, int channel, bool clip) {
    211 
    212215    KiiImage image;
    213216    KapaImageData data;
    214217    Coords coords;
    215218
    216     //make sure we have a compatible image type
     219    //make sure we have a compatible image
     220    if (inImage == NULL) {
     221        fprintf(stderr, "Image is NULL, and cannot be displayed\n");
     222        return false;
     223    }
     224
    217225    if(inImage->type.type != PS_TYPE_F32) {
    218226        fprintf(stderr, "Cannot display this image (imcompatible data type)\n");
     
    221229
    222230    strcpy (coords.ctype, "RA---TAN");
     231
    223232
    224233    double min, max, stdev, mean;
Note: See TracChangeset for help on using the changeset viewer.