Xprofile Macro and Preference Manual

XPROFILE MACRO AND PREFERENCE MANUAL

Version 2002.0118


The purpose of this manual is to provide details on the operation of Macros and Preference files in Xprofile.

Both Macros and Prefenerences can be used to set various parameters in Xprofile before starting. Additionally, Macros can be used to recreate the steps taken to construct a complicated figure, and also can get Xprofile to perform simple tasks "automatically".

PREFERENCE FILES

Preferences are a bit simpler, so let's start with those. To set a certain parameter in Xprofile when it starts up, create a file containing lines with two columns, the first being the name of the parameter and the second being the value you wish to set this parameter to. Xprofile tries to do some checking to make sure these settings are not inappropriate, but be warned that this has not been thoroughly checked.

The name of the preference file is "Xprofile.prefs". Put it in the directory in which you are running the program. For example, if I want the default symbol to be a square (symbol 1) I would enter the following in my prefs file:

symbol 1

Note that a listing of all the variables that can be set, along with their current settings and ranges, can be obtained by typing Xprofile -d. Most will have the same names, defaults, and limits as those shown in the Macro table below.

MACRO FILES

Macro files consist of a series of commands followed by any number of parameter modifiers. The available commands are:

READ Read in a file, and set parameters for the data file
SET_PLOT Set arguments for the screen plot.
SET_MAP Set arguments for mapping
SET_PS Set arguments for Postscript plots
SET_CONT Set arguments for contours
SET_DRAW Set arguments for drawing on screen
SET_LABELS Read in Labels
SECTIONS Read in sections
SET_PAL Select palette and read in user defined palette
ACTION Allows Xprofile to do several canvas activities automatically
END Exit the script

The following table shows which arguments can be set for these commands.

CommandNameDescriptionDefaultRange
READ
filenameName of Input fileNoneN/A
directoryName of Directory of Input fileNoneN/A
data_xX column21-8
data_yY column11-8
data_zZ column00-8
data_vValue column00-8
data_idASCII ID column00-8
data_mapData file is a map00-1
data_contourData file is a full contour00-1
data_contourcData file is a compressed contour00-1
data_mechData file is focal mechanisms00-1
data_orderReverse X and Y assignment00-1
xscaleScale for X values1!=0
yscaleScale for Y values1!=0
zscaleScale for Z values1!=0
xoffOffset for X values1ALL
yoffOffset for Y values1ALL
zoffOffset for Z values1ALL
pensPen width00-9
line_modeType of line0 0 Solid line
1 Dotted line
2 Dashed line
3 Dot-dashed line
4 No line (shade only)
shade Map or Symbol color0 0 No Shading
1 Black
2 White
3-18 0-15 Palette
19 Scale by Z (Regular files only)
19(+1) Red
20(+1) Green
21(+1) Blue
22(+1) Yellow
23(+1) OrangeRed
24(+1) HotPink
25(+1) RoyalBlue
26(+1) DarkOliveGreen
27(+1) LightCyan
28(+1) SaddleBrown
lshade Line Color 0 0 Black
1 White
2-17 0-15 Palette
18 Red
19 Green
20 Blue
21 Yellow
22 OrangeRed
23 HotPink
24 RoyalBlue
25 DarkOliveGreen
26 LightCyan
27 SaddleBrown
mappattern Map fill pattern 0 0 No Pattern
1 Open vert lines
2 Tight vert lines
3 Open horiz lines
4 Tight horiz lines
5 Backslash lines
6 Forslash lines
7 Limestone
8 Dolomite
9 Granite
10 Metamorphic 1
11 Metamorphic 2
12 Sandstone
13 Shale
14 Conglomerate
15 Volcanic
16 Igneous (+)
17 Igneous (x)
18 Evaporite
19 Dot 1
20 Dot 2
21 Dot 3
symbol Symbol type0 0 cross
1 circle
2 square
3 triangle
4 diamond
5 no symbol
6 item number
7 Z entries
8 Value entries
showid ID size 0 0 Do not plot ID's
1 6 points
2 7 points
3 8 points
4 9 points
5 10 points
6 12 points
7 14 points
8 18 points
9 24 points
10 36 points
connect Point connection 0 0 Do not connect points
1 Connect points
2 Connect every second point
symsize Size of Symbol 4 0 0.01
1 0.02
2 0.03
3 0.04
4 0.05
5 0.06
6 0.07
7 0.08
8 0.09
9 0.10
10 Scale by Z
tpens Width of Thick Contour 40-9
disp Displacement of ID from symbol 00-9
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_PLOT
filenameName of Input fileNoneN/A
directoryName of Directory of Input fileNoneN/A
headerPlot headerPLOTN/A
xlabel X axis labelXN/A
ylabel Y axis labelXN/A
y_sys Projection type 0 0 Linear XY
1 Short_Dist Projection
2 Azimuthal-Equidistant
3 UTM Projection
4 Hypit Projection
grid_onDraw a grid 0 0 No Grid
1 Major Tick Grid
2 Major/Minor Tick Grid
scaling Type of screen scaling 0 0 Equal X-Y Scaling
1 Full Screen
x_right X positive right 10-1
y_up Y positive up 10-1
showlab Show labels 10-1
n_decx Number of x decimals20-3
n_decy Number of y decimals20-3
n_decz Number of z decimals20-3
font_noType of Font 0 0 Helvetica
1 Helvetica Bold
2 Helvetica Oblique
3 Helvetica Bold-Oblique
4 Times
5 Times Bold
6 Times Italic
7 Times Bold Italic
8 Courier
9 Courier Bold
10 Courier Oblique
11 Courier Bold Oblique
header_size Header Font size 8 0 6 points
1 7 points
2 8 points
3 9 points
4 10 points
5 12 points
6 14 points
7 18 points
8 24 points
9 36 points
label_size Label Font size5 0 6 points
1 7 points
2 8 points
3 9 points
4 10 points
5 12 points
6 14 points
7 18 points
8 24 points
9 36 points
backgroundColor of background0 0 White (None)
1-16 0-15 Palette
17 Red
18 Green
19 Blue
20 Yellow
21 OrangeRed
22 HotPink
23 RoyalBlue
24 DarkOliveGreen
25 LightCyan
26 SaddleBrown
canhelp Show canvas help windows00-1
c_modeDraw in contour colormap0 0 Contours Only
1 Color Map Only
2 Contours and Color Map
showpal Show palette on screen00-1
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_MAP
short_lat Short distance conversion Latitude45-90-90
azeq_latAzimuthal Equidistance LatNone-90-90
azeq_lonAzimuthal Equidistance LonNone-180-180
radiusAzimuthal Equidistance Circle RadiusNone> 0
num_piesAzimuthal Equidistance Angle SegmentsNone> 0
utm_latUTM LatNone-90-90
utm_lonUTM LonNone-180-180
hyp_latHYPIT LatNone-90-90
hyp_lonHYPIT LonNone-180-180
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_PS
short_lat Short distance conversion Latitude45-90-90
ps1.x_scale
ps2.x_scale
X scale for plot1!=0
ps1.y_scale
ps2.y_scale
Y scale for plot1!=0
ps1.x_off
ps2.x_off
X offset for plot1.5 inALL
ps1.y_off
ps2.y_off
Y offset for plot1.5 inALL
ps1.overlay
ps2.overlay
(Not Used in This Version)--
ps1.last_page
ps2.last_page
(Not Used in This Version)--
ps1.spool
ps2.spool
(Not Used in This Version)--
ps1.system
ps2.system
Plot Orientation0 0 Landscape mode
1 Portrait mode
ps2.macro
ps1.macro
(Not Used in This Version)--
ps1.x_axis
ps2.x_axis
Length of X axis8 inALL
ps1.y_axis
ps2.y_axis
Length of Y axis5 inALL
ps1.n_copies
ps2.n_copies
(Not Used in This Version)--
ps1.dpi(Not Used in This Version)--
ps1.unix_time(Not Used in This Version)--
ps1.width(Not Used in This Version)--
ps1.colorColors Used0 0 Gray Scale
1 Red Only
2 Full Color
ps1.file
ps2.file
Output fileProfile.ps
Section.ps
N/A
pix_scalePixel Scaling Factor1.0> 0
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_CONT
dv Thin Line Contour IntervalNone> 0
dvlThick Line Contour IntervalNone> 0
vzeroBase level NoneALL
zminMinimum Z value NoneALL
zmaxMaximum Z value NoneALL
pix_xresX pixel resolution None> 0
pix_yresY pixel resolution None> 0
C.mode Draw in contour colormap0 0 Contours Only
1 Color Map Only
2 Contours and Color Map
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_DRAW
data_x_minMinimum of X NoneALL
data_x_maxMaximum of X NoneALL
data_y_minMinimum of Y NoneALL
data_y_maxMaximum of Y NoneALL
data_x_tickMajor X tick intervalNone!=0
data_y_tickMajor Y tick intervalNone!=0
data_xm_tickMinor X tick intervalNone!=0
data_ym_tickMinor Y tick intervalNone!=0
data_xb_tickBegin X tickNoneALL
data_yb_tickBegin Y tickNoneALL
data_xr_tickRepeat X tickNoneALL
data_yr_tickRepeat Y tickNoneALL
headerPlot headerPLOTN/A
xlabel X axis labelXN/A
ylabel Y axis labelXN/A
D.showpal Show palette on screen00-1
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_LABELS
text Text of LabelNoneAll
x1 X coordinate of Label beginningNoneAll
y1 Y coordinate of Label beginningNoneAll
x2 X coordinate of Label endNoneAll
y2 Y coordinate of Label endNoneAll
size Size of LabelNone 0 6 points
1 7 points
2 8 points
3 9 points
4 10 points
5 12 points
6 14 points
7 18 points
8 24 points
9 36 points
just Label JustificationNone 0 Lower left
1 Lower middle
2 Lower right
3 Center left
4 Center middle
5 Center right
6 Upper left
7 Upper middle
8 Upper right
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SECTIONS
xend X coordinate of Section AnchorNoneAll
yend Y coordinate of Section AnchorNoneAll
angleAngle of Rotation (degrees clockwise)NoneALL
lengthLength of SectionNoneALL
widthWidth of SectionNoneALL
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
SET_PAL
palDefine which Palette to use0 0 Grey Scale
1 Red-White-Blue
2 Red-Green-Blue
3 16-Color
4 User-Defined
5 Reverse Pal
sp_xoX bit origin for palette display100> 0
sp_yoY bit origin for palette display100> 0
sp_lengthBit length of displayed palette300> 0
sp_widthBit width of displayed palette100> 0
SP.modePallete orientation0 0 Vertical
1 Horizontal
userpalName of User Defined PaletteNoneALL
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange
ACTION
create_screenDraw on Screen N/AN/A
create_psMake PostScript Output N/AN/A
select_section (N) Seletion SectionNone# Sections
examine_section Bring up section plotNoneN/A
create_ps2Make PostScript Output of Section N/AN/A
pausePause the running of the program N/AN/A
select (N) Select a file N/A 0 Make current file active
1 Make current file inactive
2 Make only current file active
3 Make only current file inactive
deleteDelete the current file N/AN/A
select_map (N) Selet a MapN/A 0 Make current map active
1 Make current map inactive
2 Make only current map active
3 Make only current map inactive
delete_map Delete the current MapN/AN/A
delete_label Delete the current LabelN/AN/A
end Terminates input for this option No ArgumentN/A
CommandNameDescriptionDefaultRange

NOTES

  1. Some variables appear as a subcommand to more than one command. This is partly for historical reasons. Just remember that the last invocation is the one that will be used.

  2. Typically, a macro file will contain a number of READ segments, followed by PLOT, DRAW, or other commands, and finally (if desired) ACTION statements. You can specify as much or as little as you wish.

  3. A great thing to do with macros is document the settings used to produce a given picture, either by constructing your own macro or using the WRITE MACRO option after the picture is completed.


Send bug reports to: roecks@rpi.edu