kludge to make netcdf work okish for all flavours of doubles including ricardo's