IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13019


Ignore:
Timestamp:
Apr 24, 2007, 5:46:03 PM (19 years ago)
Author:
Paul Price
Message:

Changing some 'constants' which may differ slightly (?) to 'variables'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/register_exp.pl

    r12800 r13019  
    6565                           "exp_type", # Exposure type
    6666                           "filter", # Filter used
     67                           "dateobs", # Time of exposure
     68                       ];
     69
     70# These values may vary across components; we will take the average
     71use constant VARIABLES => [
     72                           "ccd_temp", # CCD temperature
     73                           "exp_time", # Exposure time
    6774                           "airmass", # Airmass
    6875                           "ra", # Right ascension
     
    7178                           "alt", # Altitude
    7279                           "az", # Azimuth
    73                            "dateobs", # Time of exposure
    74                        ];
    75 
    76 # These values may vary across components; we will take the average
    77 use constant VARIABLES => [
    78                            "ccd_temp", # CCD temperature
    79                            "exp_time", # Exposure time
    8080                           ];
    8181
     
    139139        }
    140140        if ($values{$constant} ne $value) {
    141             warn ("Value of $constant for $imfile->{REGISTER_CLASSID} doesn't match previous value");
    142             &my_die ($exp_tag, $PS_EXIT_PROG_ERROR);
     141            warn ("Value of $constant for " . $imfile->{REGISTER_CLASSID()} .
     142                  " doesn't match previous value");
     143            &my_die($exp_tag, $PS_EXIT_PROG_ERROR);
    143144        }
    144145    }
Note: See TracChangeset for help on using the changeset viewer.