IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2010, 11:50:36 AM (16 years ago)
Author:
watersc1
Message:

Moving code to a branch so I can work on the detectability server.

Location:
branches/czw_branch/20100427
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100427/pstamp/scripts/detect_query_read

    r18587 r27784  
    7878                        comment => 'site identifier (MPC observatory code)',
    7979                        value => undef
    80               }
     80                      },
     81        'STAGE'    => {
     82                        name => 'STAGE',
     83                        writetype => TSTRING,
     84                        comment => 'processing stage to examine',
     85                        value => undef
     86                      }
    8187};
    8288
    8389# key_array insures that the order that the keywords is printed out is
    8490# the same as the ICD
    85 my @key_array = qw( QUERY_ID FPA_ID MJD_OBS FILTER OBSCODE );
     91my @key_array = qw( QUERY_ID FPA_ID MJD_OBS FILTER OBSCODE STAGE);
    8692
    8793# Specification of columns
     
    144150        my $name = $header->{$key}->{name};
    145151        my $value = $inHeader->{$name};
     152        if (($key eq 'STAGE')&& !(defined($value))) {
     153            $value = 'DIFF';
     154        }
    146155        # get rid of quotes and whitespace
    147156        $value =~ s/\'//g;
Note: See TracChangeset for help on using the changeset viewer.