IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28601


Ignore:
Timestamp:
Jul 2, 2010, 3:30:28 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Plots

Location:
trunk/ippMonitor
Files:
21 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/Makefile.in

    r28496 r28601  
    1818$(DESTBIN)/czartool_getServerStatus.pl \
    1919$(DESTBIN)/build_histogram.dvo \
    20 
     20$(DESTBIN)/helpers.dvo \
     21$(DESTBIN)/plot_x_vs_y.dvo
    2122
    2223RAWSRC = \
     
    3637$(DESTWWW)/ipp.load.dat \
    3738$(DESTWWW)/ipp.load.php \
     39$(DESTWWW)/ipp.plots.dat \
     40$(DESTWWW)/ipp.plots.php \
    3841$(DESTWWW)/ipp.science.dat \
    3942$(DESTWWW)/ipp.science.php \
     
    5558$(DESTWWW)/histogram.php \
    5659$(DESTWWW)/show_and_delete_image.php \
     60$(DESTWWW)/scatterPlot.php \
     61$(DESTWWW)/select_forms.php \
     62$(DESTWWW)/plotHistogram.php \
    5763
    5864
     
    178184$(DESTWWW)/flatcorrChip.php \
    179185$(DESTWWW)/flatcorrCamera.php \
    180 $(DESTWWW)/maskStats.php
     186$(DESTWWW)/maskStats.php \
     187$(DESTWWW)/simplePlotRawImage.php \
     188$(DESTWWW)/simplePlotChipImage.php \
     189$(DESTWWW)/simplePlotCamImage.php \
     190$(DESTWWW)/histogramBackgroundImage.php \
     191$(DESTWWW)/histogramCamProcessedExpImage.php \
     192$(DESTWWW)/histogramChipProcessedImfileFwhmMajorImage.php \
     193$(DESTWWW)/scatterPlotAirMassFwhmImage.php \
     194$(DESTWWW)/scatterCpiBgReMaImage.php \
     195$(DESTWWW)/scatterCpiBgReMpImage.php \
     196$(DESTWWW)/scatterCpiBgReSaImage.php
    181197
    182198PICTURES = \
     
    206222        ln -s $(DESTWWW)/Login.php $@
    207223
     224$(SRC)/%Image.php: $(DEF)/%Image.d $(DEF)/autocodeImage.php $(GENERATE)
     225        @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi
     226        $(GENERATE) $< $(DEF)/autocodeImage.php $@
    208227$(SRC)/%.php: $(DEF)/%.d $(DEF)/autocode.php $(GENERATE)
    209228        @if [ ! -d $(SRC) ]; then mkdir -p $(SRC); fi
     
    211230
    212231# generated php code is built into SRC first
     232$(DESTWWW)/%Image.php: $(SRC)/%Image.php
     233        @if [ ! -d $(DESTWWW) ]; then mkdir -p $(DESTWWW) || exit; fi
     234        rm -f $(DESTWWW)/$*Image.php || exit
     235        cp $(SRC)/$*Image.php $(DESTWWW)/$*Image.php || exit
    213236$(DESTWWW)/%.php: $(SRC)/%.php
    214237        @if [ ! -d $(DESTWWW) ]; then mkdir -p $(DESTWWW) || exit; fi
  • trunk/ippMonitor/raw/ipp.imfiles.dat

    r28451 r28601  
    2424menutop   | menutop      | link    | mask stats                   | maskStats.php
    2525menutop   | menutop      | link    | histogram                    | histogram.php
     26menutop   | menutop      | link    | Scatter plot                 | plot_x_vs_y.php
     27
     28menutop   | menutop      | link    | Simple plot - raw            | simplePlotRawImage.php
     29menutop   | menutop      | link    | Simple plot - chip            | simplePlotChipImage.php
     30menutop   | menutop      | link    | Simple plot - cam            | simplePlotCamImage.php
     31menutop   | menutop      | link    | Histogram background     | histogramBackgroundImage.php
     32menutop   | menutop      | link    | Histogram Fwhm Major (camProcessedExp)     | histogramCamProcessedExpImage.php
     33menutop   | menutop      | link    | Histogram Fwhm Minor (chip processed)     | histogramChipProcessedImfileFwhmMajorImage.php
  • trunk/ippMonitor/raw/ipp.menu.dat

    r26947 r28601  
    2424menutop   | menutop      | link    | Distribution                 | ipp.dist.php
    2525menutop   | menutop      | link    | Calibration                  | ipp.cal.php
     26menutop   | menutop      | link    | Plots                        | ipp.plots.php
    2627menutop   | menutop      | link    | Admin and Debug              | ipp.imfiles.php
    2728
  • trunk/ippMonitor/raw/ipp.php

    r28432 r28601  
    871871}
    872872
     873//////////////////////////////////////////////////////////////////////////
     874// Extra filtering parameters array
     875$filteringParameters = array();
     876
    873877?>
  • trunk/ippMonitor/raw/skyplot.php

    r27113 r28601  
    4747$outfile = $_GET[output];
    4848
    49 exec ("skyplot.dvo $infile $outfile", $output, $status);
     49$output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status);
    5050
    5151if ($debug) {
     
    6565  fpassthru ($file);
    6666}
    67 exit ();
     67
     68exit();
     69
    6870?>
  • trunk/ippMonitor/scripts/build_histogram.dvo

    r28433 r28601  
    3737  plot dx vhist -x 1 -c blue
    3838  $binsCount = dx[]
    39   myecho "  Labeling"
    40   myecho "    -x $3"
     39  strsub $3 "_" "\\\\_" -var xLabel
     40  myecho "  Labelling"
     41  myecho "    -x $xLabel"
    4142  myecho "    -y Occurrences "
    42   myecho "    +x 'Histogram of $3 "
     43  myecho "    +x 'Histogram of $xLabel "
    4344  myecho "           interval = $minvalue : $maxvalue "
    4445  myecho "           / $binsCount bins"
    4546  myecho "           / bin width: $delta)'"
    46   labels -x $3
     47  labels -x $xLabel
    4748  labels -y Occurrences
    48   labels +x "Histogram of $3 / interval = $minvalue : $maxvalue / $binsCount bins / bin width: $delta"
     49  labels +x "Histogram of $xLabel / interval = $minvalue : $maxvalue / $binsCount bins / bin width: $delta"
    4950
    5051  myecho "Saving graphics to [$2]"
  • trunk/ippMonitor/scripts/generate

    r26888 r28601  
    3535    &init_key ("FIELDS");
    3636    &init_key ("GROUPS");
     37    &init_key ("TOPLOT");
     38    &init_key ("PLOTTER");
     39    &init_key ("PLOTTITLE");
    3740
    3841    foreach $line (@list) {
     
    4346        if ($key eq "TABLE") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
    4447        if ($key eq "TYPE")  { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     48        if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     49        if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; }
     50        if ($key eq "PLOTTITLE") {
     51            ($value) = $value =~ m|^\s*(.+)\s*$|;
     52            $value =~ s/\s/_/g;
     53        }
    4554
    4655        &set_keypair ($key, $value);
     
    253262# generate a table header cell (<th> </th>) for each field (show != none)
    254263sub write_table_header {
    255 
    256264    # print the table header (field labels)
    257265    print FILE "echo \"<tr><td></td>\\n\";\n";
     
    682690        if ($key eq $key[$i]) {
    683691            if ($VERBOSE) { print "found $key: $key[$i]  -- $value[$i] (def: $default)\n"; }
    684             if (($default eq "") && ($value[$i] eq "")) { die "missing value for required key $key[$i]\n"; }
     692            if (($default eq "") && ($value[$i] eq "")) { die "check_key: missing value for required key $key[$i]\n"; }
    685693            if ($value[$i] eq "") { $value[$i] = $default; }
    686694            return;
     
    695703        if ($VERBOSE) { print "$key[$i]  -- $value[$i]\n"; }
    696704        if ($line =~ m|\$$key[$i]|) {
    697             if ($value[$i] eq "") { die "missing value for required key $key[$i]\n"; }
     705            if ($value[$i] eq "") { die "check_keypairs: missing value for required key $key[$i]\n"; }
    698706            $line =~ s|\$$key[$i]|$value[$i]|g;
    699707        }
     
    708716# against the expectation at runtime.  for the moment,
    709717# calculate by hand and add to def.d file
    710 
Note: See TracChangeset for help on using the changeset viewer.