# intrinsicXToLongitude

Convert from intrinsic x to longitude coordinates

## Syntax

``lon = intrinsicXToLongitude(R,xIntrinsic)``

## Description

example

````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`.```

## Examples

collapse all

Import a GeoTIFF image [1] of the Gulf of Mexico as an array and a `GeographicCellsReference` object. Find the longitude corresponding to the centers of cells in column `144` of the array.

```[Z,R] = readgeoraster('katrina.tif'); lon = intrinsicXToLongitude(R,144) ```
```lon = -95.7959 ```

[1] The image used in this example is derived from imagery obtained from the NASA Goddard Scientific Visualization Studio (SVS) Image Server.

## Input Arguments

collapse all

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`