Skip to content

Instantly share code, notes, and snippets.

@trondkr
Created September 24, 2019 22:44
Show Gist options
  • Save trondkr/fbe80d707555d864d76b73570b0b54b5 to your computer and use it in GitHub Desktop.
Save trondkr/fbe80d707555d864d76b73570b0b54b5 to your computer and use it in GitHub Desktop.
Convert NetCDF4 to NetCDF4_classic
module load NCO/4.7.7-intel-2018b
for file in *; do
ext=${file##*.}
fname=`basename $file .$ext`
fname=${fname}_classic.nc
echo ${fname}
nccopy -k nc7 ${file} ${fname}
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment