Data | Source | Link |
---|---|---|
Yosemite National Park polygon | WDPA: World Database on Protected Areas (polygons) | https://developers.google.com/earth-engine/datasets/catalog/WCMC_WDPA_current_polygons |
100-hour dead fuel moisture | GRIDMET: University of Idaho Gridded Surface Meteorological Dataset | https://developers.google.com/earth-engine/datasets/catalog/IDAHO_EPSCOR_GRIDMET |
Wind direction | GRIDMET: University of Idaho Gridded Surface Meteorological Dataset | https://developers.google.com/earth-engine/datasets/catalog/IDAHO_EPSCOR_GRIDMET |
Wind velocity | GRIDMET: University of Idaho Gridded Surface Meteor |
View wfm_table_1.md
View haversine_distance.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
x_dist = math.radians(lon2-lon) | |
y_dist = math.radians(lat2-lat) | |
y1_rad = math.radians(lat) | |
y2_rad = math.radians(lat2) | |
a = math.sin(y_dist/2)**2 + math.sin(x_dist/2)**2 \ | |
* math.cos(y1_rad) * math.cos(y2_rad) | |
c = 2*math.asin(math.sqrt(a)) | |
distance = c * 6371 # kilometers | |
print() |