Hi,
Do the "lat" and "lon" variables represent a grid? If so, then you need to define X and Y axes which correspond to the lon/lat data. This FAQ, ../../faq/reading-ascii-data-representing-a-grid, though it discusses reading ASCII data, shows an example of defining axes using what is in lists of lat/lon values. Once you have defined the X-Y grid, then you'd use RESHAPE to put your data onto that grid. Pay attention to whether your data lists longitude varying fastest.
If the "lat" and "lon" variables represent scattered data, then you would define use one of the SCAT2GRID functions. To see a list of the options, type
yes? show function scat2grid*xy
-Ansley
On 11/25/2016 2:07 AM, 'Yogesh Tiwari' via _OAR PMEL Ferret Users wrote:
Dear Ferret Users,
I am using ferret v 6.95 on Linux OS
I have a netcdf file with three different variables as "v1". "lat", "lon" on J-axisHow to regrid "v1" on i-axis & j-axis using "lat" and "lon". Data looks like below:
NOAA/PMEL TMAPFERRET v6.95Linux 2.6.32-573.7.1.el6.x86_64 64-bit - 10/27/1525-Nov-16 15:25
yes? use data.ncyes? sh dcurrently SET data sets:1> ./data.nc (default)name title I J K L M Nv1 var ... 1:1869 ... ... ... ...lat latitude ... 1:1869 ... ... ... ...lon longitude ... 1:1869 ... ... ... ...
Thanks,
Regards,