Skip to content

Instantly share code, notes, and snippets.

@ce6n
Last active December 26, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ce6n/7134465 to your computer and use it in GitHub Desktop.
Save ce6n/7134465 to your computer and use it in GitHub Desktop.

Usefull snippets for working with RemoteSensing Data in Glaciology

GMT gdal

Build gdal with netcdf (GMT) support

sudo port install gdal +netcdf

Convert geotiff to netCDF/GMT grid

(gdal compiled with GMT support is needed)

gdal_translate -of GMT $IN $OUT

####gdal re-projeciton problem with Polar Stereographic projections http://lists.osgeo.org/pipermail/gdal-dev/2013-April/036060.html

workaround: Provide full proj4 string for gdalwarp: (extracted from gdalsrsinfo)

gdalwarp -multi -t_srs '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs ' $IN $OUT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment