summaryrefslogtreecommitdiffstats
path: root/tksao/frame/fitsimage.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/fitsimage.C')
-rw-r--r--tksao/frame/fitsimage.C61
1 files changed, 0 insertions, 61 deletions
diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C
index 2b2d09f..615e07c 100644
--- a/tksao/frame/fitsimage.C
+++ b/tksao/frame/fitsimage.C
@@ -2812,36 +2812,6 @@ VectorStr FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
return VectorStr(astFormat(ast_,1,out[0]), astFormat(ast_,2,out[1]));
}
-// waj
-char* FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
- Coord::SkyFrame sky, Coord::SkyFormat format,
- char* lbuf)
-{
- astClearStatus; // just to make sure
- astBegin; // start memory management
-
- lbuf[0] = '\0';
-
- if (!hasWCS(sys))
- return lbuf;
-
- setWCSSystem(sys);
- setWCSSkyFrame(sky);
-
- Vector out = wcsTran(ast_, in, 1);
- if (astOK && checkWCS(out)) {
- setWCSFormat(sys,sky,format);
- astNorm(ast_, out.v);
-
- ostringstream str;
- str << astFormat(ast_,1,out[0]) << ' ' << astFormat(ast_,2,out[1]) << ends;
- strncpy(lbuf, str.str().c_str(), str.str().length());
- }
-
- astEnd;
- return lbuf;
-}
-
Vector3d FitsImage::pix2wcs(const Vector3d& in, Coord::CoordSystem sys,
Coord::SkyFrame sky)
{
@@ -2889,37 +2859,6 @@ VectorStr3d FitsImage::pix2wcs(const Vector3d& in, Coord::CoordSystem sys,
astFormat(ast_,3,out[2]));
}
-// waj
-char* FitsImage::pix2wcs(const Vector3d& in, Coord::CoordSystem sys,
- Coord::SkyFrame sky, Coord::SkyFormat format,
- char* lbuf)
-{
- astClearStatus; // just to make sure
- astBegin; // start memory management
-
- lbuf[0] = '\0';
-
- if (!(hasWCS(sys) && hasWCS3D(sys)))
- return lbuf;
-
- setWCSSystem(sys);
- setWCSSkyFrame(sky);
-
- Vector3d out = wcsTran(ast_, in, 1);
- if (astOK && checkWCS(out)) {
- setWCSFormat(sys,sky,format);
- astNorm(ast_, out.v);
-
- ostringstream str;
- str << astFormat(ast_,1,out[0]) << ' ' << astFormat(ast_,2,out[1])
- << ' ' << astFormat(ast_,3,out[2]) << ends;
- strncpy(lbuf, str.str().c_str(), str.str().length());
- }
-
- astEnd;
- return lbuf;
-}
-
Vector FitsImage::wcs2pix(const Vector& vv, Coord::CoordSystem sys,
Coord::SkyFrame sky)
{