Main Content

longitudeToIntrinsicX

Convert from longitude to intrinsic x coordinates

Description

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

Input Arguments

collapse all

Geographic raster, specified as a GeographicCellsReference or GeographicPostingsReference object.

Longitude coordinates, specified as a numeric array. lon coordinates can be outside the bounds of the raster R.

Data Types: single | double

Output Arguments

collapse all

x-coordinates in intrinsic coordinate system, returned as a numeric array. xIntrinsic is the same size as lat.

When lon(k) is outside the bounds of raster R, xIntrinsic(k) is extrapolated in the intrinsic coordinate system. Elements of lon with value NaN map to NaN in xIntrinsic.

Data Types: double

Introduced in R2013b