blob: 2081fd5099494474537ccaf35a5d7156c408adb0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
.help skdecwcs Mar00 Skywcs
.ih
NAME
skdecwcs -- open a sky coordinate descriptor using an image or system name
.ih
SYNOPSIS
stat = sk_decwcs (ccsystem, mw, coo, imcoo)
.nf
char ccsystem # the input celestial coordinate system name
pointer mw # the output mwcs descriptor
pointer coo # the output sky coordinate descriptor
pointer imcoo # the input image sky coordinate descriptor
.fi
.ih
ARGUMENTS
.ls ccsystem.
The celestial coordinate system name. Ccsystem is a either an image system
name, e.g. "dev$ypix logical" or "dev$ypix world" or a system name, e.g.
"J2000" or "galactic".
.le
.ls mw
The output mwcs descriptor. A NULL value for mw is returned if the
image world coordinate system cannot be read or ccsystem is not an image
system name.
.le
.ls coo
The output sky coordinate descriptor.
.le
.ls imcoo
The parent image coordinate descriptor. Imcoo is set to NULL
except in cases where the sky coordinate descriptor for an image is
transformed and written back to the same image.
.le
.ih
DESCRIPTION
Sk_decwcs is an integer function which returns OK or ERR as its function
value. ERR is returned if a valid sky coordinate system cannot be opened,
OK otherwise.
Sk_decwcs returns the image MWCS descriptor mw if ccsystem is an image
system, otherwise it returns NULL. The MWCS descriptor is used
to convert from pixel coordinates to world coordinates and vice versa.
The MWCS descriptor must be freed with a call to the MWCS routine
mw_close before task termination.
Sk_decwcs returns the sky descriptor coo. The sky coordinate descriptor
is defined even if an error is detected in reading the image celestial
coordinate system, and must be freed with a call to sk_close before
task termination.
.ih
NOTES
Type "help ccsystems" to see the list of the supported sky coordinate systems.
Type "help mwcs$MWCS.hlp fi+" to find out more about the IRAF image world
coordinate system library MWCS.
SEE ALSO
skdecwstr, skdecim
.endhelp
|