import time import speedtestUpdate """ Author: Stuart Sheffield ([email protected]) Last modified: November 9, 2015. """ speed = ['speed'] ptIndex = ['ptIndex'] usDs = ['usDs'] navDel = ['navDel'] totalTime = ['total'] print (time.strftime("%c")) for i in range(100): speed.append(speedtestUpdate.speedtest()) t0 = time.time() #Project Center lat = 38.0819 lon = -78.473836 #build the point indexing URL PtServiceUrl = "http://ofmpub.epa.gov/waters10/PointIndexing.Service?" \ + "pGeometry=POINT(%s+%s)"%(lon, lat) \ + "&pGeometryMod=WKT%2CSRID%3D8265" \ + "&pResolution=3" \ + "&pPointIndexingMethod=RAINDROP" \ + "&pPointIndexingMaxDist=25" \ + "&pOutputPathFlag=FALSE" \ + "&optOutPrettyPrint=0"
import urllib2 import time import speedtestUpdate """ Author: Stuart Sheffield ([email protected]) Last modified: November 23, 2015. """ wshedDel = ['wshedDel'] basinChar = ['basinChar'] totalTime = ['total'] print time.strftime("%c") for i in range(25): speedtestUpdate.speedtest() lat = 38.0656515783 lon = -78.4799437051 delineateUrl = "http://streamstatsags.cr.usgs.gov/streamstatsservices/watershed.json?" \ + "rcode=VA" \ + "&xlocation=%s"%(lon) \ + "&ylocation=%s"%(lat) \ + "&crs=4326&includeparameters=false&includeflowtypes=false" \ + "&includefeatures=true&simplify=true" t1 = time.time() response1 = urllib2.urlopen(delineateUrl, timeout=10000).read()