Hello, I need to create subsets of MERIS L2 images knowing the angular coordinates lon,lat (WGS84) of the central point. The subset should have a fixed size in raster pixels.
I would therefore like to create a gpt graph using the subset operator and setting the dimensions in raster coordinates. To do this, however, I would first have to convert the central point from lon,lat coordinates into X Y raster coordinates of the image.
I tried using the gdal command “gdallocationinfo” but it doesn’t seem to work correctly with MERIS L2 images (while it works for example with Sentinel-2 products):
gdallocationinfo --debug on -wgs84 M02_rho_TOA.nc 10.7553682 45.0449252
GDAL_netCDF: driver detected file type=3, libnetcdf detected type=3
GDAL_netCDF: No UNIDATA NC_GLOBAL:Conventions attribute
GDAL_netCDF: var_count = 2
GDAL: GDALOpen(M02_rho_TOA.nc, this=0x557bb7e01140) succeeds as netCDF.
What could be the problem? How could I do this another way?