IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33939 for trunk


Ignore:
Timestamp:
May 28, 2012, 5:15:08 PM (14 years ago)
Author:
bills
Message:

include commands to set opihi variables $ZPT_$filter and $EXPTIME_$filter in the
opihi-read-file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/listcmf

    r33938 r33939  
    2727#   listcmf my.i.band.cmf i.list --opihi-read-file i.mana
    2828#
    29 # (The mana command files may be re-used for different sets of inputs that have the same OUTPUT.FORMAT and
    30 # sets of extensions
    31 #
    3229# To read the data into mana
    3330#
     
    3532#       input r.mana
    3633#
     34#   The vectors are populated and the variables $ZPT_r  and  $EXPTIME_r are set
     35#
    3736#       datafile i.list
    3837#       input i.mana
    3938#
    40 #       set i_minus_r = PSF_INST_MAG_i - PSF_INST_MAG_r
     39#       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))
    4140#
    4241# The model fits columns names are appended with a tag for the model name as well as the filter
    4342# So to compare the de Vaucouleurs model magnitude in two filters
    4443#
    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))
    5048
    5149use strict;
     
    215213    print $oh "# ";
    216214
    217     print $oh "IPP_IDET 1";
     215    print $oh "IPP_IDET ";
    218216    for (my $i = 1; $i < scalar @psf_cols; $i++) {
    219217        print $oh " $psf_cols[$i]_$filter";
     
    225223        print $oh " $xfit_cols[$i]_$filter";
    226224    }
     225    print $oh "\n";
    227226}
    228227
     
    234233if ($opihi_read_file) {
    235234    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;
    236237    print OUT "read IPP_IDET 1";
    237     my $n = 1;
     238    my $n = 2;
    238239    for (my $i = 1; $i < scalar @psf_cols; $i++) {
    239240        print OUT " $psf_cols[$i]_$filter ",  $n++;
Note: See TracChangeset for help on using the changeset viewer.