NCL Home > Documentation > Functions

Lat/lon functions

add90LatX Adds two fake pole points (90S and 90N) to the rightmost dimension of the given data.
add90LatY Adds two fake pole points (90S and 90N) to the leftmost dimension of the given data.
gaus Computes gaussian latitudes and weights.
gaus_lobat Computes gaussian latitudes and weights using Gauss-Lobatto quadrature.
gaus_lobat_wgt Computes Gauss-Lobatto weights given a one-dimensional array of Gauss-Lobatto latitudes.
gc_aangle Finds the acute angle between two great circles on the globe.
gc_clkwise Tests clockwise/counterclockwise ordering of points on spherical polygon.
gc_dangle Finds the directed angle between two great circles having a specified intersection point.
gc_inout Determines if a specified point is inside or outside of a spherical polygon.
gc_latlon Interpolates points along a great circle on the surface of the globe.
gc_onarc Determines if a point on the globe lies on a specified great circle arc.
gc_pnt2gc Finds the angular distance from a point to a great circle.
gc_qarea Finds the area of a quadrilateral patch on the unit sphere.
gc_tarea Finds the area of a triangular patch on the unit sphere.
getind_latlon2d Finds the indices (subscripts) of two-dimensional latitude/longitude arrays closest to a user specified latitude/longitude coordinate pair.
landsea_mask Returns a grid that contains a land sea mask given any latitude and longitude array.
latGau Generates gaussian latitudes and associated metadata.
latGauWgt Generates gaussian weights and associated metadata.
latGlobeF Generates latitudes and associated metadata for a global fixed grid.
latGlobeFo Generates latitudes and associated metadata for a global fixed offset grid.
latlon2utm Converts from lat/lon to UTM using a specified datum.
latRegWgt Generates [sin(lat+dlat/2)-sin(lat-dlat/2) weights for equally spaced (regular) global grids that will sum to 2.0.
lonFlip Reorders the longitude coordinate variable.
lonGlobeF Generates longitudes and associated metadata for a global fixed grid.
lonGlobeFo Generates longitudes and associated metadata for a global fixed offset grid.
lonPivot Pivots about a user specified longitude.
nggcog Calculates the latitudes and longitudes of a set of points approximating a circle at a given point on the surface of the globe.
niceLatLon2D Check two dimensional map coordinates to see if they have a "nice" structure.
NormCosWgtGlobe Create normalized cosine weights that sum to 2.0.
utm2latlon Converts from UTM to lat/lon using a specified datum.
wrf_latlon_to_ij Finds the nearest model grid indices (i,j) to the specific location(s) in latitude and longitude.