#!/bin/bash ###### # A simple script to convert a NetCDF 64-bit offset file to a NetCDF # classic format file, which is viewable by the Windows viewer. # # This script is overkill; to convert new file new.sww to old.sww do: # ncdump new.sww > fred.ncd # ncgen -o old.sww fred.ncd # rm -f fred.ncd ###### ncdump $1 >/tmp/n2o.tmp ncgen -o $2 /tmp/n2o.tmp rm -f /tmp/n2o.tmp # cleanup