Fix BadBooleanError when HRRR data is nil in propagation analysis
This commit is contained in:
parent
f02b111c1f
commit
86b6c0db31
1 changed files with 1 additions and 1 deletions
|
|
@ -1034,7 +1034,7 @@ defmodule MicrowavepropWeb.ContactLive.Show do
|
||||||
defp propagation_mechanism(terrain, elevation_profile, hrrr, soundings, dist_km) do
|
defp propagation_mechanism(terrain, elevation_profile, hrrr, soundings, dist_km) do
|
||||||
blocked? = terrain && terrain.verdict == "BLOCKED"
|
blocked? = terrain && terrain.verdict == "BLOCKED"
|
||||||
ducting? = has_ducting?(hrrr, soundings)
|
ducting? = has_ducting?(hrrr, soundings)
|
||||||
enhanced_refraction? = hrrr && is_number(hrrr.min_refractivity_gradient) and hrrr.min_refractivity_gradient < -100
|
enhanced_refraction? = hrrr != nil && is_number(hrrr.min_refractivity_gradient) && hrrr.min_refractivity_gradient < -100
|
||||||
long_path? = dist_km && dist_km > 100
|
long_path? = dist_km && dist_km > 100
|
||||||
|
|
||||||
ducts = elevation_profile && elevation_profile.ducts || []
|
ducts = elevation_profile && elevation_profile.ducts || []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue