IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32841


Ignore:
Timestamp:
Nov 30, 2011, 11:44:19 AM (15 years ago)
Author:
watersc1
Message:

Sometimes camera commanded exposures are labeled with
exp_type/obs_mode/object/comment sets that make them look like a real
science exposure. Check the exp_name field for this exposure to
determine if we can exclude it for science processing.

File:
1 edited

Legend:

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

    r32379 r32841  
    121121my ($data_group,$dist_group,$chip_workdir,$reduction);
    122122($label,$data_group,$dist_group,$end_stage,
    123  $tess_id,$chip_workdir,$reduction) = advance_decisions(&value_for_flag($cmdflags,"-dateobs"),
     123 $tess_id,$chip_workdir,$reduction) = advance_decisions(&value_for_flag($cmdflags,"-exp_name"),
     124                                                        &value_for_flag($cmdflags,"-dateobs"),
    124125                                                        &value_for_flag($cmdflags,"-exp_type"),
    125126                                                        &value_for_flag($cmdflags,"-obs_mode"),
     
    170171### Pau.
    171172sub advance_decisions {
     173    my $exp_name = shift;
    172174    my $dateobs = shift;
    173175    my $exptype = shift;
     
    178180
    179181    # The strings come pre-quoted.
     182    $exp_name =~ s/\'//g;
    180183    $dateobs =~ s/\'//g;
    181184    $exptype =~ s/\'//g;
     
    188191    my $target;
    189192
     193    if ($exp_name =~ /^c/) {
     194        print "Skipping because this is a camera commanded exposure: $exp_name\n";
     195        return(undef,undef,undef,"reg",undef,undef,undef);
     196    }
     197   
    190198    if ($exptype ne 'OBJECT') {
    191199        print "Skipping because exptype doesn't claim to be OBJECT: $exptype\n";
Note: See TracChangeset for help on using the changeset viewer.