You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods __contains__, overlaps, overlap_rate, intersection, contains, get_area implemented in BaseDefinition class employs a polygon defined by the centroid of the pixel corners of the SwathDef / AreaDef to perform the geometrical computations.
While this works correctly for many classical AreaDefinition, for:
SwathDefinition, the corners of lats/lons arrays does not provide meaningful values in the case of ascending and descending orbits within SwathDefinition ...
Definition of boundary method for SwathDefinition and AreaDefinition to retrieve AreaBoundary class
Definition of SphPolygon from AreaBoundary using self.polygon()
Enhancement of spherical.py geometrical operations
Upgrade of BaseDefinition methods to use self.boundary().polygon().<method>(...)
Draft PR coming in the next days ...
The text was updated successfully, but these errors were encountered:
ghiggi
changed the title
__contains__, overlaps, overlap_rate, intersection, get_area methods provide errors/wrong results for SwathDef, polar/geos AreaDef __contains__, overlaps, overlap_rate, intersection, get_area methods provide errors/wrong results for geos AreaDef / SwathDef
Jan 4, 2022
Problem description
The methods
__contains__
,overlaps
,overlap_rate
,intersection
,contains
,get_area
implemented in BaseDefinition class employs a polygon defined by the centroid of the pixel corners of the SwathDef / AreaDef to perform the geometrical computations.While this works correctly for many classical AreaDefinition, for:
Code example for GEO AreaDef
Proposed solution:
boundary
method for SwathDefinition and AreaDefinition to retrieveAreaBoundary
classSphPolygon
fromAreaBoundary
usingself.polygon()
BaseDefinition
methods to useself.boundary().polygon().<method>(...)
Draft PR coming in the next days ...
The text was updated successfully, but these errors were encountered: