Skip to content

Commit

Permalink
add VLSR
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jul 27, 2024
1 parent f96b6f3 commit a393a1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/image/fits/fitsccd.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ string defv[] = {
"relcoords=f\n Use relative (to crpix) coordinates instead abs",
"axistype=1\n Force axistype 0 (old, crpix==1) or 1 (new, crpix as is)",
"altr=f\n Switch to ALTR wcs",
"VERSION=5.5\n 6-sep-2023 PJT",
"VERSION=5.6\n 22-jul-2024 PJT",
NULL,
};

Expand Down Expand Up @@ -473,6 +473,13 @@ void make_fitheader(FITS *fitsfile, imageptr iptr, bool Qrel, bool Qout, bool Qa
Dz(iptr) = cdelt3;
Zmin(iptr) = altrval;
}
if (fitexhd(fitsfile,"VLSR")) {
fitrdhdr(fitsfile,"VLSR",&tmpr,0.0);
dprintf(0,"VLSR %g\n",tmpr);
Vlsr(iptr) = tmpr;
}



fitrdhdr(fitsfile,"DATAMIN",&tmpr,0.0);
MapMin(iptr) = *data_min = tmpr;
Expand Down

0 comments on commit a393a1e

Please sign in to comment.