justinperline / samegrassbutgreener

0 stars 0 forks source link

Calculate Elevation #6

Closed justinperline closed 10 months ago

justinperline commented 10 months ago

For every census-designated place, I should be able to retrieve an elevation/altitude value. Not too concerned about variation intra-place since this will serve as more of a broad marker than something needing perfect precision. As a result, using place centroid should be fine.

Early leads: https://cran.r-project.org/web/packages/elevatr/vignettes/introduction_to_elevatr.html https://stackoverflow.com/questions/68241139/how-to-extract-altitude-above-sea-level-given-latitude-and-longitude

justinperline commented 10 months ago

This was fairly easy to do with the help of the elevatr package. Stored elevation in feet.

Code: https://github.com/justinperline/samegrassbutgreener/blob/main/code/elevation.R