added fresnel zone
This commit is contained in:
Binary file not shown.
@@ -70,6 +70,8 @@ class FresnelProfileSample(BaseModel):
|
||||
clearance_m: float
|
||||
fresnel_radius_m: float
|
||||
required_clearance_m: float
|
||||
fresnel_upper_60pct_m: float
|
||||
fresnel_upper_100pct_m: float
|
||||
fresnel_lower_60pct_m: float
|
||||
fresnel_lower_100pct_m: float
|
||||
type: Literal["terrain", "building", "canopy"]
|
||||
|
||||
Binary file not shown.
@@ -130,6 +130,8 @@ def los(
|
||||
clearance_m=sample.clearance_m,
|
||||
fresnel_radius_m=sample.fresnel_radius_m,
|
||||
required_clearance_m=sample.required_clearance_m,
|
||||
fresnel_upper_60pct_m=sample.path_height_m + sample.required_clearance_m,
|
||||
fresnel_upper_100pct_m=sample.path_height_m + sample.fresnel_radius_m,
|
||||
fresnel_lower_60pct_m=sample.path_height_m - sample.required_clearance_m,
|
||||
fresnel_lower_100pct_m=sample.path_height_m - sample.fresnel_radius_m,
|
||||
type=sample.obstruction_type,
|
||||
|
||||
Binary file not shown.
@@ -86,6 +86,8 @@ def test_los_endpoint_returns_obstruction_summary_fields() -> None:
|
||||
"path_height_m",
|
||||
"fresnel_radius_m",
|
||||
"required_clearance_m",
|
||||
"fresnel_upper_60pct_m",
|
||||
"fresnel_upper_100pct_m",
|
||||
"fresnel_lower_60pct_m",
|
||||
"fresnel_lower_100pct_m",
|
||||
}.issubset(data["fresnel_profile"][0])
|
||||
|
||||
Reference in New Issue
Block a user