NCL Home > Documentation > Functions > Regridding

PopLatLon

Regrids a scalar variable on a POP grid to a lat/lon grid or vice-versa.

Prototype

	procedure PopLatLon (
		x          : numeric,  
		grd_src    : string,   
		grd_dst    : string,   
		method     : string,   
		area_type  : string,   
		date       : string    
	)

	return_val  :  numeric

Arguments

x

The 3 or 4 dimensional variable to be regridded. Typically, the variable has dimensions like (time,lat,lon) or (time,lev,lat,lon).

grd_src

String specifying the POP model grid: eg, "gx1v3"

grd_dst

String specifying the output grid: eg, "1x1d", "1.9x2.5"

method

String specifying the method used to interpolate/regrid. There are two choices: "bilin" or "area".

area_type

String specifying the area "da"

date

String specifying the date the weight file was generated: eg, "010808"

Description

For historical reasons, the substrings are used to create the name of the weight file to be used. (The weight file is not generated by NCL.)

See Also

PopLatLonV

Examples

This function requires that following libraries be loaded prior to invoking the function:

     load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" 
     load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/popRemap.ncl" 

See the examples on the "Pop==>Lat/Lon" applications page for examples on how to use this function.