IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 12, 2015, 12:37:37 PM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts

  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/addstar_run.pl

    r34750 r37830  
    9494# Recipes to use based on reduction class
    9595$reduction = 'DEFAULT' unless defined $reduction;
    96 if ($stage =~/skycal/) {
    97     $reduction = 'DEFAULT';
    98 }
     96#if ($stage =~/diff/) {
     97#    $reduction = 'ADDSTAR';
     98#}
     99#if ($stage =~/fullforce/) {
     100#    $reduction = 'ADDSTAR';
     101#}
     102
     103if ($stage =~/fullforce/) {
     104    $reduction='DEFAULT';
     105    #hardwired because why not
     106}
     107
    99108my $recipe_addstar = $ipprc->reduction($reduction, 'ADDSTAR');
    100109# XXX This is now not used: do we still need it?
     
    132141    print "using $fpaObjects for $stage\n";
    133142}
     143if ($stage =~/diff/) {
     144    print "using $fpaObjects for $stage\n";
     145}
     146if ($stage =~/fullforce/)  {
     147    print "using $fpaObjects for $stage\n";
     148}
     149
    134150
    135151
     
    177193}
    178194
    179 if (($stage =~/stack/ || $stage =~ /skycal/)) {
     195if (($stage =~/stack/ || $stage =~ /skycal/ || $stage =~/diff/ || $stage=~/fullforce/)) {
    180196    $fpaObjects =~ s/smf$/cmf/;
    181197    $fpaObjectsAlt =~ s/smf$/cmf/;
     
    305321                $command .= " -quick-airmass";
    306322            }  #careful here - this matches staticsky and staticsky_multi
     323            if ($stage =~ /diff/) {
     324                $command .= " -accept-astrom";
     325            }
     326            if ($stage =~ /fullforce/) {
     327                $command .= " -accept-astrom -xrad";
     328            }
    307329
    308330            my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/ipp_cleanup.pl

    r35906 r37830  
    588588                addFilename(\@files, "PSWARP.OUTPUT.SOURCES", $path_base, $skycell_id);
    589589                addFilename(\@files, "SKYCELL.TEMPLATE", $path_base, $skycell_id );
     590                addFilename(\@files, "PSPHOT.RESID",$path_base,"fpa");
    590591                if ($mode eq "goto_purged") {
    591592                    # additional files to remove for 'purge' mode
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/lap_science.pl

  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/permcheck.pl

    • Property svn:mergeinfo deleted
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/publish_file.pl

    r36839 r37830  
    252252                     warp_id => $comp->{warp1},
    253253                     diff_id => $comp->{diff_id},
     254                     camera => $comp->{camera},
    254255                     output_format => $comp->{output_format},
    255256                     direction => 1,
     
    291292                         warp_id => $comp->{warp2},
    292293                         diff_id => $comp->{diff_id},
     294                         camera => $comp->{camera},
     295                         # missing output_format?
    293296                         direction => 0,
    294297                         comment => $reg_comp->{comment},
     
    359362    my $name = shift;           # Name of component
    360363
    361     $data->{zp} = $comp->{zp} unless defined $data->{zp};
    362     $data->{zp_err} = $comp->{zp_err} unless defined $data->{zp_err};
    363     $data->{astrom} = $comp->{astrom} unless defined $data->{astrom};
    364     $data->{exp_name} = $comp->{exp_name} unless defined $data->{exp_name};
    365     $data->{exp_id} = $comp->{exp_id} unless defined $data->{exp_id};
    366     $data->{chip_id} = $comp->{chip_id} unless defined $data->{chip_id};
    367     $data->{cam_id} = $comp->{cam_id} unless defined $data->{cam_id};
    368     $data->{fake_id} = $comp->{fake_id} unless defined $data->{fake_id};
    369     $data->{warp_id} = $comp->{warp_id} unless defined $data->{warp_id};
    370     $data->{diff_id} = $comp->{diff_id} unless defined $data->{diff_id};
     364    $data->{zp}        = $comp->{zp}        unless defined $data->{zp};
     365    $data->{zp_err}    = $comp->{zp_err}    unless defined $data->{zp_err};
     366    $data->{astrom}    = $comp->{astrom}    unless defined $data->{astrom};
     367    $data->{exp_name}  = $comp->{exp_name}  unless defined $data->{exp_name};
     368    $data->{exp_id}    = $comp->{exp_id}    unless defined $data->{exp_id};
     369    $data->{chip_id}   = $comp->{chip_id}   unless defined $data->{chip_id};
     370    $data->{cam_id}    = $comp->{cam_id}    unless defined $data->{cam_id};
     371    $data->{fake_id}   = $comp->{fake_id}   unless defined $data->{fake_id};
     372    $data->{warp_id}   = $comp->{warp_id}   unless defined $data->{warp_id};
     373    $data->{diff_id}   = $comp->{diff_id}   unless defined $data->{diff_id};
     374    $data->{camera}    = $comp->{camera}    unless defined $data->{camera};
     375    # missing output_format?
    371376    $data->{direction} = $comp->{direction} unless defined $data->{direction};
    372     $data->{comment} = $comp->{comment} unless defined $data->{comment};
    373     $data->{obsmode} = $comp->{obsmode} unless defined $data->{obsmode};
    374     $data->{difftype} = $comp->{difftype} unless defined $data->{difftype};
    375     $data->{sky} = $comp->{sky} unless defined $data->{sky};
    376     $data->{shutoutc} = $comp->{shutoutc} unless defined $data->{shutoutc};
     377    $data->{comment}   = $comp->{comment}  unless defined $data->{comment};
     378    $data->{obsmode}   = $comp->{obsmode}  unless defined $data->{obsmode};
     379    $data->{difftype}  = $comp->{difftype} unless defined $data->{difftype};
     380    $data->{sky}       = $comp->{sky}      unless defined $data->{sky};
     381    $data->{shutoutc}  = $comp->{shutoutc} unless defined $data->{shutoutc};
    377382
    378383    &my_die("zp value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{zp} and $comp->{zp} != $data->{zp};
     
    386391    &my_die("warp_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{warp_id} and $comp->{warp_id} != $data->{warp_id};
    387392    &my_die("diff_id value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{diff_id} and $comp->{diff_id} != $data->{diff_id};
     393    &my_die("camera value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{camera} and $comp->{camera} ne $data->{camera};
    388394    &my_die("direction value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{direction} and $comp->{direction} != $data->{direction};
    389395    &my_die("comment value for $name doesn't match", $pub_id, $PS_EXIT_SYS_ERROR) if defined $data->{comment} and $comp->{comment} ne $data->{comment};
     
    414420    $command .= " -warp_id " . $data->{warp_id} if defined $data->{warp_id};
    415421    $command .= " -diff_id " . $data->{diff_id} if defined $data->{diff_id};
     422    $command .= " -camera " . $data->{camera} if defined $data->{camera};
    416423    $command .= " -inverse" if defined $data->{direction} and $data->{direction} == 0;
    417424    $command .= " -zp " . $data->{zp} if defined $data->{zp};
     
    420427    $command .= " -version " . $data->{output_format} if defined $data->{output_format};
    421428    $command .= " -comment \"" . $data->{comment} . "\"" if defined $data->{comment};
    422     $command .= " -obsmode " . $data->{obsmode} if defined $data->{obsmode};
     429    $command .= " -obsmode \"" . $data->{obsmode} . "\"" if defined $data->{obsmode};
    423430    $command .= " -difftype " . $data->{difftype} if defined $data->{difftype};
    424431    $command .= " -sky " . $data->{sky} if defined $data->{sky};
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/queuestaticsky.pl

  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/rawcheck.pl

    r36685 r37830  
    6262my %backup_hosts = ('ippb00' => 1, 'ippb01' => 1,
    6363                    'ippb02' => 1, 'ippb03' => 1,
    64                     'ippb04' => 1, 'ippb05' => 1
     64                    'ippb04' => 1, 'ippb05' => 1,
     65                    'ippb06' => 1
    6566    );
    66 my %backup_destinations = ('ippb04' => 1,
    67                            'ippb05' => 1);
     67my %backup_destinations = (# 'ippb04' => 1,  # full
     68                           # 'ippb05' => 1,  # full
     69                           'ippb06' => 1
     70    );
    6871my $backup_Nvols = 3;
    6972
  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/sc_remote_exec.pl

  • branches/eam_branches/ipp-pv3-20140717-merge/ippScripts/scripts/stack_bkg_mk_mdc.pl

    r36810 r37830  
    1313
    1414my ($dbname,$stack_id,$label,$camera,$filter);
     15
     16my $ipprc =  PS::IPP::Config->new(); # IPP Configuration
     17my $siteConfig = $ipprc->{_siteConfig};
     18
    1519#$dbname = 'gpc1';
    1620#$camera = 'GPC1';
     
    2933
    3034use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock';
    31 my $dbserver = 'ippdb01';
    32 my $dbuser = 'ippuser';
    33 my $dbpass = 'ippuser';
     35my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER');
     36my $dbuser = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBUSER");
     37my $dbpass = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBPASSWORD");
     38die "database configuration not set up" unless defined($dbserver);
     39die "database configuration not set up" unless defined($dbuser);
     40die "database configuration not set up" unless defined($dbpass);
    3441my $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" .
    3542                   "mysql_socket=" . DB_SOCKET(),
     
    3845    ) or die "Unable to connect to database $DBI::errstr\n";
    3946
    40 my $ipprc = PS::IPP::Config->new( $camera );
     47$ipprc = PS::IPP::Config->new( $camera );
    4148my $mdcParser = PS::IPP::Metadata::Config->new;
    4249
Note: See TracChangeset for help on using the changeset viewer.