cal-adapt / climakitae

A Python toolkit for retrieving, visualizing, and performing scientific analyses with data from the Cal-Adapt Analytics Engine.
https://climakitae.readthedocs.io
BSD 3-Clause "New" or "Revised" License
21 stars 2 forks source link

Fosberg Derived Index fix where statements reclassing data incorrectly #308

Closed elehmer closed 9 months ago

elehmer commented 9 months ago

This PR changes the way the Fosberg Fire Index is generated. Removes 2 where statements that tried to reclass values < 0 and > 100 to 0 and 100. Unfortunately, the xr.where statements reclassified data outside of the spatially clipped region. PR uses np.clip to clip values outside of [0-100] to the boundary values.

elehmer commented 9 months ago

Everyone happy with the functioning of this now?