diff --git a/applications/smurf/libsmf/smf_getrefwcs.c b/applications/smurf/libsmf/smf_getrefwcs.c index 1587a05460e..34cf09db5d3 100644 --- a/applications/smurf/libsmf/smf_getrefwcs.c +++ b/applications/smurf/libsmf/smf_getrefwcs.c @@ -85,6 +85,9 @@ * parameter. * 25-NOV-2013 (DSB): * Added argument "isjsa". +* 20-AUG-2014 (DSB): +* Convert mapregion circle to ICRS before checking to see if it +* crosses any of the JSA ICRS discontinuities. * {enter_further_changes_here} * Copyright: @@ -244,6 +247,9 @@ void smf_getrefwcs( const char *param, Grp *igrp, AstFrameSet **specwcs, system. */ circle = smf_mapregion_approx( igrp, 1, status ); +/* Convert the circle to ICRS (as used by the JSA all-sky grid). */ + astSetC( circle, "System", "ICRS" ); + /* Get the centre and radius of this circle. */ astCirclePars( circle, centre, &radius, NULL ); if( ( centre[ 0 ] == AST__BAD || centre[ 1 ] == AST__BAD ||