[Thread Prev][Thread Next][Index]

Re: [ferret_users] regriding of variable by using lat lon as a variable



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, http://ferret.pmel.noaa.gov/Ferret/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-axis
How to regrid "v1" on i-axis & j-axis using "lat" and "lon". Data looks like below:


NOAA/PMEL TMAP
  FERRET v6.95  
  Linux 2.6.32-573.7.1.el6.x86_64 64-bit - 10/27/15
  25-Nov-16 15:25     

yes? use data.nc
yes? sh d
     currently SET data sets:
    1> ./data.nc  (default)
 name     title                             I         J         K         L         M         N
 v1            var                        ...       1:1869    ...       ...       ...       ...
lat             latitude                  ...       1:1869    ...       ...       ...       ...
lon            longitude               ...       1:1869    ...       ...       ...       ...


Thanks,

Regards,



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement