Changeset 13861
- Timestamp:
- Jun 18, 2007, 11:09:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_simulation_data.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_simulation_data.pl
r13490 r13861 31 31 $path, # Path to data 32 32 $workdir, # Working directory for data 33 $no_cal, # Don't produce calibration files 33 34 $no_update # Don't update the database 34 35 ); … … 41 42 'path=s' => \$path, 42 43 'workdir=s' => \$workdir, 44 'no-cal' => \$no_cal, 43 45 'no-update' => \$no_update, 44 46 ) or pod2usage( 2 ); … … 97 99 zp => 25.15, 98 100 sky => 20.86, 99 dither => 20,101 dither => 40, 100 102 }, 101 103 { … … 108 110 zp => 25.00, 109 111 sky => 20.15, 110 dither => 20,112 dither => 40, 111 113 }, 112 114 ]; … … 124 126 ( $basename, $counter ) = filename( $name, $counter ); 125 127 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 } 131 137 } 132 138 … … 136 142 ( $basename, $counter ) = filename( $name, $counter ); 137 143 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 } 143 153 } 144 154 … … 150 160 ( $basename, $counter ) = filename( $name, $counter ); 151 161 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 } 157 171 } 158 172 } … … 181 195 "-skyrate $sky -ra $ra -dec $dec -pa $pa -scale $scale -zp $zp -seeing $seeing $filename", 182 196 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 } 186 202 } 187 203 }
Note:
See TracChangeset
for help on using the changeset viewer.
