Skip to content

Commit 51026a4

Browse files
authored
Merge pull request #114 from GalSim-developers/fix_wcs
Fix wcs
2 parents 3ee39ec + c788dae commit 51026a4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,6 @@ cython_debug/
161161

162162
# Mac
163163
.DS_Store
164+
165+
# VSCode
166+
.vscode/

euclidlike/euclidlike_wcs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ def getWCS(world_pos, PA=None, date=None, CCDs=None, PA_is_FPA=False, SAA=None):
190190
header.extend([
191191
('CRVAL1', crval.ra / coord.degrees),
192192
('CRVAL2', crval.dec / coord.degrees),
193-
('CD1_1', cos_pa_sca * PVs["CD1_1"][i_ccd] - sin_pa_sca * PVs["CD1_2"][i_ccd]),
194-
('CD1_2', sin_pa_sca * PVs["CD1_1"][i_ccd] + cos_pa_sca * PVs["CD1_2"][i_ccd]),
195-
('CD2_1', cos_pa_sca * PVs["CD2_1"][i_ccd] - sin_pa_sca * PVs["CD2_2"][i_ccd]),
196-
('CD2_2', sin_pa_sca * PVs["CD2_1"][i_ccd] + cos_pa_sca * PVs["CD2_2"][i_ccd]),
193+
('CD1_1', cos_pa_sca * PVs["CD1_1"][i_ccd] + sin_pa_sca * PVs["CD1_2"][i_ccd]),
194+
('CD1_2', -sin_pa_sca * PVs["CD1_1"][i_ccd] + cos_pa_sca * PVs["CD1_2"][i_ccd]),
195+
('CD2_1', cos_pa_sca * PVs["CD2_1"][i_ccd] + sin_pa_sca * PVs["CD2_2"][i_ccd]),
196+
('CD2_2', -sin_pa_sca * PVs["CD2_1"][i_ccd] + cos_pa_sca * PVs["CD2_2"][i_ccd]),
197197
])
198198
for key in PVs.dtype.names:
199199
if "PV" not in key:

0 commit comments

Comments
 (0)