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,