<div dir="ltr"><div>Dear GDAL users</div><div><br></div>I have a raster image of 406 lines and 270 samples with 5km pixel size. The center coordinates (lats and lons in degrees in GCS) of upper left pixel, and the center coordinates (lats and lons in degrees in GCS) of the lower right pixel  are given, how can I calculate the coordinates of upper left corner (ulx and uly) and the coordinates of lower right corner (lrx and lry)?<br><div><br></div><div><div><br></div><div>upperLeftCentralX, upperLeftCentralY = 150.1234, 50.1234</div><div><br></div><div>pixelWidth, pixelHeight = 5, 5</div><div><br></div><div>cols, rows = 270, 406</div><div><br></div><div>upperLeftX, upperLeftY = ?, ?</div></div><div><br></div><div>Thanks in the advance.</div><div><br></div><div>Artur</div></div>