Skip to content

Use pyhydrogeo to get land use at specific lat / lon #79

Answered by cheginit
kovar-ursa asked this question in Q&A
Discussion options

You must be logged in to vote

@kovar-ursa Good morning!

Answer to your questions:

  1. You will still get a dataset that you need to pass to cover_statistics function to get the summaries. Since resolution of NLCD is 30 m, it's best if you set the resolution to 30 m and use a bounding box with 30 m sides around the point of interest.
  2. If by text you mean the land cover type you can do something like this:
stats = gh.cover_statistics(lulc.cover_2019)
type_max = max(stats, key=stats.get)

However, the current implementation of nlcd function is not meant for point-based requests. I can see a couple of ways for implementing an efficient function for this specific purpose. Since this can be a useful feature for other users as w…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kovar-ursa
Comment options

Answer selected by kovar-ursa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants