PDA

View Full Version : data conversion



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

regds,
deba

rocksea
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?

deba
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.

rocksea
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

deba
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

rocksea
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!

skg
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?

jgarces
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

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

skdash
24th April 2010, 01:03 PM
Hi,

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

anand
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

42d3e78f26a4b20d412==