Main Content

intrinsicXToLongitude

Convert from intrinsic x to longitude coordinates

Description

lon = intrinsicXToLongitude(R,xIntrinsic) returns the longitude of the meridian corresponding to the x-coordinate xIntrinsic in the intrinsic coordinate system, based on the relationship defined by geographic raster R.

Input Arguments

collapse all

Geographic raster, specified as a GeographicCellsReference or GeographicPostingsReference object.

x-coordinates in intrinsic coordinate system, specified as a numeric array. xIntrinsic coordinates can be outside the bounds of the raster R.

Data Types: single | double

Output Arguments

collapse all

Longitude coordinates, returned as a numeric array. lon is the same size as xIntrinsic.

When a point has intrinsic x-coordinate outside the bounds of raster R, lon(k) is extrapolated outside the longitude limits. Elements of xIntrinsic with value NaN map to NaN in lon. Longitude values are not wrapped.

Data Types: double

Introduced in R2013b