Project

General

Profile

Convert txt File to netCDF, thanks

Added by Wi Du almost 8 years ago

veryone, I have more than 50 years daily precipitation data. They are individual daily txt file(cellsize is 0.5). Now I want to convert these files to netcdf files, and then merge these netcdf file to one netcdf file. How to make it using CDO, GRADS or other software? Thanks a lot!


Replies (1)

RE: Convert txt File to netCDF, thanks - Added by Karin Meier-Fleischer over 7 years ago

Hi Wi,

have a look at the import operator

https://code.zmaw.de/projects/cdo/embedded/index.html#x1-6910002.14.4

The import module reads time series of one 2D variable from standard input or you can pipe your data file to it, e.g.

 cdo -f nc input,r32x16 outfile.grb < my_ascii_data

Adapt the cdo call to your needs.

Bye,
Karin

    (1-1/1)