Parc
Parc is a simple web-based plot archiving tool for postscript images written in perl.
It compresses the ps file, but leaves it in the directory it was created. An small gif image is created from this which is then lodged in the archive together with a hyperlink to the original ps file.
You can see it in action here.
I call it V1.0, but it probably should be v0.9 - it's not entirely
usefriendly to install - yet.
There are two components:
- The web interface (parc.cgi)
- the command line program that adds plots to the database (addplot)
What you need
Currently addplot needs the following other programs to work:
- ps2epsi
- gzip
- date
- imagemagick's convert
addplot will search for these.
Dowloads
Dowload them here:
Put parc.cgi in your webdirectory, maybe in the cgi-bin subdirectory.
Put addplot in your path, ideally in your ~/bin/ directory.
What to do next
Parc looks for a config file that lives in the same directory as Parc. It should be called parc.config, world readable and look like this:
# Config file for parc
# webroot : location of web root directory on local server
webroot=/home/dan/public_html
# arcroot: location of plot archive within webroot directory
arcroot=/work/plots
# URL of base of website
webbase=http://www.met.rdg.ac.uk/~dan
#location of parc.cgi within webroot directory
cgiloc=/cgi-bin/
arcroot is the location of the plot archive that addplot will
create within the webdirectory defined by webroot.
You also need a .parc.config file in your home directory that tells addplot where the parc.config file lives. A single line like this:
/home/dan/public_html/cgi-bin/
Setting up parc.cgi
Make parc.cgi world readable and executable (or readable and executable to the webserver at least).
You might have to change the settings on your webserver to allow it to
execute .cgi files.
Make addplot executable by yourself (chmod +x ~/bin/addplot).
You are now ready to roll!
Using addplot
addplot is used as follows
addplot "title of plot" /library/sublibrary/subsublibrary [-rot] [-web]
postscript_filename.ps is the name of the postscript file to be added to the plot archive.
"title of plot" is a title for the plot that will appear in the archive.
/directory/subdirectory/subsubdirectory is the (sub)directory that the plot will be archived in.
[-rot] is a optional command that will cause the image to be rotated through 90 degrees anticlockwise.
[-web] will attempt to create a softlink to the postscript image. This will allow remote users to access the postscript files too. The default is to use a local file://  hyperlink.
Good luck!
Problems? email me at d.l.r.hodson {AT} reading.ac.uk