/[volute]/trunk/projects/dm/STC/Trans/examples/trans_test01.yaml
ViewVC logotype

Contents of /trunk/projects/dm/STC/Trans/examples/trans_test01.yaml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5766 - (show annotations)
Tue Apr 7 20:39:45 2020 UTC (5 months, 2 weeks ago) by mdittmar
File size: 4332 byte(s)
add implementation group example in XML and YAML
1 #
2 # Original FITS-WCS header:
3 #
4 #NAXIS = 2 / number of data axes
5 #NAXIS1 = 300 / length of data axis 1
6 #NAXIS2 = 300 / length of data axis 2
7 #CRPIX1 = 205.5 / Reference pixel on axis 1
8 #CRPIX2 = 205.5 / Reference pixel on axis 2
9 #CRVAL1 = 10.6847 / Value at ref. pixel on axis 1
10 #CRVAL2 = 41.269 / Value at ref. pixel on axis 2
11 #CTYPE1 = 'RA---TAN' / Type of co-ordinate on axis 1
12 #CTYPE2 = 'DEC--TAN' / Type of co-ordinate on axis 2
13 #CDELT1 = -0.01 / Pixel size on axis 1
14 #CDELT2 = 0.01 / Pixel size on axis 2
15 #PC1_1 = 0.866025405812433 / Transformation matrix element
16 #PC1_2 = -0.5 / Transformation matrix element
17 #PC2_1 = 0.5 / Transformation matrix element
18 #PC2_2 = 0.866025405812433 / Transformation matrix element
19 #MJD-OBS = 51544.4992571308 / Modified Julian Date of observation
20 #DATE-OBS= '2000-01-01T11:58:55.816' / Date of observation
21 #RADESYS = 'FK5 ' / Reference frame for RA/DEC values
22 #EQUINOX = 2000.0 / [yr] Epoch of reference equinox
23 #
24 #
25 # Transform Set
26 # Holds Pixel to World transform spec
27 mappings: !<trans:TransformSet>
28 node: &_ThA5vHlK4jh3IGS !<trans:TransNode>
29 target: *_S0M0RnlbfLIhr2c
30 node: !<trans:TransNode>
31 parent: *_ThA5vHlK4jh3IGS
32 target: *_SXfLKmrjxFP5Vkg
33 mapping: *_TSC6b1zgw82amDv
34
35 # Pixel Coordinate System
36 pixelCoordSys: &_S0M0RnlbfLIhr2c !<coords:PixelCoordSystem>
37 pixelSpace !<coords:PixelSpace>
38 axis: !<coords:BinnedAxis>
39 name: 'Pixel axis 1'
40 length: 300
41 axis: !<coords:BinnedAxis>
42 name: 'Pixel axis 2'
43 length: 300
44
45 # Spatial Coordinate System
46 # - with Standard Celestial Coordinate space (default)
47 spaceCoordSys: &_SXfLKmrjxFP5Vkg !<coords:SpaceSys>
48 frame: !<coords:SpaceFrame">
49 refPosition: !<coords:StdRefLocation>
50 position: 'BARYCENTER'
51 spaceRefFrame: 'FK5'
52 equinox: 'J2000'
53
54 # The pixel->sky mapping: compose the usual FITS-WCS steps in series.
55 pix2world: &_TSC6b1zgw82amDv !<trans:ComposeMap>
56 cptMap: !<trans:MapRef>
57 ref: *_TnaGlYqhbMMiw8w
58 cptMap: !<trans:MapRef>
59 ref: *_T0VHFpYY4ZVX5DO
60 cptMap: !<trans:MapRef>
61 ref: *_T6RF4HGJb8OBrFo
62 cptMap: !<trans:MapRef>
63 ref: *_TEtpOT0sLvn35tr
64
65 # Shift the pixel origin to the reference point
66 shift2D: &_TnaGlYqhbMMiw8w !<trans:ConcatenateMap>
67 cptMap: !<trans:MapRef>
68 ref: *_TWFdjcHxLauGm4x
69 cptMap: !<trans:MapRef>
70 ref: *_TEEKYDdiRG5s3LY
71
72 shiftX: &_TWFdjcHxLauGm4x !<trans:Shift>
73 offset: -205.5
74 shiftY: &_TEEKYDdiRG5s3LY !<trans:Shift>
75 offset: -205.5
76
77 # Rotate and scale the shifted pixel axes to get Intermediate World
78 # Coordinates.
79 scaleRotate: &_T0VHFpYY4ZVX5DO !<trans:Matrix>
80 M: 2
81 N: 2
82 element: !<trans:MatrixElement>
83 m: 0
84 n: 0
85 value: -0.00015114994737346996
86 element: !<trans:MatrixElement>
87 m: 0
88 n: 1
89 value: 8.7266462599716482e-05
90 element: !<trans:MatrixElement>
91 m: 1
92 n: 0
93 value: 8.7266462599716482e-05
94 element: !<trans:MatrixElement>
95 m: 1
96 n: 1
97 value: 0.00015114994737346996
98
99 # De-projection from intermediate world coordinates (the projection
100 # plane) to the native spherical coordinates. Note, the document doesn't
101 # make it clear whether the forward direction of a "SkyProjection" goes
102 # from cartesian to spherical, or the other way round. I've assumed the
103 # former here.
104 skyProjection: &_T6RF4HGJb8OBrFo !<trans:SkyProjection>
105 algorithm: 'TAN'
106
107 # Rotate native spherical coordinates to (RA,Dec). AST uses a 3x3 matrix
108 # to represent the required rotations rather than three Euler angles.
109 # The following angles have been derived manually from the 3x3 Matrix
110 # generated by AST. We'll probably need to iterate to agree on all the
111 # various conventions assumed by this conversion.
112 eulerRot: &_TEtpOT0sLvn35tr !<trans:EulerRotation>
113 eulerAngle: !<trans:EulerAngle>
114 rotationAxis: 'x'
115 angle: 0.0
116 eulerAngle: !<trans:EulerAngle>
117 rotationAxis: 'y'
118 angle: -48.731
119 eulerAngle: !<trans:EulerAngle>
120 rotationAxis: 'z'
121 angle: -10.6847

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26