Skip to content

Commit

Permalink
Merge pull request #954 from kettenis/mount2
Browse files Browse the repository at this point in the history
Correctly write out Nasmyth mount types
  • Loading branch information
gervandiepen committed Aug 8, 2019
2 parents a683d1d + 21dd9c1 commit 3befb44
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions msfits/MSFits/MSFitsOutput.cc
Expand Up @@ -1760,7 +1760,13 @@ Bool MSFitsOutput::writeAN(FitsOutput *output, const MeasurementSet &ms,
*nosta = id[antnum];
String mount = upcase(inantmount(antnum));
// MS has "EQUATORIAL", "ALT-AZ", "X-Y", "SPACE-HALCA"
if (mount.contains("ALT-AZ")) {
if (mount.contains("ALT-AZ+NASMYTH-R")) {
*mntsta = 4;
}
else if (mount.contains("ALT-AZ+NASMYTH-L")) {
*mntsta = 5;
}
else if (mount.contains("ALT-AZ")) {
*mntsta = 0;
}
else if (mount.contains("EQUATORIAL")) {
Expand All @@ -1776,7 +1782,7 @@ Bool MSFitsOutput::writeAN(FitsOutput *output, const MeasurementSet &ms,
*mntsta = 7;
}
else if (mount.contains("BIZARRE")) {
*mntsta = 4; // 5, 6
*mntsta = 6;
}
else {
*mntsta = 7; // fits does not use anyway, put it 7
Expand Down

0 comments on commit 3befb44

Please sign in to comment.