IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2007, 11:09:05 AM (19 years ago)
Author:
Paul Price
Message:

Larger dither, so that astrometry can be verified.

File:
1 edited

Legend:

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

    r13490 r13861  
    3131    $path,                      # Path to data
    3232    $workdir,                   # Working directory for data
     33    $no_cal,                    # Don't produce calibration files
    3334    $no_update                  # Don't update the database
    3435    );
     
    4142           'path=s'        => \$path,
    4243           'workdir=s'     => \$workdir,
     44           'no-cal'        => \$no_cal,
    4345           'no-update'     => \$no_update,
    4446           ) or pod2usage( 2 );
     
    9799                            zp => 25.15,
    98100                            sky => 20.86,
    99                             dither => 20,
     101                            dither => 40,
    100102                        },
    101103                        {
     
    108110                            zp => 25.00,
    109111                            sky => 20.15,
    110                             dither => 20,
     112                            dither => 40,
    111113                        },
    112114                        ];
     
    124126    ( $basename, $counter ) = filename( $name, $counter );
    125127    my $filename = caturi( $path, $basename );
    126     run( command => "$ppSim -camera $camera -type BIAS $filename",
    127          verbose => 1 ) or die "Unable to run ppSim";
    128     run( command => "$inject --camera $camera --telescope $telescope --path $path --workdir $workdir " .
    129          "--dbname $dbname $basename",
    130          verbose => 1 ) or die "Unable to inject file.";
     128    unless ($no_cal) {
     129        run( command => "$ppSim -camera $camera -type BIAS $filename",
     130             verbose => 1 ) or die "Unable to run ppSim";
     131        unless ($no_update) {
     132            run( command => "$inject --camera $camera --telescope $telescope --path $path " .
     133                 "--workdir $workdir --dbname $dbname $basename",
     134                 verbose => 1 ) or die "Unable to inject file.";
     135        }
     136    }
    131137}
    132138
     
    136142    ( $basename, $counter ) = filename( $name, $counter );
    137143    my $filename = caturi( $path, $basename );
    138     run ( command => "$ppSim -camera $camera -type DARK -exptime $exptime $filename",
    139           verbose => 1 ) or die "Unable to run ppSim";
    140     run( command => "$inject --camera $camera --telescope $telescope --path $path --workdir $workdir " .
    141          "--dbname $dbname $basename",
    142          verbose => 1 ) or die "Unable to inject file.";
     144    unless ($no_cal) {
     145        run ( command => "$ppSim -camera $camera -type DARK -exptime $exptime $filename",
     146              verbose => 1 ) or die "Unable to run ppSim";
     147        unless ($no_update) {
     148            run( command => "$inject --camera $camera --telescope $telescope --path $path " .
     149                 "--workdir $workdir --dbname $dbname $basename",
     150                 verbose => 1 ) or die "Unable to inject file.";
     151        }
     152    }
    143153}
    144154
     
    150160        ( $basename, $counter ) = filename( $name, $counter );
    151161        my $filename = caturi( $path, $basename );
    152         run( command => "$ppSim -camera $camera -type FLAT -filter $filter -exptime $exptime $filename",
    153              verbose => 1 ) or die "Unable to run ppSim";
    154         run( command => "$inject --camera $camera --telescope $telescope --path $path --workdir $workdir " .
    155              "--dbname $dbname $basename",
    156              verbose => 1 ) or die "Unable to inject file.";
     162        unless ($no_cal) {
     163            run( command => "$ppSim -camera $camera -type FLAT -filter $filter -exptime $exptime $filename",
     164                 verbose => 1 ) or die "Unable to run ppSim";
     165            unless ($no_update) {
     166                run( command => "$inject --camera $camera --telescope $telescope --path $path " .
     167                     "--workdir $workdir --dbname $dbname $basename",
     168                     verbose => 1 ) or die "Unable to inject file.";
     169            }
     170        }
    157171    }
    158172}
     
    181195             "-skyrate $sky -ra $ra -dec $dec -pa $pa -scale $scale -zp $zp -seeing $seeing $filename",
    182196             verbose => 1 ) or die "Unable to run ppSim";
    183         run( command => "$inject --camera $camera --telescope $telescope --path $path --workdir $workdir " .
    184              "--dbname $dbname $basename",
    185              verbose => 1 ) or die "Unable to inject file.";
     197        unless ($no_update) {
     198            run( command => "$inject --camera $camera --telescope $telescope --path $path " .
     199                 "--workdir $workdir --dbname $dbname $basename",
     200                 verbose => 1 ) or die "Unable to inject file.";
     201        }
    186202    }
    187203}
Note: See TracChangeset for help on using the changeset viewer.