Skip to content

Instantly share code, notes, and snippets.

@prl900
Created September 2, 2019 06:59
Show Gist options
  • Save prl900/897b2091c3e5b1a449d6e18e50fedcda to your computer and use it in GitHub Desktop.
Save prl900/897b2091c3e5b1a449d6e18e50fedcda to your computer and use it in GitHub Desktop.
module load cdo
module load nco
module load gdal/2.2.2
cdo -b I16 select,name=maxPV /g/data/ub8/au/LandCover/DEA_ALC/17_-25/fc_metrics_17_-25_2014.nc out.nc
ncpdq -a y,x out.nc out_swap.nc
gdal_translate -ot Byte NETCDF:"out_swap.nc":maxPV test.tiff -co TILED=YES -co COMPRESS=DEFLATE
gdaladdo test.tiff 2 4 8 16 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment