geographicToIntrinsic
Transform geographic to intrinsic coordinates
Description
[
returns the intrinsic coordinates corresponding to geographic coordinates
xIntrinsic
,yIntrinsic
] = geographicToIntrinsic(R
,lat
,lon
)lat
and lon
in geographic raster
R
.
Examples
Find Intrinsic Coordinates from Geographic Coordinates
Find the intrinsic coordinates of a cell within a raster by specifying a raster reference object and geographic coordinates.
First, load a geographic cells reference object for the Korean peninsula. To do this, load the korea5cR
variable from the korea5c
MAT-file. Then, specify the geographic coordinates of Seoul.
load korea5c korea5cR lat = 37.57; lon = 126.98;
Find the intrinsic coordinates.
[xIntrinsic,yIntrinsic] = geographicToIntrinsic(korea5cR,lat,lon)
xIntrinsic = 144.2600
yIntrinsic = 91.3400
The result means that the geographic coordinates are in the cell in column 144 and row 91 of the raster.
You can reverse the operation by using the intrinsicToGeographic
function.
[lat,lon] = intrinsicToGeographic(korea5cR,xIntrinsic,yIntrinsic)
lat = 37.5700
lon = 126.9800
Input Arguments
R
— Geographic raster
GeographicCellsReference
or
GeographicPostingsReference
object
Geographic raster, specified as a GeographicCellsReference
or
GeographicPostingsReference
object.
lat
— Latitude coordinates
numeric array
Latitude coordinates, specified as a numeric array. Valid values of
lat
are in the range [-90, 90] degrees or are
NaN
. lat
coordinates can be
outside the bounds of the raster R
.
Data Types: single
| double
Output Arguments
xIntrinsic
— x-coordinates in intrinsic coordinate system
numeric array
yIntrinsic
— y-coordinates in intrinsic coordinate system
numeric array
Version History
Introduced in R2013b
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)