Hi there,
I’ve got a netCDF file including bed elevation for the Antarctic region, with the data in cartesian coordinates. I can extract the x, y and bed topography data from the netCDF, for instance, so as to build a 3-column text file to give to mapproject.
I just cannot figure out how to use this properly; have tried many options but do not get any sensible output.
Typically like: gmt mapproject XYZ.txt -Js0/-90/2.8i/-30 -R-180/180/-90/-30 -I -E > LATLONZ.txt
Example of the first 20 lines of the XYZ file below, as well as the header information in the netCDF file.
Anyone with some gook geodesy skills to help?
Thanks,
David
#######
-3333000.00 3333000.00 -5915.61719
-3333000.00 3328000.00 -5962.10742
-3333000.00 3323000.00 -5959.86377
-3333000.00 3318000.00 -5866.03711
-3333000.00 3313000.00 -5661.64453
-3333000.00 3308000.00 -5622.04150
-3333000.00 3303000.00 -5500.58740
-3333000.00 3298000.00 -5393.52588
-3333000.00 3293000.00 -5370.03662
-3333000.00 3288000.00 -5484.46045
-3333000.00 3283000.00 -5668.95605
-3333000.00 3278000.00 -5865.19629
-3333000.00 3273000.00 -5878.93457
-3333000.00 3268000.00 -5886.30225
-3333000.00 3263000.00 -5934.98633
-3333000.00 3258000.00 -5999.31201
-3333000.00 3253000.00 -6071.00391
-3333000.00 3248000.00 -6139.77783
-3333000.00 3243000.00 -6057.91699
-3333000.00 3238000.00 -6030.22168
etc…
####### header of the netCDF file.
netcdf BedMachineAntarctica_2020-07-15_v02 {
dimensions:
x = 13333 ;
y = 13333 ;
variables:
char mapping ;
mapping:grid_mapping_name = “polar_stereographic” ;
mapping:latitude_of_projection_origin = -90. ;
mapping:standard_parallel = -71. ;
mapping:straight_vertical_longitude_from_pole = 0. ;
mapping:semi_major_axis = 6378273. ;
mapping:inverse_flattening = 298.27940504282 ;
mapping:false_easting = 0. ;
mapping:false_northing = 0. ;
int x(x) ;
x:long_name = “Cartesian x-coordinate” ;
x:standard_name = “projection_x_coordinate” ;
x:units = “meter” ;
int y(y) ;
y:long_name = “Cartesian y-coordinate” ;
y:standard_name = “projection_y_coordinate” ;
y:units = “meter” ;
float bed(y, x) ;
bed:long_name = “bed topography” ;
bed:standard_name = “bedrock_altitude” ;
bed:units = “meters” ;
bed:grid_mapping = “mapping” ;
bed:source = “IBCSO and Mathieu Morlighem” ;
bed:_FillValue = -9999.f ;
short geoid(y, x) ;
geoid:long_name = “EIGEN-EC4 Geoid - WGS84 Ellipsoid difference” ;
geoid:standard_name = “geoid_height_above_reference_ellipsoid” ;
geoid:units = “meters” ;
geoid:grid_mapping = “mapping” ;
geoid:geoid = “eigen-6c4 (Forste et al 2014)” ;
// global attributes:
:Conventions = “CF-1.7” ;
:Title = “BedMachine Antarctica” ;
:Author = “Mathieu Morlighem” ;
:version = “15-Jul-2020 (v2.0)” ;
:nx = 13333. ;
:ny = 13333. ;
:Projection = “Polar Stereographic South (71S,0E)” ;
:proj4 = “+init=epsg:3031” ;
:sea_water_density\ (kg\ m-3) = 1027. ;
:ice_density\ (kg\ m-3) = 917. ;
:xmin = -3333000 ;
:ymax = 3333000 ;
:spacing = 500 ;
:no_data = -9999. ;
:license = “No restrictions on access or use” ;
:Data_citation = “Morlighem M. et al., (2019), Deep glacial troughs and stabilizing ridges unveiled beneath the margins of the Antarctic ice sheet, Nature Geoscience (accepted)” ;
:Notes = “Data processed at the Department of Earth System Science, University of California, Irvine” ;
}
##############