Generic Lake Model (GLM) 1. High Profile Water Quality Issues.

Slides:



Advertisements
Similar presentations
WHAT IS STEAM PRO? Thermoflow, Inc.
Advertisements

Flood Profile Modeling with Split Flows and Weirs
1 Sylvia Murphy National Center for Atmospheric Research File Handling with CMPS.
Fluidyn FLOWCOAST FLOOIL 3D Fluid Dynamics Model to Simulate Oil slick movement in coastal waters or rivers FLOOIL.
Post-processing J.Cugnoni, LMAF/EPFL, Finite element « outputs » Essential variables:  Displacement u, temperature T find u such that : K u = f.
Emerging Flux Simulations Bob Stein A.Lagerfjard Å. Nordlund D. Benson D. Georgobiani 1.
Dr. Martin T. Auer MTU Department of Civil & Environmental Engineering ENVE5504 Surface Water Quality Modeling Lab 4. One-Dimensional Models Vertical Mass.
Momentum flux across the sea surface
Introduction to SPSS Descriptive Statistics. Introduction to SPSS Statistics Program for the Social Sciences (SPSS) Commonly used statistical software.
CHAPTER 3: SIMPLE MODELS
STEAM PRO is a highly automated system design tool – a heat balance program specifically intended for design of steam power cycles.  Use STEAM PRO to.
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Pomme de Terre Lake Water Quality Summary Pomme de Terre Lake Water Quality Summary US Army Corps of Engineers Environmental Resources Section.
David Burger, David Hamilton 1, Conrad Pilditch 1, Julie Hall 2 & Max Gibbs 2 Nutrient dynamics in Lake Rotorua 1 Department of Biological Sciences, University.
Reiner Schlitzer Alfred Wegener Institute for Polar and Marine Research Ocean Data View - Available Data Collections and Data Model.
Chapter 1: Introduction
JSS17BIO1Huttula Lecture set Temperature models.
Geospatial Data Abstraction Library (GDAL) Enhancement for ESDIS (GEE) Increasing Accessibility and Interoperability of NASA Data Products with GIS Tools.
OPL MRR Viewer Tutorial David Stark North Carolina State University 31 Jan 2008.
Ocean Chemistry Unit 5.  The chemical properties of the ocean are important to understand because the marine environment supports the greatest abundance.
Courtney K. Harris Virginia Institute of Marine Sciences In collaboration with Katja Fennel and Robin Wilson (Dalhousie), Rob Hetland (TAMU), Kevin Xu.
Lesson 2 How To Create a MOHID Project 19 Março 2013
Regional GEM 15 km OPERATIONAL 48-h RUN (00 or 12 UTC) EVENT GEM-LAM 2.5 km GEM-LAM 1 km MC2-LAM 250 m T+5 T+12 T-1 T-3 36-h run 15-h run 6-h run Microscale.
Water Quality Data, Maps, and Graphs Over the Web · Chemical concentrations in water, sediment, and aquatic organism tissues.
Hans Burchard Leibniz Institute for Baltic Sea Research Warnemünde How to make a three-dimensional numerical model that.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Biogeochemical Controls and Feedbacks on the Ocean Primary Production.
Regional Advanced School on Physical and Mathematical Tools for the study of Marine Processes of Coastal Areas Physical and Biogeochemical Coupled Modelling.
Understanding the USEPA’s AERMOD Modeling System for Environmental Managers Ashok Kumar Abhilash Vijayan Kanwar Siddharth Bhardwaj University of Toledo.
VERTICAL STRUCTURE OF THE OCEAN – from Knauss Chapters 1 and 2 Oceanographers divide the ocean into zones.
1. TYPICAL TEMPERATURE PROFILES (from Pinet, 1998) Thermocline is a range of depths.
Modflow, GWVistas MODular three-dimensional finite- difference ground-water FLOW model
4. Atmospheric chemical transport models 4.1 Introduction 4.2 Box model 4.3 Three dimensional atmospheric chemical transport model.
CE 394K.2 Hydrology, Lecture 2 Hydrologic Systems Hydrologic systems and hydrologic models How to apply physical laws to fluid systems Intrinsic and extrinsic.
 Instrumentation  CTD  Dissolved Oxygen Sensor  ADCP/ Current Meters  Oxygen Titrations  Nutrient Concentrations Circulation and Chemical Tracer.
WRF Four-Dimensional Data Assimilation (FDDA) Jimy Dudhia.
Ice Cover in New York City Drinking Water Reservoirs: Modeling Simulations and Observations NIHAR R. SAMAL, Institute for Sustainable Cities, City University.
The Littoral Sedimentation and Optics Model (LSOM)
Climate Related Variations In Lake Mixing Dynamics: 5.6 M Arctic and Subarctic Lakes 0.5 ha or larger in NA. Courtesy of Yongwei Sheng. Arctic lakes, North.
Properties of Seawater Density review Mixing Dissolved Gases.
1 Marginal Thermobaric Stability in the Weddell Sea Miles McPhee McPhee Research Company.
 DEM from USGS ◦ Digitized version of 1:24,000 topo quadrangle ◦ Vertical accuracy  5m, 30m resolution  KML files, digitized from Google Earth.
Modelling 2: Introduction to modelling assignment. A basic physical-biological model. Model equations. Model operation. The assignment.
Oceans. Ocean-Atmosphere Links Exchange of water, carbon dioxide and heat. Surface ocean currents are driven by atmospheric circulation. Oceans and atmosphere.
Emerging Flux Simulations & semi-Sunspots Bob Stein A.Lagerfjärd Å. Nordlund D. Georgobiani 1.
Class 8. Oceans Figure: Ocean Depth (mean = 3.7 km)
Lecture 6 - Single Variable Problems & Systems of Equations CVEN 302 June 14, 2002.
CHANGSHENG CHEN, HEDONG LIU, And ROBERT C. BEARDSLEY
Upstate Freshwater Institute Markensten et al. NYWEA 2008 Simulating multiple functional groups of phytoplankton in Cannonsville Reservoir Hampus Markensten.
Biogeochemical Controls and Feedbacks on the Ocean Primary Production
President UniversityErwin SitompulSMI 1/1 Dr.-Ing. Erwin Sitompul President University Lecture 1 System Modeling and Identification
1 Berger Jean-Baptiste
Heat budgets Significant impacts on water quality - Physical processes (thermal stratification), chemical and biological transformations of matters in.
Computer – Aided Design Terminology You must have a generic understanding of commands and techniques which are used in a number of packages (YOU CANNOT.
EVT61 EVAPOTRANSPIRATION PACKAGE. EVT62 EVAPOTRANSPIRATION PACKAGE The Evapotranspiration (ET) Package simulate the effects of plant transpiration and.
Interfacing Model Components CRTI RD Project Review Meeting Canadian Meteorological Centre August 22-23, 2006.
SimSphere SVAT model SimSphere is available for free from Aberystwyth University, UK:
NEMO – Reformating tool
Andrew White, Brian Freitag, Udaysankar Nair, and Arastoo Pour Biazar
WindNinja Model Domain/Objective
Spatial Analysis: Raster
Introduction to Land Information System (LIS)
Computing cloudy radiances
Spatial Analysis: Raster
Mid Atlantic Water Property Measurements W. S
Functions continued.
Instituto Superior Técnico instituto superior técnico
Ocean Characteristics and Technology
GHOST (Generic Hydrologic Overland-Subsurface Toolkit)
Presentation transcript:

Generic Lake Model (GLM) 1

High Profile Water Quality Issues

Model Summary Lagrangian layer structure allowing layers to expand, contract, split or merge depending on available energy and required energy to establish/overcome density gradients Within a layer, water quality properties are homogeneous (more layers during stratified period) Diffusion between layers below the surface mixed layer Chemical constituents subject to mixing, diffusion, atmospheric exchange, sediment fluxes, phytoplankton uptake, respiration, mineralization, etc. Sediment fluxes described by a Monod equation modified by Arrhenius temperature scaling 3

Example Chemical Mass Balance 4

Model Components GLM: General Lake Model; 1-D lake water balance, energy budget, vertical stratification FABM: Framework for Aquatic Biogeochemical Models; couples hydrodynamics and biogeochemistry AED: Aquatic Ecodynamics; set of modules describing chemical and biological processes 5 Required Files: Driver Data inflow file(s) outflow file(s) meteorological file Configuration Files glm.nml fabm.nml aed_phyto_pars.nml (?) aed_zoop_pars.nml (?) Application/Executables Located at../../bin/glm64/ v1.4.0 bin glm32 exe glm64 exe sim sim2 files sim1 files

What you need… GLM input files and application files R (& RStudio?) Package: ncdf4 ( Package: rGLM (no longer available online) Package: glmtools ( R/glmtools) R/glmtools Package: pragma27 (local from Gabriel)

Reading modeled data from NetCDF Model outputs data to NetCDF in 4 dimensions: latitude, longitude, depth, and time Because 1-D model, lat and long are fixed (essentially 2-D output through depth and time) ncvar_get {ncdf4} extracts a matrix (2D) of state variable values in each layer (up to max layers) and at each time step (interval controlled by nsave in glm.nml) Using other GLM output data (number of layers [NS] and height top of layer above bottom [z]), the functions of interest (getTempGLMnc, get_temp, get_state_var) convert this information to rounded elevation or depth information

Example Layer #\timestept1t2t3t … … …24.1NA …1000NA Matrix “z” has same dimensions (and same missing value positions), and can be used to convert layer # to depth from lake surface 9.96e+36 value is the missing value Sample temperature data from ncvar_get:

R tools: rGLM [getTempGLMnc] --Old function for getting temperature data from NetCDF Usage: getTempGLMnc(GLMnc, lyrDz, ref, z.out) GLMnc: [NC object] as returned by nc_open() lyrDz: [numeric value] depth interval ref: [character string] either “surface” or “bottom”; determines 0 reference (depth or elevation) z.out: [numeric vector] optional; vector of discrete depths to interpolate (lyrDz not used if z.out is supplied)

R tools: glmtools [get_temp] -- New function for getting temperature data from NetCDF Usage: get_temp(file, reference, z.out, t.out) file: [character string] path to the ‘output.nc’ file reference: [character string] same as ‘ref’ for getTempGLMnc z_out: [numeric vector] vector of discrete depths at which data should be interpolated t_out: [POSIXct vector] optional vector of datetimes for which to return data (if missing, all available time points returned)

R tools: pragma27 [get_state_var] -- General function to get any state variable data from the NetCDF Usage: get_state_var(nc_file, var_name, reference, lyrDz, z_out, t_out, precision) nc_file: [character string] path to ‘output.nc’ file var_name: [character string] name of state variable in the NetCDF reference: [character string] same as get_temp lyrDz: [numeric value] same as getTempGLMnc z_out: [numeric vector] optional; same as get_temp t_out: [POSIXct vector] optional; same as get_temp precision: [character string] optiona; one of “hour” or “day”; not imporant here..

Differences between functions Whether NC object is saved in R memory (getTempGLMnc) or not (get_temp, get_state_var) Whether depths must be explicitly specified (get_temp) or inferred from an increment and lake depth (getTempGLMnc, get_state_var) Whether times can be specified (get_temp, get_state_var) or all available times are automatically extracted (getTempGLMnc) Important thing is how the NetCDF data (& NC object) are handled, how depths are interpolated, and how data is converted from height above bottom to depth below surface

Compute Times getTempGLMnc: 5.8 seconds get_temp: 3.2 seconds get_state_var: 3.6 seconds All return the same data: – data.frame with datetime in first column and time series data at discrete depths in the subsequent columns

Challenge Design a function that minimizes the time to return a data frame of the same format from get_temp or get_state_var Focus on: – Handling of NC object – Interpolation of data – Switching reference from bottom to surface of lake

3-D lake model diagram: Lake aerial view: pinnest.net/wordsworth-lake/pinnest.net/wordsworth-lake/ Louisiana Fishkill (+ NG logo): kill-louisiana-gulf-oil-spill-dead-zone-science-environment/ kill-louisiana-gulf-oil-spill-dead-zone-science-environment/ Toledo Water: faces-second-day-of-water-ban.htmlhttp:// faces-second-day-of-water-ban.html Qingdao Algae Bloom (+ NY Times logo): =0 =0 Example chemical mass balance from GLM user manual for v1.3.2 (now see v1.4.0 manual): Cogs diagram: