Project

General

Profile

convert nc file to text file

Added by Mark Daryl Ramos almost 13 years ago

Hi,

I already downloaded the retro emission data as nc files. Then i am trying to convert it
to text file just like the same text file provided in the tutorial of WRF chem using retro, gocart, etc.
i tried to use cdo because cdo is in the list of software tools in retro page.
but the output format is not the same as that provided in the tutorial.
may i ask how to use to to give the same output format?

Thank you in advance
Ram

Attached is my converted file and the file provided in the tutorial

test.txt (42.3 MB) test.txt my output
RETRO_edg_anthro_ACIDS_2000.0.5x0.5.txt (10.2 MB) RETRO_edg_anthro_ACIDS_2000.0.5x0.5.txt this is the format provided in the tutorial

Replies (5)

RE: convert nc file to text file - Added by Etienne Tourigny almost 13 years ago

cdo does not support the kind of formatting that retro uses.

You'll have to find another recommended software compatible with retro's format or write your own fortran/c program.

cdo is compatible with netcdf, grib, SERVICE, EXTRA and IEG file formats and is excellent for reading and processing.
You can use cdo for manipulating the netcdf files, and find some way to convert it to the desired format after.

Maybe someone else on this list from MPI has a better idea than me?

RE: convert nc file to text file - Added by Ralf Mueller almost 13 years ago

You could also use ncdump or operators from the output module. But I'm not sure you can create the format you want.

RE: convert nc file to text file - Added by Sohrab Kolsoumi almost 6 years ago

Hello Dear
Many researchers face to problem for reading or extracting data from netcdf files. Netcdf-Extractor is a windows software for extract data easily.
https://youtu.be/XfYzmbjfmNw
This is Netcdf-Extractor:
https://www.agrimetsoft.com/Netcdf-Extractor.aspx

    (1-5/5)