Pages

Showing posts with label Krey Price. Show all posts
Showing posts with label Krey Price. Show all posts

Thursday, May 23, 2019

HEC-RAS Pub and Grub in Portland-June 27th-Reminder and short video preview!


For those of you who will be in the Portland Oregon area on June 27th, I invite you to join me for this special event Kleinschmidt is hosting at the Lucky Lab on Hawthorne.  I'll be joined by two dynamic and entertaining presenters: Krey Price of Surface Water Solutions and Sean Welch of BPA.  We will be talking about the fun side of hydraulic modeling, demonstrating some wild, creative, and somewhat wacky applications of HEC-RAS.  

Agenda:
  • What's New (and Coming!) with HEC-RAS
  • Automating HEC-RAS with the HECRASController
  • How to know when your HEC-RAS model is wrong
  • Using drones and Structure from Motion to prepare terrain surfaces for your HEC-RAS models.  
  • Crazy and absurd (but fun!) applications of HEC-RAS around the world
  • 2D Modeling of the Ice Age Missoula Floods

You don't want to miss this!  

Check out Krey Price's preview video for the HEC-RAS Pub and Grub!



It will be an informal, casual gathering with lots of time for Q&A.  Hope to see you there!  No RSVP needed.  Just show up a little early, get a pint, and grab a chair.  We'll start at 5:30 sharp and we have the pub until 8:30.

  Space may be limited, so make sure you get there on time!



Monday, January 21, 2019

Shifting web imagery with world files for HEC-RAS


Written by Krey Price  |  Surface Water Solutions
Copyright © The RAS Solution 2019.  All rights reserved. 

Using RAS Mapper as a GIS tool Part 2:
Shifting Web Imagery with World Files



Have you ever tried pulling web imagery into RAS Mapper only to find that it doesn't line up with your existing shape files, terrain surfaces, or other geospatial data?  In this second of a three-part series on using RAS Mapper as a GIS tool we'll cover the modification of world files for georeferencing.

Photo by Franck V. on Unsplash

In some cases, the misalignment of web imagery may result from an incorrectly applied projection file. If needed, projection files can be downloaded for free from spatialreference.org and other online data sources. You can check the projection of your terrain file by double-clicking on it in RAS Mapper, then select the "Source Files" tab and view the metadata using the Info column. 



If you have confirmed that the correct projection file is being used and you are still having issues, there are a few additional workarounds you may wish to try. One option is to select the "Alternate HEC-RAS Raster Warping Method" under "Tools | Options" in RAS Mapper. This method applies the gDAL OGR vector reprojection. I have found this method useful for resolving discrepancies in European data sets in particular.





In some cases, the alternate method doesn't do the trick either. RAS Mapper uses the ESRI projection file format, which as I understand it does not recognize TOWGS84 parameters and in some cases improperly applies the proj.4 projection parameters. In any case, you may find yourself stuck with misaligned web imagery.


One workaround is to save static images of your web imagery and then shift the image to the correct location by making adjustments to the world file (Wikipedia has a good summary of the six lines of code comprising a world file here).


Here's a video walk-through of the process:


https://youtu.be/5REWQ8Z_08I


The "World File Calculator" spreadsheet referenced in the video can be downloaded here:


http://www.surfacewater.biz/wp-content/uploads/2018/12/Surface-Water-Solutions-World-File-Calculator.xlsx


Here are the steps covered in the video:


1. Adjust transparency as needed so that you can see a known point in both the web imagery and in the survey or LiDAR data.
2. Using the measure tool in RAS Mapper, click on a known point from the web imagery (with incorrect location), then double-click on the the same known point based on the correct location.
3. Select "Copy coordinates to clipboard".
4. Zoom to preferred extents for results and save view (click here for further details on saved views and static imagery).
5. Right-click on web imagery and select "export layer". Note: RAS Mapper currently has two export options: tif and jpg. The tif format will embed the metadata and georeferencing information into the encoded text of a geotif file without generating a separate world file. A tfw file can still be created to override the embedded georeferencing, but I suggest using the jpg format so that the world file is automatically generated. Save the image (I suggest creating an "aerial imagery" subfolder within the current project's directory structure to store static images).
6. Open the world file calculator spreadsheet.
7. Paste the coordinates from RAS Mapper into the blue cell.
8. Open the newly created jgw file (jpg format world file) in a text editor and copy the values.
9. Paste the values into the "Original World File" column of the spreadsheet.
10. Copy the "New World File" values over the original values in the jgw file, save, and close.  
11. Under Map Layers in RAS Mapper, right-click and select "Add Existing Layer". Be sure to drag down file types to show all image files and browse to the newly created file.
12. Adjust transparency as needed to confirm common points are now co-located.

The process can be repeated to fine-tune the positioning. Because a static image won't be pyramided like web imagery, you will unfortunately need to complete these steps at every desired zoom level and view extent, the but the process of saving static images allows you to control the appearance of your figures without having to worry about losing your internet connection while presenting or viewing results.


Note that these steps assume the units and north alignment are the same (or close enough) between the data sets and that the static image can be simply shifted without scaling or rotation factors, which we'll cover in more detail in our next post.
Please let us know any feedback or suggestions for improvements or additional efficiencies in adjusting web imagery.


Wednesday, August 8, 2018

Terrain modification and direct rainfall: video walk-through

Written by Krey Price  |  Surface Water Solutions
Copyright © The RAS Solution 2018.  All rights reserved.

Terrain Modification


Two previous blog posts have addressed terrain modification in HEC-RAS (the December 2014 article entitled Including Channel Bathymetry into your Terrain and the June 2015 article entitled Lifting Terrain in HEC-RAS 5.0). These have been some of the most popular posts to date, each having generated almost 10,000 views over the years!

Interchangeably referred to as terrain interpolation, terrain lifting, terrain modification, or terrain manipulation, it is simply an export option in RAS Mapper that can be applied using any 1D geometry in your model.


We do still get a lot of questions about how to apply the technique to incorporate various structures, especially concerning the application of new features available in RAS Mapper. Can you use the terrain modification process, for example, to construct the following?
  • Buildings and building pads
  • Detention basins and ponds
  • Levees, bunds, and weirs
  • Dams, spillways, and outlet works
  • Canals and diversion drains
  • Roadways and bridge decks
  • Floodways or ford crossings
  • Channel dredging or excavation
The tool may have initially been intended for the interpolation of bathymetric cross sections, but as long as your feature can be represented with cross-sectional data, the answer is yes! This dam, for example, was constructed using a 1D HEC-RAS geometry, which was then exported as a geotif:




Rather than creating features, one of the most common uses of terrain modification is to remove features (such as a dam, levee, roadway, or bridge deck) from the terrain associated with a 2D model. This allows the feature to be modeled as a 1D element within a 2D flow area. A dam or levee in a 2D model, for example, cannot be breached unless the erodible or temporary portion of the terrain has first been removed.


Another common use of the terrain modification process is to lower the digital elevation model around a culvert. Because LiDAR data typically misses the actual invert elevation at a culvert inlet or outlet location (due to debris, vegetation, sedimentation, or inadequate resolution), and because HEC-RAS cannot accommodate the negative depths that would result from a below-ground culvert invert in a 2D Flow Area, the terrain around the inlet and outlet must typically be lowered before the plan will run. This can be done outside of HEC-RAS using GIS or 3D civil design software, or we can do it directly in HEC-RAS by exporting a geotif using a 1D geometry.
Here are the basic steps for modifying terrain in HEC-RAS, with RAS Mapper steps shown in red and Geometry Editor/Plan steps shown in blue: [Scroll down to the links below if you'd prefer to follow along with a video rather than following written instructions.]


  1. Create a new geometry in RAS Mapper (right-click on Geometry, select :Add New Geometry")
  2. Expand Rivers and start editing (right-click on Rivers, select "Edit Geometry")
  3. Delineate the centerline of the structure or feature you wish to incorporate
  4. Start editing Bank Lines by toggling on the layer and clicking on the layer name to make it active (magenta)
  5. Without crossing over any lines, delineate the bank lines on both sides of the centerline to cover the extents of your desired terrain modification (Note: you can omit this step, in which case HEC-RAS will automatically assign bank stations following the ends of the cross sections)
  6. Start editing Cross Sections by toggling on the layer and clicking on the layer name so that it appears in magenta
  7. Delineate at least two cross sections (cross all three of the lines once and only once with each section, delineating from left to right in the "downstream" direction)
  8. Right click on the geometry, select "Stop Editing" and save edits
  9. Close RAS Mapper
  10. Open Geometry Editor, select "File | Open", and browse to the newly created geometry file
  11. Select one of the cross section and choose "Edit Cross Section"
  12. Edit station-elevation points between bank lines manually or graphically (using icon or "Tools | Graphical Cross Section Editor")
  13. Repeat for each cross section that requires changes, save edits and close geometry editor
  14. Open RAS Mapper, right-click on geometry name and select "Export | Create terrain geotif from XS's (channel only)"
  15. Enter resolution (this does not need to be the same resolution as your LiDAR unless you're trying to get rid of no-data values, in which case it helps to have the resolutions match) and click ok
  16. Right-click on terrains and select "Create New RAS Terrain"
  17. Add the original and new terrains, adjusting the order to ensure the overriding terrain is on top (unless you're trying to get rid of no-data values, in which case the "underriding" terrain goes to the bottom)
  18. Rename hdf file with a descriptive name using the folder icon and select "Create"
  19. Right-click on the geometry that you wish to use with this terrain, select "Manage Terrain Associations" and use the drop-down menu to select the newly merged terrain file
  20. If you want to compare results with and without the change, save a new plan and geometry(keeping the original plan's geometry associated with the unedited terrain), and re-run the new plan
With those steps complete, you can compare the results with and without the changes. If you are working on an impact assessment, for example, you can then make further adjustments to your mitigating features (such as the size of a detention basin) to compensate for the impacts of development as required.


In the steps above, we could have exported a geotif for the entire cross section extent (in which case you wouldn't need to create bank lines) but my preference is to use the "channel only" option with bank lines as it gives you more control over what portion of the terrain will get adjusted between cross sections.


Also keep in mind that the 1D terrain modification geometry can be a complete, "runnable" 1D geometry, or it can exist solely for refinement of the digital elevation model (as highlighted below, it can essentially be an orphan file that is not associated with any flow or plan files).










Video Walk-through


Following are some instructional videos that step you through the process of modifying terrain in HEC-RAS:
  • Part 1 covers the addition of bathymetry
https://youtu.be/QyrOhkJZPhI


  • Part 2 covers the removal of no-data values
https://youtu.be/OzZQKBbaC2A


  • Part 3 covers the incorporation of dams, levees, buildings, etc. into the terrain
https://youtu.be/x4jWLjMx8zQ






[And just for fun, if you want to see some results where we've used terrain modification to sever Denmark from mainland Europe by slicing a big canal from the North Sea to the Baltic Sea (while also answering the question of how big a tsunami would be needed to be to reach the Alps!) have a look at the results here.]
http://www.surfacewater.biz/terrain/










Direct Rainfall


On to our next topic of the day: Continuing improvements to hardware, software, and meteorological data availability are allowing the increased application of direct precipitation or rain-on-grid modeling around the world, blurring the lines between hydrological and hydraulic software applications.


Adding direct rainfall to your 2D Area is quite a simple process in HEC-RAS. Here is a demonstration of a very basic rain-on-grid model setup:


https://youtu.be/c2rL8zvLvuE

Getting meaningful results out of a rain-on-grid model, however, can be a bit more tedious. Here are a few considerations to keep in mind:
  • Rain-on-grid models typically take a very long time to run, because every cell in your 2D Flow Area gets wet (as opposed to inflow-based flood models that can have many dry cells)
  • Simulation time windows can be very long, since they need to capture the entire time of concentration for the catchment or watershed
  • The steepness of the hill slopes within the watershed or catchment can sometimes exceed maximum limitations for 1D and 2D models (as covered in the discussion associated with this blog post about boundary conditions
  • Roughness values in sheet flow areas with shallow depths can vary significantly from typical values
  • Infiltration and other losses must be removed from rainfall depths (entered as rainfall excess only) before being applied in HEC-RAS
Additional Considerations


If you try to combine terrain modification with direct rainfall, there are some further considerations to be aware of. If you have used terrain modification to incorporate a building or bridge face with vertical walls, for instance, the rain falling on the flat surface would then need to flow over a vertical surface to transfer to the ground. This obviously exceeds HEC-RAS slope thresholds, and the velocities associated with a vertical drop will be erroneous. The presence of vertical faces in rain-on-grid models can give substantial errors, so it may not be suitable for these settings. (You could alternatively represent the buildings as polygons with really, really high roughness values).


That said, direct precipitation modeling is becoming increasingly common, and with proper calibration, the catchment response can be modeled in much more detail than in a typical rainfall-runoff model.


Free rain-on-grid webinar


So what are the latest rain-on-grid developments in HEC-RAS?




Coming up on August 14 (15th in Asia and Europe) ICE WaRM will be hosting a free webinar covering the use of direct rainfall in HEC-RAS. Registration links to the webinar along with recordings of previous webinars can be accessed here. The webinar will address the following topics:




* Basic demonstration and animation of a rain-on-grid model setup and results
* Discussion of rain-on-grid principles and how it is conceptually different from regular flood modeling (including considerations for roughness, tolerances, sheet flow paths, etc.)
* Introduction of what is under development with HEC-RAS Version 5.1 to improve rainfall-runoff modeling capabilities (including infiltration, spatially varying precipitation, depth-varying roughness, etc.)
* Where the industry is heading with the use of hydraulic models as rainfall-runoff models, including the application of radar-based gridded rainfall data.
Thanks for tuning in and be sure to let us know how you're using HEC-RAS and if there are suggestions for future blog topics!

For anyone interest who didn't get a chance to catch it live, the rain-on-grid webinar recording is now available here: https://youtu.be/mi-x52-0Id4





















Tuesday, August 29, 2017

Having fun with HEC-RAS?

Written by Krey Price  |  Director, Surface Water Solutions
Copyright © The RAS Solution 2017.  All rights reserved. 


I’ve been seeing some cool applications of HEC-RAS from around the world lately. Here are some articles showing a few ways we’ve been putting HEC-RAS to use down under.

Making Middle Zealand
Did you know that the only thing keeping New Zealand’s two main islands from being split into three is a little 2-km wide piece of land just south of Auckland? What do you think would happen if you dug a ditch through this strip? Last time I drove across it, I asked myself that question…and then I let HEC-RAS tell me the answer! This article covers terrain manipulation and tidal boundary conditions in HEC-RAS with the construction of a canal that severs Northland from New Zealand’s North Island. The tides on either side of the island are out of phase with each other, so you get some really cool mixing with the alternating current. Have a read and give it a shot yourself!


  
Creating Rating Curves in HEC-RAS 2D Models
HEC-RAS does a great job providing you with rating curves for 1D models, but how about 2D? It takes a bit of additional effort, but this article walks you through the process of generating a rating curve from your existing 2D model. You may find – as we did in the example covered in the article – that the uncertainties in your rating curve are greater than you thought. Try it yourself by following along with this example, and see if you find yourself wanting to recalibrate your gauge!














Disappearing Terrain?
Do you get frustrated when your terrain disappears in HEC-RAS? Don’t fret, here are some simple workarounds for getting it back!  
 
My HEC-RAS Wish List
Speaking of workarounds, the HEC Spring 2017 Newsletter included a preview of what's new in Version 5.1 (see article on Page 20). They'll be adding some handy new features, but here's my HEC-RAS wish list that includes a compilation of suggestions gathered from hundreds of course attendees over the last year and a half since Version 5.0 was released. You may wish to submit your own on the Forum Page of the The RAS Solution.



Wednesday, September 21, 2016

HEC-RAS Dam Breach course in New Zealand!

Limited-time early-bird discounts available

Registrations are now available for our dam breach course in Auckland, New Zealand to be held from 29 November to 1 December 2016.  I will be teaching this course with help from Mr. Krey Price of Surface Water Solutions.  Please come and join us!

We have fewer than ten places remaining, so please register soon to confirm your place!
A $250 early-bird discount is available using coupon code “earlybird” at checkout.
Our agenda will cover unsteady flow, level pool versus dynamic routing, breach parameters, setting up a dam breach model, diagnosing and fixing dam breach models, and presentation of 1D and 2D case studies. Hope to see you there!