File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,7 @@ function wcs_to_celestial_frame(wcs::WCSTransform)
19
19
ycoord = wcs. ctype[2 ][1 : 4 ]
20
20
21
21
if radesys == " "
22
- if xcoord == " RA--" && ycoord == " DEC-"
23
- if equinox === nothing
24
- radesys = " ICRS"
25
- elseif equinox < 1984.0
26
- radesys = " FK4"
27
- else
28
- radesys = " FK5"
29
- end
30
- elseif xcoord == " GLON" && ycoord == " GLAT"
22
+ if xcoord == " GLON" && ycoord == " GLAT"
31
23
radesys = " Gal"
32
24
elseif xcoord == " TLON" && ycoord == " TLAT"
33
25
radesys = " ITRS"
Original file line number Diff line number Diff line change
1
+ using Reproject: wcs_to_celestial_frame
1
2
@testset " wcs to celestial frame" begin
2
3
wcs1 = WCSTransform (2 ;
3
4
ctype = [" RA---AIR" , " DEC--AIR" ],
20
21
ctype = [" RA---AIR" , " DEC--AIR" ],
21
22
radesys = " UNK"
22
23
)
23
-
24
+
24
25
@test wcs_to_celestial_frame (wcs1) == " ICRS"
25
26
@test wcs_to_celestial_frame (wcs2) == " FK4"
26
27
@test wcs_to_celestial_frame (wcs3) == " FK5"
27
28
@test wcs_to_celestial_frame (wcs4) == " Gal"
28
29
@test wcs_to_celestial_frame (wcs5) == " ITRS"
29
30
@test wcs_to_celestial_frame (wcs6) == " UNK"
30
31
end
31
-
You can’t perform that action at this time.
0 commit comments