Project

General

Profile

converting multiyear grads binary file to individual nc files

Added by sunil kuamr khadgarai over 6 years ago

Hello Everyone,
Could some body share with me that how to convert grads ctl file (1998-2015 with time step 1 year) to individual year nc files?
EX 1998.NC, 1999.nc,....
Thank you


Replies (2)

RE: converting multiyear grads binary file to individual nc files - Added by Karin Meier-Fleischer over 6 years ago

Hi Sunil,

first, convert the GrADS binary file to netCDF:

cdo -f nc import_binary infile.ctl infile.nc

Then split the netCDF file into yearly files:

cdo -splityear infile.nc infile_year_

-Karin

    (1-2/2)