Skip to content

Instantly share code, notes, and snippets.

@emiliom
emiliom / SPARQLWrapper_MMI_IOOSParameterVocabTerm.ipynb
Last active August 29, 2015 14:01
#IOOS #MMI #python Sample SPARQL queries against MMI IOOS Vocabularies. 8/9/2014
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / pyoos_nerrs_pandas_demo1.ipynb
Last active August 29, 2015 14:01
#IOOS #pyoos #NERRS Accessing a NERRS station with Pyoos, via CDMO SOAP web services. Illustrates querying all stations ("features") from a NERRS Reserve site; access to data from a NERRS station (specified by its station code); extraction of station metadata; and conversion of the returned multi-variable time series to a pandas DataFrame, follo…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / NEWS_TWAP_ScenRHscaling_assessment.ipynb
Created February 10, 2014 01:02
#GlobalNEWS #Rivers Comparing NEWS2 scenario output: RH2000 scaling strategies assessment Accessing NEWS scenarios raw csv output. I've run the assessments for the 133 original BOB LME STN30 (NEWS 2) basins, that test whether we can run the two methods (ratio vs additive) for scaling scenarios to the realistic hydrology 2000 output. For both GO …
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / NEWS_TWAP_ScenRuns_Comparisons.ipynb
Created February 7, 2014 04:16
#GlobalNEWS #Rivers Comparing NEWS2 scenario output: new GNE output ("TWAP") vs "Run5". Accessing NEWS scenarios raw csv output files to confirm that, for all practical purposes, the new output ("TWAP") is identical to Run 5 output. All "yield differences" presented below are in units of kg (N|P|C)/yr/(watershed km2). Emilio Mayorga, 2/5-6/2014
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / WBMSedsNEWS_ModelOutput_2.ipynb
Last active January 1, 2016 13:39
#GlobalNEWS #Rivers #WBMSedNEWS Extract and plot WBMSedNEWS model output monthly timeseries, compare to instantaneous USGS station data. Use the matchup between USGS station ID's (sta_num) and fraction-specific WBMsed sequential ID's to extract model output (from ascii files, now hosted and read directly from a web folder) for a selected USGS st…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / CZOData_CSVtoDataFrame_CZOflow.ipynb
Created December 27, 2013 20:03
#CZOData #Python #CRB #CZODisplayFile CZOData data access Example 1: Read and plot CZO_DisplayFile_v1 with Pandas. Read from a CZO Display File v1, convert to Pandas DataFrame and plot time series. Originally written by Anthony Aufdenkampe, Dec. 13, 2013. Modified by Emilio Mayorga, 12/23/2013 (read data directly from web-hosted files; extend ye…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / CZOData_GeoPortalCSW_Access.ipynb
Last active December 31, 2015 21:49
#CZOData #CSW #Python #CRB Access CZOData Geoportal OGC CSW endpoint. Use OWSLib to test accessing and querying the CSW endpoint. Illustrate a couple of different record filtering schemes. Examples are focused on Christina River Basin records. 12/19/2013. Emilio Mayorga.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / NEWS_trajectories.ipynb
Created December 15, 2013 18:20
#GlobalNEWS #Rivers #python Accessing NEWS scenarios raw csv input and output files. Amazon basin example. Plot trajectories (1970-2050) for chosen variables and scenario. Emilio Mayorga, 12/15/2013
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / phreeqpy_gypsum_solubility.ipynb
Created December 9, 2013 02:38
#phreeqpy #geochem_models PHREEQC -- phreeqpy example. Taken directly from a Python example (section 3.2, Table 3) in Charlton & Parkhurst (2011), which compares gypsum solubility for WATEQ4F and Pitzer databases. Compiled and run on Linux Ubuntu 64bit. Emilio Mayorga, 12/8/2013. Charlton, S. R., Parkhurst, D. L. 2011. Modules based on the geoch…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emiliom
emiliom / WCGACSW_owslib_md_assess.ipynb
Last active December 27, 2016 03:55
#OWSLib #CSW #FGDC #Metadata #WCGA #Python Assess key FGDC metadata fields on the WCGA Ocean Data Portal OGC CSW endpoint. Use OWSLib to test accessing and querying the WCGA ODP CSW endpoint. Examine the FGDC metadata for each record, specially the messy and potentially duplicative fields (creator, publisher, date published). Emilio Mayorga. 11/…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.