hydroScalingAPI.io
Class ImportUSGS_waterdataWeb

java.lang.Object
  extended by hydroScalingAPI.io.ImportUSGS_waterdataWeb

public class ImportUSGS_waterdataWeb
extends java.lang.Object

This class was developed to import daily streamflow time series from the USGS website. A Gauge-type site is created in the database. Currnently, only streamflow time series can be imported, Future implementations will include flow depth and other variables

Author:
Peter Furey

Constructor Summary
ImportUSGS_waterdataWeb(java.lang.String oDir)
          Creates an instance of the ImportUSGS_waterdataWeb
 
Method Summary
static void main(java.lang.String[] arguments)
          Tests for the class
 void StreamFlow(java.lang.String state, java.lang.String gaugeid, char record_type)
          This method imports streamflow data and creates a Gauge-type site file in the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportUSGS_waterdataWeb

public ImportUSGS_waterdataWeb(java.lang.String oDir)
Creates an instance of the ImportUSGS_waterdataWeb

Parameters:
oDir - The directory where the ouput file will be stored
Method Detail

StreamFlow

public void StreamFlow(java.lang.String state,
                       java.lang.String gaugeid,
                       char record_type)
This method imports streamflow data and creates a Gauge-type site file in the database

Parameters:
state - The two letter code for the state (e.g. CO - Colorado, NM - New Mexico)
gaugeid - The USGS gauge code (e.g. 09430500 for the Gila River at Gila gauge)
record_type - "H": for historical and "R": for recent.

main

public static void main(java.lang.String[] arguments)
Tests for the class

Parameters:
arguments - Comand line arguments


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.