- Timestamp:
- May 28, 2012, 5:15:08 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tools/listcmf (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/listcmf
r33938 r33939 27 27 # listcmf my.i.band.cmf i.list --opihi-read-file i.mana 28 28 # 29 # (The mana command files may be re-used for different sets of inputs that have the same OUTPUT.FORMAT and30 # sets of extensions31 #32 29 # To read the data into mana 33 30 # … … 35 32 # input r.mana 36 33 # 34 # The vectors are populated and the variables $ZPT_r and $EXPTIME_r are set 35 # 37 36 # datafile i.list 38 37 # input i.mana 39 38 # 40 # set i_minus_r = PSF_INST_MAG_i - PSF_INST_MAG_r39 # set i_minus_r = $ZPT_i + PSF_INST_MAG_i + 2.5 * log($EXPTIME_i) - ($ZPT_r + PSF_INST_MAG_r + 2.5 * log($EXPTIME_r)) 41 40 # 42 41 # The model fits columns names are appended with a tag for the model name as well as the filter 43 42 # So to compare the de Vaucouleurs model magnitude in two filters 44 43 # 45 # set dev_i_minus_r = EXT_INST_MAG_DEV_i - EXT_INST_MAG_DEV_r 46 # 47 # similarly 48 # 49 # set sersic_i_minus_r = EXT_INST_MAG_SERSIC_i - EXT_INST_MAG_SERSIC_r 44 # set dev_i_minus_r = $ZPT_i + EXT_INST_MAG_DEV_i + 2.5 * log($EXPTIME_i) - ($ZPT_r + EXT_INST_MAG_DEV_r + 2.5 * log($EXPTIME_r)) 45 # 46 # 47 # set sersic_i_minus_r = $ZPT_i + EXT_INST_MAG_SERSIC_i + 2.5 * log($EXPTIME_i) - ($ZPT_r + EXT_INST_MAG_SERSIC_r + 2.5 * log($EXPTIME_r)) 50 48 51 49 use strict; … … 215 213 print $oh "# "; 216 214 217 print $oh "IPP_IDET 1";215 print $oh "IPP_IDET "; 218 216 for (my $i = 1; $i < scalar @psf_cols; $i++) { 219 217 print $oh " $psf_cols[$i]_$filter"; … … 225 223 print $oh " $xfit_cols[$i]_$filter"; 226 224 } 225 print $oh "\n"; 227 226 } 228 227 … … 234 233 if ($opihi_read_file) { 235 234 open OUT, ">$opihi_read_file" or die "failed to open $opihi_read_file\n"; 235 printf OUT '$EXPTIME_%s = %f' . "\n", $filter, $exp_time; 236 printf OUT '$ZPT_%s = %f' . "\n", $filter, $zero_point; 236 237 print OUT "read IPP_IDET 1"; 237 my $n = 1;238 my $n = 2; 238 239 for (my $i = 1; $i < scalar @psf_cols; $i++) { 239 240 print OUT " $psf_cols[$i]_$filter ", $n++;
Note:
See TracChangeset
for help on using the changeset viewer.
