sky view factor for ISOFIT#735
Conversation
|
Per conversation with Niklas, I am also bringing in logic to ensure cos_i respects bounds 0-1 within check_coszen_and_cos_i() . Mathematically cos ranges -1 to 1. But from a radiative transfer standpoint, it must be capped from 0-1. |
|
@brentwilder I ran a very quick test (single pixel inversion with the 1c model, sky view factor assumed to be 1) and couldn't observe any difference in retrieved reflectance between |
|
@pgbrodrick on the conversation of computing skyview from LOC files: I computed a test case for Copernicus DSM if we only had extent of EMIT image (A), and compared this with the larger, buffered one from above (B).
If you zoom in, you can see case (A) here often has positive bias (blue) along the edges. This is due to horizon calcs not having this information on the edges. I used same logic from topo-calc on the edges, where this point is its own horizon when difference in indices are zero (https://github.com/USDA-ARS-NWRC/topocalc/blob/main/topocalc/core_c/hor1d.c#L225) . But it gets more difficult than just the pure edge case, as you can see error may leak in further into the image depending on terrain. |
|
Thanks for double-checking, @brentwilder! Great that it works on your end now too. From my perspective, we’re good to go. @pgbrodrick Feel free to merge this in. |






Changes