lsst.afw  13.0-49-g6f23dda
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
frameSetUtils.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 /*
3  * LSST Data Management System
4  * Copyright 2017 LSST Corporation.
5  *
6  * This product includes software developed by the
7  * LSST Project (http://www.lsst.org/).
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the LSST License Statement and
20  * the GNU General Public License along with this program. If not,
21  * see <http://www.lsstcorp.org/LegalNotices/>.
22  */
23 
24 #ifndef LSST_AFW_GEOM_FRAMESETUTILS_H
25 #define LSST_AFW_GEOM_FRAMESETUTILS_H
26 
27 #include <memory>
28 #include <vector>
29 
30 #include "astshim.h"
31 #include "ndarray.h"
32 
33 #include "lsst/afw/geom/Endpoint.h"
35 #include "lsst/daf/base/PropertyList.h"
36 
37 namespace lsst {
38 namespace afw {
39 namespace geom {
40 namespace detail {
41 
52 std::shared_ptr<ast::SkyFrame> getSkyFrame(ast::FrameSet const& frameSet, int index, bool copy);
53 
63 std::shared_ptr<daf::base::PropertyList> makeTanWcsMetadata(Point2D const& crpix, SpherePoint const& crval,
64  Eigen::Matrix2d const& cdMatrix);
65 
76 std::shared_ptr<ast::FrameSet> readFitsWcs(daf::base::PropertyList& metadata, bool strip = true);
77 
102 std::shared_ptr<ast::FrameSet> readLsstSkyWcs(daf::base::PropertyList& metadata, bool strip = true);
103 
104 } // namespace detail
105 } // namespace geom
106 } // namespace afw
107 } // namespace lsst
108 
109 #endif
Point in an unspecified spherical coordinate system.
Definition: SpherePoint.h:60
std::shared_ptr< daf::base::PropertyList > makeTanWcsMetadata(Point2D const &crpix, SpherePoint const &crval, Eigen::Matrix2d const &cdMatrix)
Make FITS metadata for a pure tangent WCS.
std::shared_ptr< ast::SkyFrame > getSkyFrame(ast::FrameSet const &frameSet, int index, bool copy)
Get the specified frame of a FrameSet as a SkyFrame.
std::shared_ptr< ast::FrameSet > readLsstSkyWcs(daf::base::PropertyList &metadata, bool strip=true)
Read an LSST sky WCS FrameSet from a FITS header: 0,0 is the lower left corner of the parent image...
table::PointKey< double > crval
Definition: Wcs.cc:929
std::shared_ptr< ast::FrameSet > readFitsWcs(daf::base::PropertyList &metadata, bool strip=true)
Read a FITS convention WCS FrameSet from FITS metadata.
table::PointKey< double > crpix
Definition: Wcs.cc:930
lsst::daf::base::PropertyList PropertyList
Definition: Wcs.cc:56