pyresample
pyresample copied to clipboard
`AreaDefinition.get_xy_from_proj_coords` code error in function call of `get_array_indices_from_projection_coordinates`
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 get_array_indices_from_projection_coordinates.
Code example
from pyresample.geometry import AreaDefinition
area_def = AreaDefinition.from_epsg(code=4326, resolution=0.5)
area_def.get_xy_from_proj_coords([5], [2])
area_def.get_xy_from_proj_coords(xm=5, ym=2)
area_def.get_xy_from_proj_coords([5,2], [0,2])
area_def.get_array_indices_from_projection_coordinates(xm=[5,2], ym=[5,2]) # OK
area_def.get_array_indices_from_projection_coordinates(xm=5, ym=2) # OK
area_def.get_array_indices_from_projection_coordinates(xm=5, ym=2) # OK