Skip to content

Commit 7934b97

Browse files
authored
Merge pull request #324 from Caltech-IPAC/DM-9581-RotaionMSXImage
DM-9581:MSX image rotation not computed correctly.
2 parents 25d71a4 + 09807f9 commit 7934b97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/firefly/java/edu/caltech/ipac/visualize/plot/FitsRead.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
* remove the mask testing codes since the mask is done in the mask branch.
5454
* 9/26/16
5555
* DM-4127
56+
*
57+
* 3/1/17
58+
* DM-9581
5659
*/
5760
public class FitsRead implements Serializable {
5861
//class variable
@@ -264,11 +267,11 @@ public static FitsRead createFitsReadRotated(FitsRead fitsReader, double rotatio
264267
return fitsReader;
265268
}
266269
else {
267-
return createFitsReadPositionAngle(fitsReader, -angleToRotate, CoordinateSys.EQ_J2000);
270+
return createFitsReadPositionAngle(fitsReader, -angleToRotate, inCoordinateSys);
268271
}
269272
}
270273
else {
271-
return createFitsReadPositionAngle(fitsReader, -positionAngle+ rotationAngle, CoordinateSys.EQ_J2000);
274+
return createFitsReadPositionAngle(fitsReader, -positionAngle+ rotationAngle, inCoordinateSys);
272275
}
273276
} catch (ProjectionException pe) {
274277
if (SUTDebug.isDebug()) {

0 commit comments

Comments
 (0)