Tools
This page is intended to provide scripts, programs, and extra documentation related to processing input and output files, creating maps, etc. Please consider submitting your scripts, programs, and helpful documents to us so that all DHSVM users can benefit from them. These programs are intended to help DHSVM users. We are not responsible for them in any way and you should always read the code before using them.
Many programs are available on tutorial page. The programs for input processing haven't changed for the DHSVM 3.0 version in this tutorial. However, the output processing programs have and will be available soon.
Processing of input files
C shell script, UNIX | Remove header of ArcInfo ascii files for DEM, MASK, SOIL and VEG Apply only once |
|
my convert.c | ANSI C | gcc -o myconvert -lm convert.c usage: myconvert source_format(ASCII/BINARY) target_format(char, float, etc) source_file target_file number_rows number_cols |
Makefile.ModelState | ANSI C and C Shell Script | Get it from tutorial for now, prepare an initial state. WARNING, a spinup period is still necessary make -f Makefile.ModelState MakeModelStateBin InitialState.txt |
MakeChannelState.c | ANSI C | gcc -o MakeChannelState MakeChannelState.c Usage: MakeChannelState StreamNetworkFile stream_classR file InitialDepth Output_DateR_ String: MM.DD.YYYY.hh.mm.ss Creates Initial Channel State. This is an updated version of the C shell script formerly provided and it does not required any editing anymore. (Previously requiring to manually edit the width of the channels). (Nathalie Voisin 08/2006) Sample Initial Channel State: (Channel.State.10.01.1990.03.00.00) |
Add road layers | Describes steps to create road layers for your model. Contributed by Chris Surfleet, OSU.(06/2006) |
|
Set up of DVHSM input grids | Explain and detail set up of DHSVM input grids :
|
Processing of input files and running DHSVM 3.0 on a PC
Please remember that we do not support any DHSVM version on Windows machines. This version may help you set up DHSVM on your machine, but there's no guarantee.
Everything | tar file (java, AML, C, cpp, txt, Doc) | Adapted AML and java scrips and .cpp (instead of C shell scripts) for input processing and adapted C files for running DHSVM model on a PC, along with instructions and details of the changes Contributed by Charlie Luce (USDA Forest Service) (07/2006) |
Details of changes in input processing scripts | Contributed by Charlie Luce (USDA Forest Service). Download the "Everything" tar file above to obtain the changed files. (07/2006) |
|
Details fo the changes in DHSVM 3.0 source code | .txt | Contributed by Charlie Luce (USDA Forest Service). Download the "Everything" tar file above to obtain the changed files. (07/2006) |
Instructions when using a PC | Contributed by Charlie Luce (USDA Forest Service) (07/2006) |
Plot GMT maps
plot_modelmap.scr | C shell script, UNIX | Process the MAPS output files using myconvert.c and adding the previously saved header file (tutorial), then use GMT commands to plot the map |
Create GIS maps
UNIX commands | UNIX | ./programs/myconvert float ascii mapfile junk.asc ROW COL modify the path of the files as necessary |