Skip to content

Commit

Permalink
ADES translation to punch-card format didn't know about ATLAS' Ao and…
Browse files Browse the repository at this point in the history
… Ac passbands, nor about all of the 'modes' (in particular, CMOS, occultation, and TDI)
  • Loading branch information
Bill-Gray committed Mar 26, 2024
1 parent 497e6b4 commit 497c32d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ades2mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,18 +590,23 @@ static int process_ades_tag( char *obuff, ades2mpc_t *cptr, const int itag,
}
break;
case ADES_band:
if( (*tptr == 'P' || *tptr == 'S' || *tptr == 'G')
if( (*tptr == 'P' || *tptr == 'S')
&& strchr( "grizwy", tptr[1]) && tptr[1])
cptr->line[70] = tptr[1]; /* PanSTARRS, Sloan, or Gaia band */
cptr->line[70] = tptr[1]; /* PanSTARRS or Sloan band */
else if( *tptr == 'A' && (tptr[1] == 'o' || tptr[1] == 'c'))
cptr->line[70] = tptr[1]; /* ATLAS Ao & Ac bands */
else if( *tptr == 'G' && (tptr[1] == 'b' || tptr[1] == 'r'))
cptr->line[70] = tptr[1]; /* Gaia b or r band */
else
cptr->line[70] = *tptr;
assert( len > 0 && len < 4); /* three-byte passcodes are allowed */
strcpy( cptr->passband, name);
break;
case ADES_mode:
if( len == 3)
{
const char *modes = "CCCD VVID PPHO eENC pPMT MMIC TMER ";
{ /* https://www.minorplanetcenter.net/iau/info/ADESFieldValues.html */
const char *modes = "CCCD BCMO VVID PPHO eENC pPMT"
" MMIC TMER CTDI EOCC ?UNK ";
int i;

for( i = 0; modes[i]; i += 5)
Expand Down

0 comments on commit 497c32d

Please sign in to comment.