IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2010, 4:14:01 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Doc + Missign plot definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/def/README

    r9323 r28604  
    9898output column in the HTML table.
    9999
     100Drawing Figures
     101===============
     102- Definition files (def/*.d) MUST be appended with Image.d to allow specific
     103  processing (the template is not def/autocode.php but autocodeImage.php)
     104     e.g.:        plotMyStuffImage.php
     105- No changes to the previous file content except for these 4 items:
     106
     107     1) The 'restrict' keyword should be used in the 'show' column of
     108        FIELD entry if displaying the column values is wanted.
     109        Such FIELDs are used in the WHERE restriction clause, not in
     110        the query.
     111
     112        Note for developpers: actually any word different from the
     113        existing keywords '', 'value', 'none', 'image=xxx',
     114        'value=xxx' are ok.  No code was developped to support this
     115        keyword in the scritps/generate script.
     116
     117     2) 'TOPLOT <list of db columns>': defines the list of columns to
     118        query.
     119        e.g.:
     120              TOPLOT camProcessedExp.fwhm_major
     121              TOPLOT chipProcessedImfile.bg, rawExp.sun_angle
     122        All values (no LIMIT) are written to a temporary (text) file
     123        of the /tmp directory.
     124        In a row, the different values are separated by a single space
     125        (i.e. ' ').
     126
     127     3) 'PLOTTER <php_script_name>': defines the name of the PHP
     128        script that will call an external tool (e.g. a DVO script).
     129       
     130        It is expected that the PHP script named 'php_script_name'
     131        supports the following parameters:
     132        - input: the name of an input text filename;
     133        - output: the name of an output image filename;
     134        - title: a string (see item 4) PLOTTITLE).
     135
     136        e.g.:
     137                PLOTTER scatterPlot.php
     138                PLOTTER plotHistogram.php
     139
     140        The list of existing plotters are detailed further.
     141
     142     4) 'PLOTTITLE <A title>': defines the title of a figure. Could be
     143        used in the external program which is effectively used for
     144        rendering the figure.
     145
     146        e.g.:
     147                PLOTTITLE A title
     148
     149Existing plotting scripts
     150=========================
     151raw/skyplot.php (calls scripts/skyplot.dvo)
     152        Text input file needs to contain 3 columns
     153
     154raw/plotHistogram.php (calls scripts/build_histogram.dvo)
     155        Text input file needs to contain 1 column
     156        Computes the histogram of the input file data for 100 bins.
     157
     158raw/scatterPlot.php (calls scripts/pot_x_vs_y.dvo)
     159        Text input file needs to contain 2 columns
     160        Scatter plot of the first column values vs the second ones
     161        Regression line is also plotted (correlation coefficient is
     162        shown in title).
     163
     164Known bugs of the plotting scripts
     165==================================
     166- the temporary files are not deleted.
Note: See TracChangeset for help on using the changeset viewer.