<div>Hi guys, I am having trouble exporting any Grass raster to netCDF format and preserving the z-values. <br></div><div><br></div><div>Ex:<br></div><div><br></div><div>~> r.info GEBCO2014_Atlantic_Canada_100m -g | grep datatype<br></div><div>datatype=DCELL<br></div><div><br></div><div>~> g.region -p<br></div><div><br></div><div>projection: 99 (unnamed)<br></div><div>zone:       0<br></div><div>datum:      wgs84<br></div><div>ellipsoid:  wgs84<br></div><div>north:      838800<br></div><div>south:      -313000<br></div><div>west:       -4400<br></div><div>east:       1225500<br></div><div>nsres:      100<br></div><div>ewres:      100<br></div><div>rows:       11518<br></div><div>cols:       12299<br></div><div>cells:      141659882<br></div><div><br></div><div>~> r.out.gdal in=GEBCO2014_Atlantic_Canada_100m format=netCDF out=GEBCO2014_Grand_Banks_100m.nc type=Float64 --v --o<br></div><div><br></div><div>Exporting to GDAL data type: Float64<br></div><div>Checking GDAL data type and nodata value...<br></div><div>100%<br></div><div>Using GDAL data type <Float64><br></div><div>Exporting raster data to netCDF format...<br></div><div>100%<br></div><div>r.out.gdal complete. File <GEBCO2014_Grand_Banks_100m.nc> created.<br></div><div><br></div><div>Now, checking the output .nc file with GMT's grdinfo:<br></div><div><br></div><div>~> grdinfo GEBCO2014_Grand_Banks_100m.nc<br></div><div>GEBCO2014_Grand_Banks_100m.nc: Title: GDAL Band Number 1<br></div><div>GEBCO2014_Grand_Banks_100m.nc: Command: Wed Dec 04 15:25:18 2019: GDAL Create( GEBCO2014_Grand_Banks.nc, ... )<br></div><div>GEBCO2014_Grand_Banks_100m.nc: Remark:<br></div><div>GEBCO2014_Grand_Banks_100m.nc: Pixel node registration used [Cartesian grid]<br></div><div>GEBCO2014_Grand_Banks_100m.nc: Grid file format: nd = GMT netCDF format (64-bit float), CF-1.7<br></div><div>GEBCO2014_Grand_Banks_100m.nc: x_min: -4400 x_max: 1225500 x_inc: 100 name:  n_columns: 12299<br></div><div>GEBCO2014_Grand_Banks_100m.nc: y_min: -313000 y_max: 838800 y_inc: 100 name:  n_rows: 11518<br></div><div>GEBCO2014_Grand_Banks_100m.nc: z_min: 0 z_max: 0 name: GDAL Band Number 1<br></div><div>GEBCO2014_Grand_Banks_100m.nc: scale_factor: 1 add_offset: 0<br></div><div>GEBCO2014_Grand_Banks_100m.nc: format: classic<br></div><div><br></div><div>Zeros for the z-range. gdalinfo also fails to reveal any z-range info. I'm not sure what I'm doing wrong here.<br></div><div><br></div><div>System Info:                                                                  <br></div><div>GRASS version: 7.8.1 (installed from UbuntuGIS-unstable PPA)                                                          <br></div><div>Code revision: exported                                                        <br></div><div>Build date: 2019-12-03                                                         <br></div><div>Build platform: x86_64-pc-linux-gnu                                            <br></div><div>GDAL: 3.0.2                                                                    <br></div><div>PROJ: 6.2.1                                                                    <br></div><div>GEOS: 3.8.0                                                                    <br></div><div>SQLite: 3.22.0                                                                 <br></div><div>Python: 3.6.9                                                                  <br></div><div>wxPython: 4.0.1                                                                <br></div><div>Platform: Linux-5.3.0-24-generic-x86_64-with-LinuxMint-19.2-tina       <br></div><div><br></div><div>Any pointers most appreciated!<br></div><div><br></div><div>~ Eric.        <br></div><div>                                                                               <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>--<br></div><div>Eric Patton<br></div><div><b><span style="font-size:12px">GPG ID:</span></b> rsa4096/0x<a href="http://keys.gnupg.net/pks/lookup?op=get&search=0x24CC056BB72AE021"><span style="color:rgb(34, 34, 34)"><span style="font-size:12px">B72AE021</span></span></a><br></div><div><b><span style="font-size:12px">Fingerprint:</span></b> <span style="font-size:12px">1B0F 7AFD 9B5B 0E59 DCBC  36B4 24CC 056B B72A E021</span><br></div><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div>