HYDRA Code Library

This code library provides... etc...

All of Our Code Library Now Available at New Location

The code library has moved! Please see https://bitbucket.org/nickrsan/sierra-code-library to get a working snapshot of the scripts along with summaries, information, and arcgis toolboxes.

If you are within the CWS network, you can add the CWS Toolbox to access many of these tools. Instructions are in the readme file on TS-02 in E:\code_library

ArcGIS: Project an Entire Directory

This script projects an entire directory of items into Teale Albers format. It (funkily) supports projections as well.

By default, it looks in the folder "input" and creates an output folder called "projected" - to make it look in another folder for input, the first argument on the command line can be a path to look in. The second argument on the command line specifies whether they are coverages. If a second argument is present, it will treat them as coverages. If you don't want to specify another folder as the first argument, just make an empty string as the first argument (eg: run it as project_folder.py "" 1).

Email Nick for more information. A lot more streamlining and tweaking can be added to this, but it wasn't an initial priority.

Requires ArcGIS 10 (uses Arcpy)

Summary
See above
Author
Nick Santos
Created
Feb 2010

Required modules: arcpy

ArcGIS: Unwrap Directory of .e00 files to Coverages

Summary
Looks in a subfolder named "convert" that contains .e00 files. When run, it will unwrap all of the .e00 files in that directory into coverages in a folder called "output"
Author
Nick Santos
Created
Jan 2011

Required modules: arcpy

KML: Generate KML files from Hydra Data

Summary
Generates KML files for all Hydra Watersheds
Author
David Rheinheimer
Created
2009 and 2010

Required modules: All non-system modules are included

VIC Calculations: Annual ET

Summary
This script calculates annual ET values per subwat from VIC climate data
Author
Scott Ligare
Created
Feb 14, 2011

Required modules: zipfile, csv

VIC Flow Data Conversion Tools

A set of scripts from Scott Ligare to convert historic and current daily VIC data for use in other systems and models.

Contains 4 scripts.

flow_sum10_hist.py

Summary
This script takes daily HISTORIC VIC flow data and converts it to weekly flow data for comparisson with WEAP and DWR
Created
Jan 22, 2011

flow_sum10_wqrrs.py

Summary
This script takes daily VIC climate data and converts it to weekly data for use as climate inputs to WQRRS reservoir temperature model
Created
Feb 5, 2011

flow_sum10-RTEMP.py

Summary
This script takes daily VIC climate data and converts it to weekly climate data for use as inflows to WEAP and RTEMP
Created
Jan 29, 2011

flow_sum11-WEAP.py

Summary
This script takes daily VIC flow data and converts it to weekly flow data for use as inflows to WEAP and RTEMP
Created
Jan 12, 2011
Notes
This was written with help from David Rheinnheimer

Required modules: zipfile, csv, numpy

_blank

This is just used as a template for creating other resources. These are not the scripts you are looking for. There is nothing to see here. Move along.

Item Title (when multiple items in the zip)

Summary
Author
Created

Item Title (when multiple items in the zip)

Summary
Author
Created

Required modules: