IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16247


Ignore:
Timestamp:
Jan 25, 2008, 4:11:47 PM (18 years ago)
Author:
eugene
Message:

adding code to parse the full metadata set, including dtime entries for chip,cam,warp,diff,stack

Location:
trunk/ippScripts/scripts
Files:
5 edited

Legend:

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

    r16196 r16247  
    7373
    7474# values to extract from output metadata and the stats to calculate
     75# these should be coming from the psastro results for Nimfile > 1,
    7576my $CHIPSTATS =
    7677    [   
    7778        #          PPSTATS KEYWORD         STATISTIC          CHIPTOOL FLAG
    7879        { name => "bg",             type => "mean",  flag => "-bg",             dtype => "float" },
     80        { name => "bg_stdev",       type => "rms",   flag => "-bg_stdev",       dtype => "float" }, 
    7981        { name => "bg_mean_stdev",  type => "stdev", flag => "-bg_mean_stdev",  dtype => "float" },
    80         { name => "bg_stdev",       type => "rms",   flag => "-bg_stdev",       dtype => "float" }, 
    81 
    82 # these should be coming from the psastro results for Nimfile > 1,
     82        { name => "bias",           type => "mean",  flag => "-bias",           dtype => "float" }, 
     83        { name => "bias_stdev",     type => "rms",   flag => "-bias_stdev",     dtype => "float" }, 
     84        { name => "fringe_0",       type => "mean",  flag => "-fringe_0",       dtype => "float" }, 
     85        { name => "fringe_1",       type => "rms",   flag => "-fringe_1",       dtype => "float" }, 
     86        { name => "fringe_0",       type => "stdev", flag => "-fringe_2",       dtype => "float" }, 
    8387        { name => "sigma_ra",       type => "rms",   flag => "-sigma_ra",       dtype => "float" }, 
    8488        { name => "sigma_dec",      type => "rms",   flag => "-sigma_dec",      dtype => "float" }, 
     89        { name => "ap_resid",       type => "mean",  flag => "-ap_resid",       dtype => "float" }, 
     90        { name => "ap_resid_stdev", type => "rms",   flag => "-ap_resid_stdev", dtype => "float" }, 
     91        { name => "zp_mean",        type => "mean",  flag => "-zp_mean",        dtype => "float" }, 
     92        { name => "zp_stdev",       type => "rms",   flag => "-zp_stdev",       dtype => "float" }, 
     93        { name => "fwhm_major",     type => "mean",  flag => "-fwhm_major",     dtype => "float" }, 
     94        { name => "fwhm_minor",     type => "mean",  flag => "-fwhm_minor",     dtype => "float" }, 
     95        { name => "dtime_detrend",  type => "sum",   flag => "-dtime_detrend",  dtype => "float" }, 
     96        { name => "dtime_photom",   type => "sum",   flag => "-dtime_photom",   dtype => "float" }, 
     97        { name => "dtime_astrom",   type => "sum",   flag => "-dtime_astrom",   dtype => "float" }, 
    8598        { name => "n_stars",        type => "sum",   flag => "-n_stars",        dtype => "int"   }, 
     99        { name => "n_extended",     type => "sum",   flag => "-n_extended",     dtype => "int"   }, 
     100        { name => "n_cr",           type => "sum",   flag => "-n_cr",           dtype => "int"   }, 
    86101        { name => "n_astrom",       type => "sum",   flag => "-n_astrom",       dtype => "int"   }, 
    87102
    88         { name => "fwhm",           type => "mean",  flag => "-fwhm",           dtype => "float" }, 
    89103
    90104# these are not defined for the database table camProcessedExp
    91 #       { name => "ap_resid",       type => "mean",  flag => "-ap_resid",       dtype => "float" }, 
    92 #       { name => "ap_resid_stdev", type => "rms",   flag => "-ap_resid_stdev", dtype => "float" }, 
    93 #       { name => "fringe_0",       type => "mean",  flag => "-fringe_0",       dtype => "float" }, 
    94 #       { name => "fringe_1",       type => "rms",   flag => "-fringe_1",       dtype => "float" }, 
    95 #       { name => "fringe_0",       type => "stdev", flag => "-fringe_2",       dtype => "float" }, 
    96105        ];
    97106my $chipStats = PS::IPP::Metadata::Stats->new($CHIPSTATS); # Stats parser
  • trunk/ippScripts/scripts/chip_imfile.pl

    r16196 r16247  
    6969
    7070# values to extract from output metadata and the stats to calculate
     71# XXX commented-out entries are not yet defined in the output files
    7172my $STATS =
    7273   [   
     
    7576       { name => "ROBUST_MEDIAN",  type => "stdev", flag => "-bg_mean_stdev",  dtype => "float" },
    7677       { name => "ROBUST_STDEV",   type => "rms",   flag => "-bg_stdev",       dtype => "float" },
     78       { name => "OVER_VAL",       type => "mean",  flag => "-bias",           dtype => "float" },
     79       { name => "OVER_VAL",       type => "stdev", flag => "-bias_stdev",     dtype => "float" },
    7780       { name => "FRINGE_0",       type => "rms",   flag => "-fringe_0",       dtype => "float" },
    7881       { name => "FRINGE_RESID_0", type => "rms",   flag => "-fringe_1",       dtype => "float" },
    7982       { name => "FRINGE_ERR_0",   type => "rms",   flag => "-fringe_2",       dtype => "float" },
    80        { name => "OVER_VAL",       type => "mean",  flag => "-bias",           dtype => "float" },
    81        { name => "FWHM_X",         type => "mean",  flag => "-fwhm",           dtype => "float" },
    82        { name => "FWHM_Y",         type => "mean",  flag => "-fwhm_range",     dtype => "float" },
     83       { name => "CERROR",         type => "rms",   flag => "-sigma_ra",       dtype => "float" },
     84       { name => "CERROR",         type => "rms",   flag => "-sigma_dec",      dtype => "float" },
    8385       { name => "APMIFIT",        type => "mean",  flag => "-ap_resid",       dtype => "float" },
    8486       { name => "DAPMIFIT",       type => "rms",   flag => "-ap_resid_stdev", dtype => "float" },
    85        { name => "CERROR",         type => "rms",   flag => "-sigma_ra",       dtype => "float" },
    86        { name => "CERROR",         type => "rms",   flag => "-sigma_dec",      dtype => "float" },
     87#      { name => "ZP??",           type => "mean",  flag => "-zp_mean",        dtype => "float" },
     88#      { name => "ZP??",           type => "rms",   flag => "-zp_stdev",       dtype => "float" },
     89       { name => "FWHM_X",         type => "mean",  flag => "-fwhm_major",     dtype => "float" },
     90       { name => "FWHM_Y",         type => "mean",  flag => "-fwhm_minor",     dtype => "float" },
     91       { name => "DT_DET",         type => "sum",   flag => "-dtime_detrend",  dtype => "float" },
     92       { name => "DT_PHOT",        type => "sum",   flag => "-dtime_photom",   dtype => "float" },
     93       { name => "DT_ASTR",        type => "sum",   flag => "-dtime_astrom",   dtype => "float" },
    8794       { name => "NSTARS",         type => "sum",   flag => "-n_stars",        dtype => "int"   },
     95#      { name => "?",              type => "sum",   flag => "-n_extended",     dtype => "int"   },
     96#      { name => "?",              type => "sum",   flag => "-n_cr",           dtype => "int"   },
    8897       { name => "NASTRO",         type => "sum",   flag => "-n_astrom",       dtype => "int"   },
    8998   ];
  • trunk/ippScripts/scripts/diff_skycell.pl

    r15395 r16247  
    5151   [   
    5252       #          PPSTATS KEYWORD         STATISTIC          DIFFTOOL FLAG
    53        { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",        dtype => "float" },
    54        { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",  dtype => "float" },
    55        { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac", dtype => "float" },
     53       { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",         dtype => "float" },
     54       { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",   dtype => "float" },
     55#      { name => "DT_DIFF",         type => "sum",  flag => "-dtime_diff", dtype => "float" },
     56       { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac",  dtype => "float" },
    5657   ];
    5758my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
  • trunk/ippScripts/scripts/stack_skycell.pl

    r16063 r16247  
    5353   [   
    5454       #          PPSTATS KEYWORD         STATISTIC          STACKTOOL FLAG
    55        { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",        dtype => "float" },
    56        { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",  dtype => "float" },
    57        { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac", dtype => "float" },
     55       { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",          dtype => "float" },
     56       { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",    dtype => "float" },
     57#      { name => "DT_STACK",        type => "sum",  flag => "-dtime_stack", dtype => "float" },
     58       { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac",   dtype => "float" },
    5859   ];
    5960my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
  • trunk/ippScripts/scripts/warp_skycell.pl

    r16021 r16247  
    6464   [   
    6565       #          PPSTATS KEYWORD         STATISTIC          WARPTOOL FLAG
    66        { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",        dtype => "float" },
    67        { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",  dtype => "float" },
    68        { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac", dtype => "float" },
     66       { name => "ROBUST_MEDIAN",   type => "mean", flag => "-bg",         dtype => "float" },
     67       { name => "ROBUST_STDEV",    type => "rms",  flag => "-bg_stdev",   dtype => "float" },
     68#      { name => "DT_WARP",         type => "sum",  flag => "-dtime_warp", dtype => "float" },
     69       { name => "GOOD_PIXEL_FRAC", type => "mean", flag => "-good_frac",  dtype => "float" },
    6970   ];
    7071my $stats = PS::IPP::Metadata::Stats->new($STATS); # Stats parser
Note: See TracChangeset for help on using the changeset viewer.