Dear forum members,
If I export an image as NetCDF, SNAP writes an extra set of coordinates: lat, lon. These coordinates has the same dimensions as the bands, i.e. they are two dimensional (2D). What seems natural to me, is to make longitude 1D of length X and latitude 1D of length Y.
I’m trying to extract pixels without Pixel Extraction Tool. If I do it on 2D coordinates, I would have to calculate metric distances to all pixels from the target point and find an index of minimum. With 1D coordinates simple argmin(abs(lat - lat_target)), argmin(abs(lon - lat_target))
would be enough.
In this respect, how can I get 1D lat and lon?
Reprojection did not help.
Thanks.