Skip to content

Commit

Permalink
Merge pull request #130 from fact-project/forErna
Browse files Browse the repository at this point in the history
For erna
  • Loading branch information
jebuss committed May 10, 2016
2 parents 26edc2c + a03e2e7 commit 88940a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions examples/forErna/std_analysis_mc_erna.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@
<fact.io.JSONWriter keys="${keysForOutput}"
url="${output}"
writeListOfItems="True"
specialDoubleValuesAsString="True"
pixelSetsAsInt="True"
/>
<!-- <PrintData/> -->
<!-- <fact.io.PrintKeysOnConsole keys="${keysForOutput}" /> -->
</process>
</container>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>de.sfb876</groupId>
<artifactId>fact-tools</artifactId>
<name>fact-tools</name>
<version>0.14.0</version>
<version>0.14.1</version>
<url>http://sfb876.de/fact-tools/</url>

<description>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/fact/features/source/SourcePosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ public Data process(Data data) {
double pointingAz = Utils.valueToDouble(data.get(pointingAzKey));
double sourceZd = Utils.valueToDouble(data.get(sourceZdKey));
double sourceAz = Utils.valueToDouble(data.get(sourceAzKey));
// Due to the fact, that Ceres handle the coordinate in a different way, we have to undo
// the coordinate transformation from Ceres
pointingAz = 180 - pointingAz;
sourceAz = 180 - sourceAz;
// Due to the fact, that Ceres handle the coordinate in a different way, we have to
// rotate the coordinate system by 180 deg such that 0 deg is north
pointingAz = 180 + pointingAz;
sourceAz = 180 + sourceAz;
// Now we can calculate the source position from the zd,az coordinates for pointing and source
double[] sourcePosition = getSourcePosition(pointingAz, pointingZd, sourceAz, sourceZd);
data.put(outputKey, sourcePosition);
Expand Down

0 comments on commit 88940a3

Please sign in to comment.