POD documentation for
- Colors Used
- Script Layout
- See Also
- Known Bugs
- Copyright and License
- Source Code
- Takes an .svg and .txt file and an .svg file for fit_function.pl
] [filename x1 y1 x2 y2 x3 y3
] [-SVG SVG filename
produces this message
svg_generator.pl --help -v
produces a longer help message
svg_generator.pl filename x1 y1 x2 y2 x3 y3
places the program into non-interactive (command-line) mode
This program takes an .svg with imported images that have been tagged,
and a .txt file from correlator.html
and sets up a nicely-formatted
SVG file ready for fit_function.pl
. This and correlator.html
are used in lieu of startdialog.pl
Correlator.html outputs a list of locations in CAMECA coordintes
(which are distances from the origin in microns). Each location is in the
format #RRGGBB X-coord Y-coord
This program takes the CAMECA coodinates, converts them to pixels (ten
microns a pixel), negates the hoizontal axis (so the image will match
the reflected light image). It then takes the most recently modified
.svg file (or the specified one on the command line) and removes the
header. It then combines the CAMECA coordinates, the .svg data, as
well as a grid.
After running this program, you should be able to run
. After you have your images transformed correctly,
you then run svg2hpl.pl
which takes the locations designated and makes
a .hpl file (stage analysis) which you load, making all of your points
preset for running in the UCLA SIMS lab.
- -svg svgfilename
Uses the svg file svgfilename rather than the most recently modified .svg file.
Runs in verbose mode (this outputs a copy of the .svg file to screen).
Shows execution options.
This program is designed to run automatically (by double clicking on
it in windows). It will use the latest .txt and .svg files, or prompt
you if none can be found. However, if you ou decide to you can
specify x and y coodinates on the command line. It expects first a
filename, followed by x and y coordinates for all three points. It
can also take an .svg filename by using the -svg
Any colors can be used, however correlator.html
uses the following
colors (which correspond to the HTML/CSS 4.01 standard):
- red ff0000
- lime 00ff00
- blue 0000ff
- yellow ffff00
- cyan 00ffff
- fuchsia ff00ff
- maroon 800000
- green 008000
- navy 000080
- olive 808000
- teal 008080
- purple 800080
This script has three parts to it:
- Find and read the '.txt' file.
The program checks if there are appropriate command line arguments
given (ie. filename, and possibly x and y coordinates). If this fails,
it then looks for the most recently modified file ending in '.txt'.
If this fails, it then prompts the user for a filename. It then
parses the file.
- Find and read the '.svg' file.
The program checks if the -svg setting is used. If this is not
used, it looks for the most recently modified file ending in '.svg'.
If this fails it prompts the user for a filename. It then extracts
all the information between the </metadata> tag and the </svg> tag.
- Make new '.svg'.
The program takes the '.txt' filename and replaces the '.txt' with
'.svg'. It then sets up the .svg file (adding a grid, the information
from the old .svg file, as well as the base points information). It
then writes this file out.
No known bugs.
Miles McCammon, <email@example.com
Copyright and License
- Takes SIMS stage coordinates and makes an .svg file.
Copyright © 2008 SIMS Lab, University of California Los
Angeles; University of California Regents
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
To receive a copy of the GNU General Public License, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Source code for this version (11/10/08, 13:26) can be downloaded here