UCLA SIMS

POD documentation for svg_generator.pl

Outline

  1. Name
  2. Synopsis
  3. Description
  4. Options
  5. Arguments
  6. Colors Used
  7. Script Layout
  8. See Also
  9. Known Bugs
  10. Author
  11. Copyright and License
  12. Source Code

Name

svg_generator.pl - Takes an .svg and .txt file and an .svg file for fit_function.pl.

Synopsis

svg_generator.pl [-vb|--verbose] [filename x1 y1 x2 y2 x3 y3] [-SVG SVG filename]
svg_generator.pl
svg_generator.pl filename
svg_generator.pl --help 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

Description

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 fit_function.pl. 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.

Options

Arguments

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 option.

Colors Used

Any colors can be used, however correlator.html uses the following colors (which correspond to the HTML/CSS 4.01 standard):

Script Layout

This script has three parts to it:

See Also

perlpod, startdialog.pl, fit_function.pl, svg2hpl.pl, http://www.perl.org, http://www.gnu.org, http://www.w3.org/TR/REC-html40/types.html#h-6.5

Known Bugs

No known bugs.

Author

Miles McCammon, <miles86@ucla.edu> svg_generator.plx - 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 02110-1301, USA.

Source Code

Source code for this version (11/10/08, 13:26) can be downloaded here.
N 34° 4' 9" W 118° 26' 27"