Hi,
my data is as follows:
netcdf test {
dimensions:
time = 1 ;
y_pixel = 2832 ;
x_pixel = 4256 ;
y_corner = 2833 ;
x_corner = 4257 ;
channel = 3 ;
variables:
double time(time) ;
time:units = "seconds since 1970-01-01 00:00:00" ;
time:calendar = "gregorian" ;
time:standard_name = "time" ;
time:long_name = ;
time:comment = ;
double lat(time, y_corner, x_corner) ;
lat:units = "degrees_north" ;
lat:valid_min = -90. ;
lat:valid_max = 90. ;
lat:standard_name = "latitude" ;
lat:long_name = "Latitude of pixel corner" ;
lat:comment = "Geodetic latitude" ;
lat:grid_mapping = "crs" ;
double lon(time, y_corner, x_corner) ;
lon:units = "degrees_east" ;
lon:valid_min = -180. ;
lon:valid_max = 180. ;
lon:standard_name = "longitude" ;
lon:long_name = "Longitude of pixel corner" ;
lon:grid_mapping = "crs" ;
ubyte img(time, y_pixel, x_pixel, channel) ;
img:units = "unitless" ;
img:valid_min = 0 ;
img:valid_max = 255 ;
img:long_name = ;
img:comment = "channel order: RGB" ;
img:coordinates = "lat lon" ;
byte crs ;
crs:grid_mapping_name = "latitude_longitude" ;
crs:semi_major_axis = 6378137. ;
crs:inverse_flattening = 298.257223563 ;
crs:comment = "Geographic Coordinate System, WGS 84" ;
}
So what I have is an image and each pixel corner has latitude and
longitude (irregular grid). Using img:coordinates='lat lon' here is
invalid though as the dimensions differ.
How can I define the relationship between the image corners and their
coordinates?
Cheers
Maik