IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2006, 1:32:59 PM (20 years ago)
Author:
jhoblitt
Message:

expand tabs

File:
1 edited

Legend:

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

    r8327 r8710  
    1717    "FPA.FILTER"   => "-filter", # Filter used
    1818    "FPA.AIRMASS"  => "-airmass", # Airmass
    19     "FPA.RA"       => "-ra",    # Right ascension
    20     "FPA.DEC"      => "-decl",  # Declination
    21     "TELALT"       => "-alt",   # Altitude
    22     "TELAZ"        => "-az",    # Azimuth
     19    "FPA.RA"       => "-ra",        # Right ascension
     20    "FPA.DEC"      => "-decl",        # Declination
     21    "TELALT"       => "-alt",        # Altitude
     22    "TELAZ"        => "-az",        # Azimuth
    2323    "DETTEM"       => "-ccd_temp", # CCD temperature
    2424    "FPA.POSANGLE" => "-posang" # Position angle
     
    4343if (scalar @ARGV == 0 || scalar @ARGV > 3) {
    4444    die "Perform phase 0 processing at the imfile level.\n\n" .
    45         "Usage: $0 EXP_ID CLASS_ID FILE.fits\n\n";
     45        "Usage: $0 EXP_ID CLASS_ID FILE.fits\n\n";
    4646}
    4747
    48 my $expid = shift @ARGV;        # Exposure identifier
    49 my $classid = shift @ARGV;      # Class identifier
    50 my $file = shift @ARGV;         # Input filename
     48my $expid = shift @ARGV;        # Exposure identifier
     49my $classid = shift @ARGV;        # Class identifier
     50my $file = shift @ARGV;                # Input filename
    5151
    5252
     
    6262    my $command = "$ppStats $file -recipe PPSTATS " . RECIPE; # Command to run ppStats
    6363    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    64         run(command => $command, verbose => 1);
     64        run(command => $command, verbose => 1);
    6565    die "Unable to perform ppStats on exposure id $expid: $error_code\n" if not $success;
    6666   
    6767    # Parse the output
    68     my $mdcParser = PS::IPP::Metadata::Config->new;     # Parser for metadata config files
     68    my $mdcParser = PS::IPP::Metadata::Config->new;        # Parser for metadata config files
    6969    my $metadata = $mdcParser->parse(join "", @$stdout_buf);
    7070    my @constants = keys %{CONSTANTS()}; # List of constants to parse out
     
    7777{
    7878    my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXPID() . " " . $expid . " " .
    79         P0TOOL_CLASSID() . " " . $classid; # Command to run p0tool
     79        P0TOOL_CLASSID() . " " . $classid; # Command to run p0tool
    8080   
    8181    foreach my $constant (keys %{CONSTANTS()}) {
    82         $command .= " " . CONSTANTS->{$constant} . " " . ($stats->data($constant))->{value};
     82        $command .= " " . CONSTANTS->{$constant} . " " . ($stats->data($constant))->{value};
    8383    }
    8484    foreach my $variable (keys %{VARIABLES()}) {
    85         # Just use the mean value
    86         $command .= " " . VARIABLES->{$variable} . " " . ($stats->data($variable))->{mean};
     85        # Just use the mean value
     86        $command .= " " . VARIABLES->{$variable} . " " . ($stats->data($variable))->{mean};
    8787    }
    8888   
     
    9292 
    9393    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    94         run(command => $command, verbose => 1);
     94        run(command => $command, verbose => 1);
    9595    die "Unable to perform p0tool -updateimfile: $error_code\n" if not $success;
    9696}
Note: See TracChangeset for help on using the changeset viewer.