Project

General

Profile

converting grads to netcdf using cdo in python

Added by Geoff Marion over 2 years ago

Hello,

I've been searching for a way to convert grads files to netcdf using CDO in python (anaconda3), but it's unclear whether or not it has the functionality to do this. The machine I'm currently using to process some data does not have CDO readily available, so using cdo in python to do so would be preferred. The simple command I would typically use to do this (with some compression) is as follows:

cdo -f nc4 -z zip_3 import_binary cm1out_s.ctl cm1out_s.nc

Any help would be greatly appreciated.