IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 27, 2018, 3:31:55 PM (8 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/czw_branch/20170908
Files:
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20170908

  • branches/czw_branch/20170908/ippScripts/Build.PL

    r39938 r40483  
    115115        scripts/automate_stacks.pl
    116116        scripts/nightly_science.pl
     117        scripts/night_report.pl
    117118        scripts/lossy_compress_imfile.pl
    118119        scripts/rawcheck.pl
  • branches/czw_branch/20170908/ippScripts/scripts/camera_exp.pl

    r39926 r40483  
    404404
    405405    # Construct FPA continuity corrected background images
    406     if (($camera =~ /ISP/)||($camera =~ /HSC/)) {
     406    if (($camera =~ /ISP/)||($camera =~ /HSC/)||($camera =~ /gpc2/i)) {
    407407        print "Skipping FPA continuity corrected background images for ISP\n";
    408408    } elsif ($do_bkg) {
  • branches/czw_branch/20170908/ippScripts/scripts/chip_imfile.pl

    r36529 r40483  
    632632                if ($gone) {
    633633                    carp "WARNING: photometry sources storage object exists but all instances are permanently gone";
     634                    $ipprc->file_rename($outputSources,$outputSources . ".gone");
    634635                    $make_sources = 1;
    635636                }
     
    657658            if ($gone) {
    658659                carp "WARNING: PSF storage object exists but all instances are permanently gone";
     660                $ipprc->file_rename($outputPsf,$outputPsf . ".gone");
    659661                $make_psf = 1;
    660662            }
     
    742744            print STDERR "$file is on $volume which is gone\n";
    743745            $numGone++;
     746        } elsif ($answer eq 'permanently') {
     747            $numGone++;
    744748        } elsif ($answer eq 'available') {
    745749            $numNotGone++;
  • branches/czw_branch/20170908/ippScripts/scripts/ipp_cleanup.pl

    r37714 r40483  
    2727# turn this on the set the state to error_state when errors occur cleaning up individual components
    2828# We may stop doing this
    29 my $set_error_state_for_run = 1;
     29my $set_error_state_for_run = 0;
    3030
    3131# this gets set to 1 the first time we set the corresponding destreak run to be cleaned
  • branches/czw_branch/20170908/ippScripts/scripts/ipp_filename.pl

    r32803 r40483  
    1010#print "$ENV{'PATH'}\n";
    1111#print "$ENV{'PERL5LIB'}\n";
     12#print "NEB_SERVER: $ENV{'NEB_SERVER'}<br>\n";
    1213
    13 # CZW: This is a horrible hack, but I don't want to have to debug all of ippMonitor to figure out why it's not working.
     14# EAM: check for missing NEB_SERVER and exit with an error
    1415unless (defined($ENV{'NEB_SERVER'})) {
    15     $ENV{'NEB_SERVER'} = 'http://nebserver.ipp.ifa.hawaii.edu:80/nebulous';
     16    print "NEB_SERVER not defined in ipp_filename.pl\n";
     17    exit (5);
    1618}
    17 
     19if ($ENV{'NEB_SERVER'} eq "") {
     20    print "NEB_SERVER not set in ipp_filename.pl\n";
     21    exit (6);
     22}
    1823
    1924use PS::IPP::Config;
     
    5257
    5358my $realname = $ipprc->file_resolve( $filename, $touch );
     59if (not defined $realname) {
     60    print "nebulous file $filename not found\n";
     61    exit (1);
     62}
     63
    5464print "$realname\n";
    5565
  • branches/czw_branch/20170908/ippScripts/scripts/nightly_science.pl

    r39926 r40483  
    4646
    4747# Grab options
    48 my ( $date, $datetime, $camera, $dbname, $logfile, $verbose, $manual);
     48my ( $date, $datetime, $now, $camera, $dbname, $logfile, $verbose, $manual);
    4949my ( $help, $isburning, $force_stack_count, $force_diff_count, $force_registration, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode);
    5050my ( $registration_status, $burntool_status, $observing_status, $old_date);
     
    9595           --verbose
    9696           --force_stack_count    Force the chip/warp counts.
    97            --force_diff_count    Force the chip/warp counts.
     97           --force_diff_count     Force the chip/warp counts.
     98           --force_registration   Force registration counts.
    9899           --this_target_only     Process only a single target.
    99100           --this_filter_only     Process only a single filter.
     
    255256    $date = $datetime->ymd();
    256257}
     258$now = DateTime->now(time_zone => 'UTC');
    257259
    258260if (defined($this_target_only)) {
     
    21172119                                month  => $datetime->month,
    21182120                                day    => $datetime->day,
    2119                                 hour   => 6,
     2121                                hour   => 17, # 7,
    21202122                                minute => 30,
    21212123                                second => 0,
    2122                                 time_zone => 'Pacific/Honolulu');
     2124                                time_zone => 'UTC');
    21232125   
    21242126    foreach my $eon (keys %eon_config) {
     
    21422144        }
    21432145    }   
    2144 #    print "$datetime $eon_dt\n";
    2145     if (DateTime->compare($datetime,$eon_dt) < 1) {
     2146    if ($force_registration) {
     2147        return("END_OF_NIGHT");
     2148    }
     2149#    print "$now $eon_dt " . DateTime->compare($now,$eon_dt) . "\n";
     2150    if (DateTime->compare($now,$eon_dt) < 1) {
    21462151        return("OBSERVING");
    21472152    }
Note: See TracChangeset for help on using the changeset viewer.