Results 1 to 3 of 3

Thread: Converting ASCII data file to netCDF file

  1. #1
    Join Date
    Sep 2006
    Location
    Leibniz Institute for Tropospheric Research, Leipzig, Germany
    Posts
    37
    Thanks
    0
    Thanked 1 Time in 1 Post

    Converting ASCII data file to netCDF file

    Dear All,

    Greetings. I am very much in need of finding the easiest way to convert the ASCII file to netCDF format. I have a monthly data file (please see below the data structure) with columns [date, time, longitude, latitude, var1, var2, var3, var4] in the grid box extending from 23 deg N to 10 deg S. I want my data to be saved in netCDF file as var1(long, lat, date), var2(long,lat,date), var3(long,lat,date), var4(long,lat,date). Time column can be ignored. The data is written into the ASCII file in descending order of dates. Also, the pixels (i.e, long, lat) for all days are not same. In between some days are missing and the missing data is denoted by -999.0.

    Further, I want to re-grid the data to 1 deg X 1 deg format so that I will have 34*72 pixel data.

    I have tried to see the possibility in CDO, ferret etc., but could not find solution to my problem. Is there a simple script in FORTRAN to convert the ASCII files as below format to netCDF file?

    Please see the continuation thread for the data format example.

    Thanks in advance,
    Madhavan

  2. #2
    Join Date
    Sep 2006
    Location
    Leibniz Institute for Tropospheric Research, Leipzig, Germany
    Posts
    37
    Thanks
    0
    Thanked 1 Time in 1 Post
    Below is the sample data format (Note that there are fewer data on 2006-01-25 !!!). I tried to attach the data file as attachment but failed. Please see the below link for the data ...

    http://mailman.ucar.edu/pipermail/nc...attachment.obj

    Thanks in advance,
    With regards,
    Madhavan

  3. #3
    Join Date
    Dec 2014
    Location
    IIT,KGP
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi madhvan,

    could you tell me the procedure to convert ascii to netcfd file form ferret or cdo.

    thanks

Similar Threads

  1. multi netcdf file in one file in matlab
    By toti in forum Upper ocean processes/Air-sea interaction
    Replies: 1
    Last Post: 21st July 2010, 01:55 AM
  2. How to convert HDF to ASCII file by using MATLAB
    By lena.senthil in forum Research and Studies
    Replies: 0
    Last Post: 10th July 2010, 08:08 AM
  3. How to convert NETCDF file to ASCII file
    By S.V.V.ARUN KUMAR in forum Oceanographic Applications & Data Analysis
    Replies: 1
    Last Post: 27th June 2010, 05:26 PM
  4. How to convert .dat BINARY FILE into ASCII FILE using MATLAB?
    By blmadhavan in forum Oceanographic Applications & Data Analysis
    Replies: 1
    Last Post: 7th November 2009, 12:41 AM
  5. netCDF file combaining--help needed.
    By prasanth in forum Oceanographic Applications & Data Analysis
    Replies: 2
    Last Post: 20th November 2007, 03:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •