Open shrouxm opened 5 months ago
@DerekCaelin This is an issue with missing data in the SSURGO database. SoilWeb returns missing LCC fields for this particular component.
So, there is not an issue with the algorithm. We should figure out how to present this lack of information from SSURGO. Jon will reach out to SSURGO asking how we should report missing LCC.
Derek to talk with @CourtneyLee333 about this.
In other places where our external sources are missing data we say "None Available". Do we need a different pattern here?
I'd be fine with that. It looks like the solution we are proposing is:
IF Soil ID LCC returns nan
or none
(e.g. for the "Cheshire" soil available at 41.65192, -72.68794
) THEN display "Not available" - does that sound right?
If that makes sense to the soil scientists in the house, then yes. If there is a more nuanced message we can deliver that would be good to know.
@shrouxm could you take on the solution described above? ☝️
Description
Sometimes the LCC values for
list_soils
are"nan"
or"None"
. Not sure if this is due to missing data or an algorithm bug. Either we, we should return better values than"nan"
or"None"
.Steps To Reproduce
Query
list_soils
with the coordinates{"lon": -122.084000, "lat": 37.422000}
.Solution
nan
ornone
, display"Not available"
in pbody1 style.Actual behavior
LCC values render as
"nan"
or"None"
Additional context
Example result json: