Returns the X component of an (X,Y) coordinate.
Syntax
CRDX(Coordinate)
Input
Coordinate | is an (X,Y) coordinate |
Domain type: | a coordinate system |
Output
CRDX returns: | a value |
Domain: | system domain Value |
Note:
This function is mainly designed to store the resulting X-coordinate of a coordinate calculation. The output can be used as input in other calculations.
Tips:
Usable in
Examples
Pocket line calculator examples:
? CRDX(COORD(10,20)) |
returns the X component of coordinate (10, 20), i.e. 10 |
? CRDX(PNTCRD(Rainfall,"PROMIC")) | returns the X component of the coordinate of rainfall station PROMIC in point map Rainfall, e.g. 802613.000 |
? CRDX(MAPCRD(DEM,120,150)) | returns the X coordinate of raster map DEM at row 120 and column 150, e.g. 798470 |
TabCalc examples:
OutCol = CRDX(Coordinate)
Rainfall.mpp opened as table |
Working table |
|||
ID |
Name |
Coordinate |
OutCol |
|
1 |
UMSS |
(803429.00, 8074631.00) |
803429.00 |
|
2 |
Taquina |
(799748.00, 8082415.00) |
799748.00 |
|
3 |
Laguna Santa Rosa |
(803511.00, 8087422.00) |
803511.00 |
|
4 |
Laguna Totura |
(801281.00, 8088967.00) |
801281.00 |
|
5 |
PROMIC |
(802613.00, 8080483.00) |
802613.00 |
|
6 |
Aro Caqua |
(806816.00, 8076585.00) |
806816.00 |
|
7 |
Colca Pithua |
(797465.00, 8078352.00) |
797465.00 |
|
8 |
Cerro MachaMach |
(796346.00, 8087736.00) |
796346.00 |
|
9 |
Laguna WaraWara |
(806042.00, 8085414.00) |
806042.00 |
Note:
Column Coordinate uses the coordinate system of the point map.
See also:
COORD | MINCRDX | MAPCRD | RASVALUE |
CRDY | MINCRDY | MAPROW | DIST |
TRANSFORM | MAXCRDX | MAPCOL | DIST2 |
MAXCRDY | MAPVALUE |