Skip to content

Commit 01341cc

Browse files
authored
Merge pull request #37 from astromatic/develop
Fix typo in proper motion correction.
2 parents d936c73 + e8f21b4 commit 01341cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/astrefcat.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* This file part of: SCAMP
99
*
10-
* Copyright: (C) 2002-2023 IAP/CNRS/SorbonneU/CEA/UParisSaclay
10+
* Copyright: (C) 2002-2024 IAP/CNRS/SorbonneU/CEA/UParisSaclay
1111
*
1212
* License: GNU General Public License
1313
*
@@ -22,7 +22,7 @@
2222
* You should have received a copy of the GNU General Public License
2323
* along with SCAMP. If not, see <http://www.gnu.org/licenses/>.
2424
*
25-
* Last modified: 05/12/2023
25+
* Last modified: 25/03/2024
2626
*
2727
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
2828

@@ -249,7 +249,7 @@ INPUT Catalog name,
249249
OUTPUT Pointer to the reference field.
250250
NOTES Global preferences are used.
251251
AUTHOR E. Bertin (IAP)
252-
VERSION 05/12/2023
252+
VERSION 25/03/2024
253253
*/
254254
fieldstruct *get_astreffield(astrefenum refcat, double *wcspos,
255255
int lng, int lat, int naxis, double maxradius, double epoch_in)
@@ -930,8 +930,8 @@ fieldstruct *get_astreffield(astrefenum refcat, double *wcspos,
930930
// Add in quadrature positional uncertainties added by PM correction
931931
poserr[lng] = sqrt(poserr[lng]*poserr[lng]
932932
+ properr[lng]*properr[lng] * propfac*propfac);
933-
poserr[lng] = sqrt(poserr[lat]*poserr[lat]
934-
+ properr[lng]*properr[lng] * propfac*propfac);
933+
poserr[lat] = sqrt(poserr[lat]*poserr[lat]
934+
+ properr[lat]*properr[lat] * propfac*propfac);
935935
} else {
936936
// Add in quadrature positional uncert. contributed by unknown PM correction
937937
propfac = (epoch_in - epoch) * RMS_PROP;

0 commit comments

Comments
 (0)