[[PageOutline]] = Introduction = Czartool is a collection of Perl scripts designed to assist when monitoring the IPP system. Czartool began as a simple script to quickly display the current status of each label in the system, i.e. how many images pending, how many faults. A webpage followed on ippMonitor, then a database was implemented in combination with a polling program (czarpoll) which updates the database every few minutes with the current status of the IPP. = User notes = Most users will use czartool via the web page in ippMonitor. This gives a snapshot of processing at the current time, with plots starting from around 6:30am in the morning, since this is when (currently) burntool is scheduled to begin processing the previous night's data. There are, however, other useful Perl scripts available in {{{trunk/tools}}} that enable the user to go back further in time and create plots or metrics of particular labels, stages or date ranges. The main tool of interest is czarplot. == czarplot == Czarplot may be used to plot the contents of the czar database, which holds a history of IPP processing dating back to around mid-July 2010.[[BR]] * all plots (where relevant) can be given a date range, but will default to today from 6:30 if not is provided. Note that all times are in HST. When necessary (i.e. when querying rawExp in gpc1, HST is converted to UTC internally).[[BR]] * date ranges can be given with {{{-b }}} and {{{-e }}} flags or {{{-y }}} for a single day[[BR]] * where relevant a stage can be chosen, else defaulting to 'all stages'[[BR]] * were relevant a label can be chosen, else defaulting to 'all_stdscience_labels'[[BR]] The available plots are as follows: === Processing time-series === Using the {{{-t}}} argument (or none, since this is the default plot-type), czarplot can create time-series plots of either all stages (burntool, chip, cam etc), or one particular stage. For the latter, the number of processed, pending and faults are all shown. Examples: {{{ ./czarplot.pl -y 2010-11-22 ./czarplot.pl -y 2010-11-22 -s warp }}} [[Image(czarplot_linear_all_stdscience_labels_all_stages_t.png, 600px)]] [[Image(czarplot_linear_all_stdscience_labels_warp_t.png, 600px)]] === Processing histograms === Using the {{{-h}}} argument, stacked histograms showing processed/pending/faults can be generated. For example: {{{ ./czarplot.pl -b 2010-10-20 -e '2010-10-20 11' -h }}} [[Image(czarplot_linear_all_stdscience_labels_all_stages_h.png, 600px)]] === Rate plots === It is possible, using the {{{-r}}} argument, to create histograms of exposures-processed-per-some-interval (the interval can be specified with the {{{-i}}} argument, eg {{{-i 1 HOUR}}}) otherwise a 'sensible' interval will be chosen for you. {{{ ./czarplot.pl -y 2010-11-09 -r }}} [[Image(czarplot_linear_all_stdscience_labels_all_stages_r.png, 600px)]] === First-derivative plots === Using the {{{-d}}} arguments, first-derivative plots may be created for processed exposures against time. {{{ ./czarplot.pl -y 2010-10-18 -d }}} [[Image(czarplot_linear_all_stdscience_labels_all_stages_d.png, 600px)]] === Magic mask fraction === Both a histogram and cumulative distribution of the magic mask fraction can be plotted for a data range. '''Warning''' these plots can take some time to complete due to multiple JOINS necessary in the query to the gpc1 database. {{{ ./czarplot.pl -y 2010-08-15 -m }}} [[Image(czarplot_magic_mask_fraction_h.png, 600px)]] [[Image(czarplot_magic_mask_fraction_d.png, 600px)]] It is also possible to view the magic mask for a particular exposure as a color gradient. {{{ ./czarplot.pl -m -x 241460 }}} [[Image(czarplot_single_exp_magic_mask_fraction.png, 600px)]] == Metrics == Since czartool has a database containing a history of IPP processing since July, it is therefore useful for deriving metrics. = Developer Notes =