Here are some Perl scripts that I have written to help me with MCM stuff.  To use these scripts you have to have a perl interpreter installed.  I recommend ActiveStates Active Perl.  You can get it at

http://www.activestate.com/ActivePerl/download.html

Here is a brief description of the scripts/batch files contained in this zip.

Perl scripts:

AddZ      - Add a value to all the Z's in an ASC.
AdjSpline - Called by the MakeSpline batch file to scale/adjust the spline for larger grid resolutions.
ScaleZ    - Multiply a value to all the Z's in an ASC file.
ASCStats  - Prints out statistics on the values in an ASC file.

Batch file:

MakeSpline - Calls AdjSpline.pl to scale/adjust the spline for larger grid resolutions.


-----------------------------------------------------------------------------------------------

Command line options:

-----------------------------------------------------------------------------------------------
	
	AddZ ASCFile.asc zvalue >Output.ASC

		Where ASCFile.asc is the input ASC and zvalue is the value to add
		to all the Z's contain in the ASC file and Output.ASC is the new
		ASC file containing the updated Z values.

-----------------------------------------------------------------------------------------------

	ASCStats ASCFile.asc

		Displays the Min/Max Coordinates
		
-----------------------------------------------------------------------------------------------

	MakeSpline GridResolution SplineName [-quarry|-nat [NumberOfGrids]]

		where GridResolution matches the value in the .TER file
		and SplineName is the name of your .TXT file without the extension.

		Optionally you can pass -quarry to adjust the spline to the
		different coordinates of a quarry. -nat is the default.

		To make a spline that covers larger then the center grid you can
		pass the number of grids. For the entire National area it is 5 and
		for the entire quarry area it is 7. To use this option you need to
		create a picture of the entire area scaled to 1016x1016 and make the
		spline using MCMSplineEdit.

-----------------------------------------------------------------------------------------------

	ScaleZ ASCFile.asc zvalue >Output.ASC

		Where ASCFile.asc is the input ASC and zvalue is the value to
		multiply with the Z value's contained in the ASC file and
		Output.ASC is the new ASC file containing the updated Z values.

-----------------------------------------------------------------------------------------------

INSTALLATION

Just unzip into the directory that you use to work on your ASC files and splines. 

-----------------------------------------------------------------------------------------------

Enjoy,

Bruce Atkinson

AMA_Baatk

bruceatk@mediaone.net
baatk@softail.com

http://people.ne.mediaone.net/bruceatk/fantasycross.html
http://www.softail.com


