IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2010, 4:08:17 PM (16 years ago)
Author:
watersc1
Message:

Merged changes from my branch to support STAGE in the query header, and updated the response script to use the new API. It is not at all efficient at finding the images, but it is satisfactory for now. I can refactro it a bit once the glue sticking it to the rest of the Pstamp server is fininshed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/detect_query_read

    r18587 r27788  
    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.