Skip to content

Commit

Permalink
add "_ref" to the tagged-along RA,Dec columns
Browse files Browse the repository at this point in the history
  • Loading branch information
nova committed Aug 20, 2024
1 parent 5ca3829 commit 7b1666e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion solver/onefield.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ static anbool grab_tagalong_data(startree_t* starkd, MatchObj* mo, onefield_t* b
ERROR("Failed to read data for column \"%s\" in index", col);
continue;
}
tag.name = strdup(col);
if ((strcaseeq(col, "ra") || strcaseeq(col, "dec")))
asprintf_safe(&(tag.name), "%s_ref", col);
else
tag.name = strdup(col);
tag.units = strdup(tag.units);
tag.itemsize = fits_get_atom_size(tag.type) * tag.arraysize;
tag.Ndata = N;
Expand Down

0 comments on commit 7b1666e

Please sign in to comment.