Gionata Ghiggi
Gionata Ghiggi
#### Code Sample, a minimal, complete, and verifiable piece of code Calling `SwathDefinition.update_hash()` after having sliced the objects raises an error. ```python import numpy as np from pyresample import SwathDefinition...
This PR provides a refactoring of `spherical.py`, introduces new methods and solves long-standing issues. This PR is required for a future PR addressing the missing methods/option for cropping/slicing of `SwathDefinition`...
Add aggregate/downsample, upsample, extend and reduce methods to AreaDefinition and SwathDefinition
This PR aims to provide the methods to aggregate/downsample, upsample, extend and reduce AreaDefinition and SwathDefinition objects. For SwathDefinition objects, it returns a new objects with the same inputs lats/lons...
#### Problem description `SwathDef.aggregate` currently works only if SwathDefinition is defined by passing lons/lats `xr.DataArray` with `lons` and `lats` dimensions and dask arrays. #### Code Sample ```python import numpy as...
#### Problem description This issue addresses the current inaccurate computation of integer indices from (float) array indices. This can cause errors in many methods related to indices retrieval (see below)...
#### 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 /...
#### Problem description Currently, the method `AreaDefinition.__getitem__` [(L2436 of geometry.py)](https://github.com/pytroll/pyresample/blob/main/pyresample/geometry.py#L2436), when performing AreaDefinition slicing, it discards the possible precomputed lons/lats arrays attached to the class instance. In the case of...
#### Problem description Despite being already deprecated in favour of `get_array_indices_from_projection_coordinates`, `get_xy_from_proj_coords` does not work anymore because at https://github.com/pytroll/pyresample/blob/3e8d2442790455493e6c376408e90607bd485aad/pyresample/geometry.py#L2076 there is a wrong self argument in the function call of...
#### Problem description `get_area_extent_for_subset` method is currently defined in the `BaseDefinition` class which is inherited by SwathDefinition. The method assumes an AreaDefinition since it call `get_proj_coords` and should therefore be...
**Describe the bug** [/modifiers/angles.py](https://github.com/pytroll/satpy/blob/main/satpy/modifiers/angles.py) functions currently fails if the input `xr.DataArray` data are in `numpy.ndarray` instead of a `dask.Array`. This because in many `/mofidifers/angles.py` functions, chunks are often retrieved from...