I need to extract a DEM of a waterbody from a netCDF file so I can ultimately convert the DEM into xyz format. I'm not sure how to go about doing this, and so far, I have tried to create raster layers of the DEM in ArcGIS. However, I'm not sure if this is the best approach to obtain the data in xyz format.
If anyone could provide some ideas about how I would go about handling this conversion I would appreciate it.
Best Answer
You can use GDAL to transform driectly from NetCDF to ASCII XYZ with the
gdal_translate
command. Start with gdalinfo to get the name of the band to extract (it will look something likeNETCDF:"filename.nc":dem_bnds
) to pass as the dataset, for example: