Changeset 7080 for trunk/Ohana/src/opihi/cmd.astro/rotcurve.c
- Timestamp:
- May 5, 2006, 5:44:26 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/rotcurve.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/rotcurve.c
r2843 r7080 52 52 53 53 /* we expect the input image to have units of velocity, lattitude, and longitude */ 54 fits_scan (&in[0].header, "CRVAL1", "%lf", 1, &Vo);55 fits_scan (&in[0].header, "CDELT1", "%lf", 1, &dV);56 fits_scan (&in[0].header, "CRPIX1", "%lf", 1, &xo);57 fits_scan (&in[0].header, "CRVAL2", "%lf", 1, &Bo);58 fits_scan (&in[0].header, "CDELT2", "%lf", 1, &dB);59 fits_scan (&in[0].header, "CRPIX2", "%lf", 1, &yo);60 fits_scan (&in[0].header, "CRVAL3", "%lf", 1, &L);54 gfits_scan (&in[0].header, "CRVAL1", "%lf", 1, &Vo); 55 gfits_scan (&in[0].header, "CDELT1", "%lf", 1, &dV); 56 gfits_scan (&in[0].header, "CRPIX1", "%lf", 1, &xo); 57 gfits_scan (&in[0].header, "CRVAL2", "%lf", 1, &Bo); 58 gfits_scan (&in[0].header, "CDELT2", "%lf", 1, &dB); 59 gfits_scan (&in[0].header, "CRPIX2", "%lf", 1, &yo); 60 gfits_scan (&in[0].header, "CRVAL3", "%lf", 1, &L); 61 61 Vo *= 0.001; 62 62 dV *= 0.001; 63 63 64 64 /* we expect the output image to have units of longitude and distance */ 65 fits_scan (&out[0].header, "CRVAL1", "%lf", 1, &Lo);66 fits_scan (&out[0].header, "CDELT1", "%lf", 1, &dL);67 fits_scan (&out[0].header, "CRPIX1", "%lf", 1, &Xo);68 fits_scan (&out[0].header, "CRVAL2", "%lf", 1, &Do);69 fits_scan (&out[0].header, "CDELT2", "%lf", 1, &dD);70 fits_scan (&out[0].header, "CRPIX2", "%lf", 1, &Yo);65 gfits_scan (&out[0].header, "CRVAL1", "%lf", 1, &Lo); 66 gfits_scan (&out[0].header, "CDELT1", "%lf", 1, &dL); 67 gfits_scan (&out[0].header, "CRPIX1", "%lf", 1, &Xo); 68 gfits_scan (&out[0].header, "CRVAL2", "%lf", 1, &Do); 69 gfits_scan (&out[0].header, "CDELT2", "%lf", 1, &dD); 70 gfits_scan (&out[0].header, "CRPIX2", "%lf", 1, &Yo); 71 71 72 72 while (L >= 360) {L -= 360.0;}
Note:
See TracChangeset
for help on using the changeset viewer.
