IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2010, 4:50:07 PM (16 years ago)
Author:
watersc1
Message:

Convert bad query row data from "Not Set" to "Not_Set" so this can be treated like a standard fpa_id in the detectability_respond.pl script.

Fix the handling of bad components so they append correctly when re-reading the wisdom file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/detect_query_read

    r28808 r29130  
    164164    }
    165165    elsif ($status == 219) {
    166         @{ $colData{$col->{name}} } = map { "Not Set" } (0 .. $numRows - 1);
     166        @{ $colData{$col->{name}} } = map { "Not_Set" } (0 .. $numRows - 1);
    167167        $status = 0;
    168168    }
     
    173173# Simple stuff first.
    174174    my %known_filters = ();
    175     if ($colData{STAGE}[$i] eq "Not Set") {
     175    if ($colData{STAGE}[$i] eq "Not_Set") {
    176176        $colData{STAGE}[$i] = 'diff';
    177177    }
    178     if ($colData{OBSCODE}[$i] eq "Not Set") {
     178    if ($colData{OBSCODE}[$i] eq "Not_Set") {
    179179        $colData{OBSCODE}[$i] = 566;
    180180    }
    181181# Define filter and MJD from FPA_ID
    182     if (($colData{FILTER}[$i] eq "Not Set")&&($colData{FPA_ID}[$i] ne "Not Set")) {
     182    if (($colData{FILTER}[$i] eq "Not_Set")&&($colData{FPA_ID}[$i] ne "Not_Set")) {
    183183        if (exists($known_filters{$colData{FPA_ID}[$i]})) {
    184184            $colData{FILTER}[$i] = $known_filters{$colData{FPA_ID}[$i]};
     
    210210        }
    211211    }
    212     if (($colData{'MJD-OBS'}[$i] eq "Not Set")&&($colData{FPA_ID}[$i] ne "Not Set")) {
     212    if (($colData{'MJD-OBS'}[$i] eq "Not_Set")&&($colData{FPA_ID}[$i] ne "Not_Set")) {
    213213        # HACK!
    214214        my $mjd = $colData{FPA_ID}[$i];
     
    217217        $colData{'MJD-OBS'}[$i] = $mjd;
    218218    }
    219     if (($colData{FPA_ID}[$i] eq "Not Set")&&(($colData{'FILTER'}[$i] ne "Not Set")&&
    220                                               ($colData{'MJD-OBS'}[$i] ne "Not Set"))) {
     219    if (($colData{FPA_ID}[$i] eq "Not_Set")&&(($colData{'FILTER'}[$i] ne "Not_Set")&&
     220                                              ($colData{'MJD-OBS'}[$i] ne "Not_Set"))) {
    221221        my $dateobs_begin = mjd_to_dateobs($colData{'MJD-OBS'}[$i]);
    222222        my $dateobs_end = mjd_to_dateobs($colData{'MJD-OBS'}[$i] + 1);
Note: See TracChangeset for help on using the changeset viewer.