podaac / l2ss-py

Level 2 subsetter with Harmony integration
https://podaac.github.io/l2ss-py/
Apache License 2.0
11 stars 11 forks source link

SNDR atrack and xtrack not properly subsetted in xarray_enhancements.get_nd_indexers function #267

Closed nlenssen2013 closed 3 weeks ago

nlenssen2013 commented 2 months ago

If any value along a dimension was outside the longitude bounding box, the entire line of the swath would be removed. Example, say the swath is diagonal and there is a point in the SE corner that gets subsetted out, all the values on the eastern edge would be removed, even if they were inside the bounding box.

3 spatial dimensions are given for SNDR files - atrack and xtrack and z. atrack, xtrack are the first two dimensions rather than the last two. Add logic to determine which will be rows and cols in file xarray_enhancements lines 75:85