[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master ebeef2b: Library(wcsdistortion): properly read
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master ebeef2b: Library(wcsdistortion): properly reading SIP keywords from WCS structure |
Date: |
Tue, 23 Jun 2020 12:46:06 -0400 (EDT) |
branch: master
commit ebeef2b94389dbb148f28b289759927628f2cf57
Author: Sachin Kumar Singh <sachinkumarsingh092@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Library(wcsdistortion): properly reading SIP keywords from WCS structure
Until now, when reading the SIP coefficients on the 2nd axis, we were
mistakenly reading SIP.REV values insted of SIP.FWD. When converting to
TPV, this would cause the second axis values to have the inverse sign!
With this commit, this has been fixed.
---
lib/wcsdistortion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/wcsdistortion.c b/lib/wcsdistortion.c
index 1d2d5b9..56a3b5a 100644
--- a/lib/wcsdistortion.c
+++ b/lib/wcsdistortion.c
@@ -216,7 +216,7 @@ wcsdistortion_get_sipparams(struct wcsprm *wcs, double
cd[2][2],
if ( keyp->field == NULL ) continue;
cp = strchr(keyp->field, '.') + 1;
- if (strncmp(cp, "SIP.REV.", 8) != 0) continue;
+ if (strncmp(cp, "SIP.FWD.", 8) != 0) continue;
cp += 8;
sscanf(cp, "%ld_%ld", &m, &n);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master ebeef2b: Library(wcsdistortion): properly reading SIP keywords from WCS structure,
Mohammad Akhlaghi <=