I have an ASCII comma-separated grid file in Local XY coordinates (km units) that is 800km long in the Y dimension and 500 km wide in the X dimension. It is centered upon 33.535°N and 134.675°E and is rotated -20°N. The top few lines looks like this (Y in the first column, X in second column):
% head -5 test_file
-400.000,-250.000,1.6
-400.000,-248.000,1.6129
-400.000,-246.000,1.62602
-400.000,-244.000,1.63934
-400.000,-242.000,1.65289
I would like to obtain the lat/lon geographical coordinates in decimal degrees for each of the four corners of this grid. For that, a colleague suggested using GMT mapproject like this:
% mapproject test_file -JoA134.675/33.535/70/1:1 -Fk -Rk-400/400/-250/250 -C -V -:
That command produces a header that contains the extreme Local XY min/max values (“Input extreme values”) and the corresponding extreme geographic coordinates (“Output extreme values”) , followed by three-column output with numbers that I do not understand. So, I’m obviously making a mistake.
Presumably, once I’ve got mapproject working properly and can actually get decimal degrees to be output, the output records could be pushed through “gmtinfo” to find the corner coordinates of the grid.
Sorry for being a dummy but could someone point me in the right direction with the mapproject command? Thank you very much for any help that is given!
Andrew