Hi Madhavan,
This data is, as you say, not on a grid, so you cannot read it directly to a grid using those commands. You will need to read the locations and variables as 1-dimensional lists and then use a SCAT2GRID function to interpolate them to a grid.
The FILE/FORM=DELIMITED command will translate the date and time information. An alias for that command is COLUMNS. You can take a first look at the data with the PLOT/VS/RIBBON command to show the locations of the data, colored by the values of a variable:
yes? columns/delim=\b/var="date,time,lon,lat,var1,var2" arbsea_20060430.txtTo interpolate to a grid, you would define an output grid and use the scat2gridgauss_xy or scat2gridlaplace_xy function to interpolate the data to that grid.
yes? set var/units=degrees_east lon
yes? set var/units=degrees_north lat
yes? plot/vs/ribbon/thick/sym=17 lon,lat,var1
-Ansley
On 1/13/2015 12:28 AM, Madhavan BL wrote:
Dear All,
I have an ASCII data file with 6 columns:[yyyy-mm-dd hr:mi:se longitude(deg.E) latitude(deg.N) var1 var2]
Since my data is not gridded properly, I am unable to convert my ASCII data file into gridded netCDF file by Ferret. While I have followed a similar post on converting an ASCII file to netCDF file when the data is properly gridded, I still could not get my code running properly to convert non-gridded ASCII data to netCDF file. I have some lat-lon issues to read by ferret. Can anyone suggest me how I can convert a non-gridded ASCII data to netCDF file in ferret?
I am herein attaching a my ASCII data file along with the ferret code I have tried.
Look forward for your favourable response,
Thanking you in advance,With regards,Madhavan
---------------------------------------------------------- Dr. Bomidi Lakshmi MadhavanRemote Sensing of Atmospheric Processes
Leibniz Institute for Tropospheric Research (TROPOS)
Permoserstraße 15, D-04318 Leipzig, Germany
Phone: +49 (0)341 2717-7187 (Office), +49 (0)1578 8467548 (Mobile)
E-Mail: madhavan.bomidi@xxxxxxxxx, blmadhavan@xxxxxxxxx
Skype ID: blmadhavan, Web: http://sat.tropos.de
Attachment:
grid.jnl
Description: Binary data