Python Forum
National Flood Hazard Layer (NFHL) files extraction
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
National Flood Hazard Layer (NFHL) files extraction
#1
Noob looking for some guidance with the following task.

Use Python to extract flood hazard info from National Flood Hazard Layer (NFHL) site using any given lat/long point.

Specifically:
1% Annual Chance Flood Hazard
Regulatory Floodway
Special Floodway
Area of Undetermined Flood Hazard
0.2% Annual Chance Flood Hazard
Future Conditions 1% Annual Chance Flood Hazard
Area with Reduced Risk Due to Levee
[Image: aedrsQB]

my code here
Reply
#2
This looks like homework. What have you tried? How exactly is it not working?
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
rough draft here:

The script will load a NFHL file for a county:

   nfhl_layers = fiona.open(county_nfhl_file_path)
   nfhl_layer_1 = shape(nfhl_layers['geometry']

   lat = 26.317777, 
   long= -80.100142

## This function returns true if that point is in the layer and false if it is not.

   def is_lat_long_in_nfhl_layer(lat, long, nfhl_layer):
   pass

   print is_lat_long_in_nfhl_layer(lat,long, nfhl_layer_1)

   def get_nfhl_predicates(lat,long):
......
   return {"1%_annual_chance" : percent_chance_1, "0.2%_annual_chance": percent_chance_0_point_2, .....}
It needs to use Shapely, Fiona or any other Python GIS package where it can be installed using pip or conda.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Data extraction from (multiple) MS Word file(s) in python Den0st 8 7,768 Sep-19-2019, 10:07 PM
Last Post: Den0st

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020