Skip to main content

PNNL

  • About
  • News & Media
  • Careers
  • Events
  • Research
    • Scientific Discovery
      • Biology
        • Chemical Biology
        • Computational Biology
        • Ecosystem Science
        • Human Health
          • Cancer Biology
          • Exposure Science & Pathogen Biology
          • Metabolic Inflammatory Diseases
        • Integrative Omics
          • Advanced Metabolomics
          • Chemical Biology
          • Mass Spectrometry-Based Measurement Technologies
          • Spatial and Single-Cell Proteomics
          • Structural Biology
        • Microbiome Science
          • Biofuels & Bioproducts
          • Human Microbiome
          • Soil Microbiome
          • Synthetic Biology
      • Chemistry
        • Computational Chemistry
        • Chemical Separations
        • Chemical Physics
        • Catalysis
      • Earth & Coastal Sciences
        • Atmospheric Science
          • Atmospheric Aerosols
          • Human-Earth System Interactions
          • Modeling Earth Systems
        • Coastal Science
        • Ecosystem Science
        • Plant Science
        • Subsurface Science
        • Terrestrial Aquatics
      • Materials Sciences
        • Materials in Extreme Environments
        • Precision Materials by Design
        • Science of Interfaces
        • Solid Phase Processing
          • Cold Spray
          • Friction Stir Welding & Processing
          • ShAPE
      • Nuclear & Particle Physics
        • Dark Matter
        • Flavor Physics
        • Fusion Energy Science
        • Neutrino Physics
      • Quantum Information Sciences
    • Sustainable Energy
      • Electric Grid Modernization
        • Emergency Response
        • Grid Analytics
          • AGM Program
          • Tools and Capabilities
        • Grid Architecture
        • Grid Cybersecurity
        • Grid Energy Storage
        • Grid Resilience and Decarbonization
          • Earth System Modeling
          • Energy System Modeling
        • Transmission
        • Distribution
      • Energy Efficiency
        • Appliance and Equipment Standards
        • Building Energy Codes
        • Building Technologies
          • Advanced Building Controls
          • Advanced Lighting
          • Building-Grid Integration
        • Building and Grid Modeling
        • Commercial Buildings
        • Federal Buildings
          • Federal Performance Optimization
          • Resilience and Security
        • Grid Resilience and Decarbonization
        • Residential Buildings
          • Building America Solution Center
          • Energy Efficient Technology Integration
          • Home Energy Score
        • Energy Efficient Technology Integration
      • Energy Storage
        • Electrochemical Energy Storage
        • Flexible Loads and Generation
        • Grid Integration, Controls, and Architecture
        • Regulation, Policy, and Valuation
        • Science Supporting Energy Storage
        • Chemical Energy Storage
      • Environmental Management
        • Waste Processing
        • Radiation Measurement
        • Environmental Remediation
      • Fossil Energy
        • Subsurface Energy Systems
        • Carbon Management
          • Carbon Capture
          • Carbon Storage
          • Carbon Utilization
        • Advanced Hydrocarbon Conversion
      • Nuclear Energy
        • Fuel Cycle Research
        • Advanced Reactors
        • Reactor Operations
        • Reactor Licensing
      • Renewable Energy
        • Solar Energy
        • Wind Energy
          • Distributed Wind
          • Wildlife and Wind
          • Wind Data Management
          • Wind Resource Characterization
        • Energy Equity & Health
        • Marine Energy
          • Environmental Monitoring for Marine Energy
          • Marine Biofouling and Corrosion
          • Marine Energy Resource Characterization
          • Testing for Marine Energy
          • The Blue Economy
        • Hydropower
          • Environmental Performance of Hydropower
          • Hydropower Cybersecurity and Digitalization
          • Hydropower and the Electric Grid
          • Materials Science for Hydropower
          • Pumped Storage Hydropower
          • Water + Hydropower Planning
        • Grid Integration of Renewable Energy
        • Geothermal Energy
      • Transportation
        • Bioenergy Technologies
          • Algal Biofuels
          • Aviation Biofuels
          • Waste-to-Energy and Products
        • Hydrogen & Fuel Cells
        • Vehicle Technologies
          • Emission Control
          • Energy-Efficient Mobility Systems
          • Lightweight Materials
          • Vehicle Electrification
          • Vehicle Grid Integration
    • National Security
      • Cybersecurity
        • Discovery and Insight
        • Proactive Defense
        • Trusted Systems
      • Nuclear Material Science
      • Nuclear Nonproliferation
        • Radiological & Nuclear Detection
        • Nuclear Forensics
        • Ultra-Sensitive Nuclear Measurements
        • Nuclear Explosion Monitoring
        • Global Nuclear & Radiological Security
      • Stakeholder Engagement
        • Disaster Recovery
        • Global Collaborations
        • Legislative and Regulatory Analysis
        • Technical Training
      • Systems Integration & Deployment
        • Additive Manufacturing
        • Deployed Technologies
        • Rapid Prototyping
        • Systems Engineering
      • Threat Analysis
        • Advanced Wireless Security
          • 5G Security
          • RF Signal Detection & Exploitation
        • Climate Security
        • Grid Resilience and Decarbonization
        • Internet of Things
        • Maritime Security
      • Chemical & Biothreat Signatures
        • Contraband Detection
        • Pathogen Science & Detection
        • Explosives Detection
        • Threat-Agnostic Biodefense
    • Data Science & Computing
      • Artificial Intelligence
      • Graph and Data Analytics
      • Software Engineering
      • Computational Mathematics & Statistics
      • High-Performance Computing
      • Visual Analytics
    • Lab Objectives
    • Publications & Reports
    • Featured Research
  • People
    • Inventors
    • Diversity & Inclusion
    • Lab Leadership
    • Lab Fellows
    • Staff Accomplishments
  • Partner with PNNL
    • Academia
      • Distinguished Graduate Research Programs
      • Internships
      • Visiting Faculty Program
      • Joint Appointments
      • Joint Institutes
      • Linus Pauling Distinguished Postdoctoral Fellowship
      • Minority-serving Institutions
    • Community
      • Regional Impact
      • STEM Education
        • Resources
        • Student STEM Ambassadors
        • STEM Ambassadors in the Classroom
      • Philanthropy
      • Volunteering
    • Industry
      • Available Technologies
      • Industry
      • Industry Partnerships
      • Licensing & Technology Transfer
      • Entrepreneurial Leave
  • Facilities & Centers
    • All Facilities
      • Atmospheric Radiation Measurement User Facility
      • Electricity Infrastructure Operations Center
      • Energy Sciences Center
      • Environmental Molecular Sciences Laboratory
      • Grid Storage Launchpad
      • Institute for Integrated Catalysis
      • Interdiction Technology and Integration Laboratory
      • PNNL Seattle Research Center
      • PNNL-Sequim
      • Radiochemical Processing Laboratory
      • Shallow Underground Laboratory

Distributed Hydrology Soil Vegetation Model

  • FAQ
  • Tutorials and Datasets
    • Tutorial for DHSVM 2.0
    • Tutorial for DHSVM 3.0
    • Tutorial for DHSVM 3.1
  • Source Code
  • Data Products
  • Documentation
    • Tools
    • Model Operation
    • Model Input Files
    • Processing of Input Files
    • Model Output
  • Publications

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 pdf Describes steps to create road layers for your model.
Contributed by Chris Surfleet, OSU.(06/2006)
Set up of DVHSM input grids pdf Explain and detail set up of DHSVM input grids :
  • Watershed mask and DEM grid
  • Land cover grid
  • Soil texture grid
  • Soil depth and stream network grid
  • Contributed by Robert Mitchell and Matt Wiley. Robert Mitchell used "ArcGIS 9 on a PC which includes ArcMap and ArcInfo." He also used a " Sun workstation to compile java and C codes (and run C codes)." (07/2006)

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 pdf 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 pdf 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
cat ./arcinfo/rainyhdr.txt junk.asc > arcinformat.txt

modify the path of the files as necessary

 

 

 

 

 

 

PNNL

  • Get in Touch
    • Contact
    • Careers
    • Doing Business
    • Environmental Reports
    • Security & Privacy
    • Vulnerability Disclosure Program
  • Research
    • Scientific Discovery
    • Sustainable Energy
    • National Security
Subscribe to PNNL News
Department of Energy Logo Battelle Logo
Pacific Northwest National Laboratory (PNNL) is managed and operated by Battelle for the Department of Energy
  • YouTube
  • Facebook
  • Twitter
  • Instagram
  • LinkedIn