geopyspark.geotrellis.neighborhood module¶
Classes that represent the various neighborhoods used in focal functions.
Note
Once a parameter has been entered for any one of these classes it gets converted to a
float if it was originally an int.
-
class
geopyspark.geotrellis.neighborhood.Circle(radius)¶ A circle neighborhood.
Parameters: radius (int or float) – The radius of the circle that determines which cells fall within the bounding box. -
radius¶ int or float – The radius of the circle that determines which cells fall within the bounding box.
-
param_1¶ float – Same as
radius.
-
param_2¶ float – Unused param for
Circle. Is 0.0.
-
param_3¶ float – Unused param for
Circle. Is 0.0.
-
name¶ str – The name of the neighborhood which is, “circle”.
Note
Cells that lie exactly on the radius of the circle are apart of the neighborhood.
-
-
class
geopyspark.geotrellis.neighborhood.Wedge(radius, start_angle, end_angle)¶ A wedge neighborhood.
Parameters: - radius (int or float) – The radius of the wedge.
- start_angle (int or float) – The starting angle of the wedge in degrees.
- end_angle (int or float) – The ending angle of the wedge in degrees.
-
radius¶ int or float – The radius of the wedge.
-
start_angle¶ int or float – The starting angle of the wedge in degrees.
-
end_angle¶ int or float – The ending angle of the wedge in degrees.
-
param_1¶ float – Same as
radius.
-
param_2¶ float – Same as
start_angle.
-
param_3¶ float – Same as
end_angle.
-
name¶ str – The name of the neighborhood which is, “wedge”.
-
class
geopyspark.geotrellis.neighborhood.Nesw(extent)¶ A neighborhood that includes a column and row intersection for the focus.
Parameters: extent (int or float) – The extent of this neighborhood. This represents the how many cells past the focus the bounding box goes. -
extent¶ int or float – The extent of this neighborhood. This represents the how many cells past the focus the bounding box goes.
-
param_1¶ float – Same as
extent.
-
param_2¶ float – Unused param for
Nesw. Is 0.0.
-
param_3¶ float – Unused param for
Nesw. Is 0.0.
-
name¶ str – The name of the neighborhood which is, “nesw”.
-
-
class
geopyspark.geotrellis.neighborhood.Annulus(inner_radius, outer_radius)¶ An Annulus neighborhood.
Parameters: - inner_radius (int or float) – The radius of the inner circle.
- outer_radius (int or float) – The radius of the outer circle.
-
inner_radius¶ int or float – The radius of the inner circle.
-
outer_radius¶ int or float – The radius of the outer circle.
-
param_1¶ float – Same as
inner_radius.
-
param_2¶ float – Same as
outer_radius.
-
param_3¶ float – Unused param for
Annulus. Is 0.0.
-
name¶ str – The name of the neighborhood which is, “annulus”.