Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | images | |
Tool | coordsys |
type | in | Coordinate type | |
Allowed: | String from "direction", "stokes", "spectral", "linear", "tabular" or unset | ||
Default: | All |
Each axis associated with the Coordinate System has a name (they don't mean anything fundamental). This function returns those names in world axis order.
You can recover the names either for all coordinates (leave type unset) or for a specific coordinate type (mimumum match of the allowed types will do). If you ask for a non-existent coordinate an exception is generated.
You can set the names with function setnames.
- cs := coordsys(direction=T, spectral=T) - n := cs.names(T) - n[1] Right Ascension - n[2] Declination - n[3] Frequency - - cs.names('spec') Frequency