View Full Version : data conversion

21st January 2010, 05:33 AM
can anyone suggest a software to convert grb data to ascii format.


22nd January 2010, 09:25 AM
hello deba, CDO and GRADS can convert grib files to netcdf.
From netcdf you can easily convert them to ascii using ncdump, grads, ferret, matlab, etc.

Is it a downloaded data file or a model output?

23rd January 2010, 05:58 PM
thanks roxy, but i have not used such an approach earlier. can you be more specific how to proceed about it.
the data is a model output.

25th January 2010, 11:46 AM
Here are examples of how you can do it. I am not sure which softwares you are familiar with.

Convert grib to netcdf in CDO:

cdo -f nc copy input_filename.grib output_filename.nc

Convert netcdf to ascii using NCDUMP:

nc2text input_filename.nc variable_name > output_filename.txt

More details:
CDO: http://www.mpimet.mpg.de/fileadmin/software/cdo/
NCDUMP: http://www.narccap.ucar.edu/data/ascii-howto.html

27th January 2010, 04:30 AM
thank you very much roxy. i shall try them out.
I am also trying out in ferret.
thanks once again

27th January 2010, 07:11 AM
Yes once you do the grib->nc by cdo, which is easy, converting it into ascii is not much of a problem. CDO is a very useful tool, try it out!

21st April 2010, 08:58 AM
Hi Roxy,
I have GRADS and ferret installed in my workstation.
Can you suggest how to do the conversion from grib to ascii using these two softwares?

21st April 2010, 01:48 PM
Hi Deba, panoply software (http://www.giss.nasa.gov/tools/panoply/) can convert grib files to ascii. This software is very easy to use. If many files, I recommend matlab, ferret or grads

23rd April 2010, 05:48 AM
Thank you Jgarces

24th April 2010, 01:03 PM

Anybody can give suggestion how to convert from ASCII to HDF ?

18th June 2016, 07:33 PM
do any one have a fortran code to convert asci to netcdf?

i have ascii format like this

day lat lon tem sal --- 0m depth
day lat lon tem sal --- 10m depth
and so on