Skip to content

Commit

Permalink
smurf: Correct selection of XPH or HPX projection for JSA jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Berry committed Aug 20, 2014
1 parent e72801e commit a865527
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions applications/smurf/libsmf/smf_getrefwcs.c
Expand Up @@ -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:
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit a865527

Please sign in to comment.