CT DEEP

‘Conducting research is a bit like parenting. Raising a child involves a lot of cleaning and tidying, setting standards, and maintaining order, all of which goes completely unnoticed and for which the parent receives absolutely no credit.

Similarly, producing a bright, shiny result from the raw beginnings of a research project involves a lot of work that is almost never seen or acknowledged.'

-Paul Murrell ‘Introduction to Data Technologies’ (Emphasis Added)

‘The database upgrade should be highest priority…
If this project fails you might as well send everybody home.'

-Ernie Pizzuto (Former Supervising EA, Monitoring and Assessment Program)

awx
adaptive management
awx
awx
WQX Web API

					# GET Request to Start Import from Local Server to WQX Web
						 base = 	'https://cdx.epa.gov/WQXWeb/api/StartImport?importConfigurationId='
					file_id = 	fileID[0]
							end = 	'fileType=XLSX&' \
											'newOrExistingData=0&' \
											'uponCompletion=0&' \
											'uponCompletionCondition=0&' \
											'worksheetsToImport=1&' \
											'ignoreFirstRowOfFile=true'
					import_uri = base+config_id+'&fileId='+file_id+'&'+end
					dataset_id = []
					wqx_request('GET', user_id, user_key, import_uri, None, dataset_id)
					

awX mission statement awX is a data management system for storing, retrieving and exploring ambient water data collected by CT DEEP with a goal of providing a fluid data exchange with staff and the public to facilitate and support science-based environmental decision making

In time the system will support ambient water quality, continuous water quality (e.g. temp / conductivity / DO / flow), and stream connectivity (trail camera) data.

awx
awqX
Database Schema DB Schema
awX
Internal Portal awx portal
awx schemas
Interconnected system advantages

						-- SQL Query Joining Data from Different Schemas 
						-- (awqx DB & cont DB)
						SELECT 	temperature.probeID,temperature.staSeq,
										stations.locationName, stations.subBasin,
										temperature.result,temperature.uom
						FROM 		cont.temperature
						JOIN 		awqx.stations ON stations.staSeq = temperature.staSeq
						WHERE 	temperature.staSeq = 15796;
					

Reusuable components under one umbrella in different schemas

foundational web tech
Water Quality Portal Web Service Query

						// Import results directly from DB web service
						var strt = 'https://www.waterqualitydata.us/data/'
						var rsrc = 'Result/search?'
						var styp = 'siteType=Stream&'
						var orgn = 'organization=CT_DEP01_WQX&'
						var chrt = 'characteristicName=Specific%20conductance&'
						var rtpf = 'mimeType=csv&zip=no&dataProfile=resultPhysChem&providers=STORET'

						var rurl = strt + rsrc + styp + orgn + chrt + rtpf
						// 'https://www.waterqualitydata.us/data/Result/search?siteType=Stream&organization=CT_DEP01_WQX&characteristicName=Specific%20conductance&mimeType=csv&zip=no&dataProfile=resultPhysChem&providers=STORET'
					

Customizable query to get specific results

https://www.waterqualitydata.us/webservices_documentation/ wqp web services guide
https://www.waterqualitydata.us wqp query
https://ctdeepwatermonitoring.github.io/beachReport/2021 beach report
https://marybecker.github.io/CT_WQX_Chem/ ct chem rpt
https://marybecker.github.io/CTbloomWatch/ ct bloomwatch
acknowledgements
acknowledgements
Monitoring and Assessment Data Management and Visualization Applications Links
https://ctdeepwatermonitoring.github.io/
awX Active Development Project
2021 CT Beach Monitoring Report
DRAFT CT bloomWatch*
DRAFT CT Chemistry Report*
Stream Health Multi-Metric Indicator (MMI) Model Map
LIS Hypoxia Report
CT Volunteer Water Monitoring Map
BCG 305(b) Assessments Map
Bio-Integrity in CT Streams - Clean Water Act Implementation*
DRAFT High Quality Stream Vulnerability*
Cold Water Habitat Map
DRAFT Phis_Viz - Phylogenetic Indicator Species Data Visualizer*

* Indicates that the map is in draft form or was a project developed as part of UKY coursework.
questions