latitudeToIntrinsicY

Convert from latitude to intrinsic y coordinates

Description

yIntrinsic = latitudeToIntrinsicY(R,lat) returns the y-coordinate in the intrinsic coordinate system corresponding to latitude lat 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.

Latitude coordinates, specified as a numeric array. Valid values of lat are in the range [-90, 90] degrees. lat coordinates can be outside the bounds of the raster R.

Data Types: single | double

Output Arguments

collapse all

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

When a point has valid latitude outside the bounds of raster R, yIntrinsic(k) is extrapolated in the intrinsic coordinate system. When lat(k) is outside the range [-90, 90] degrees, or has a value of NaN, the corresponding value yIntrinsic(k) is set to NaN.

Data Types: double

Introduced in R2013b