lsst.afw  14.0
 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/coord/Coord.h"
34 #include "lsst/afw/geom/Endpoint.h"
36 #include "lsst/daf/base/PropertyList.h"
37 
38 namespace lsst {
39 namespace afw {
40 namespace geom {
41 namespace detail {
42 
53 std::shared_ptr<ast::SkyFrame> getSkyFrame(ast::FrameSet const& frameSet, int index, bool copy);
54 
64 std::shared_ptr<daf::base::PropertyList> makeTanWcsMetadata(Point2D const& crpix,
65  coord::IcrsCoord const& crval,
66  Eigen::Matrix2d const& cdMatrix);
67 
78 std::shared_ptr<ast::FrameSet> readFitsWcs(daf::base::PropertyList& metadata, bool strip = true);
79 
104 std::shared_ptr<ast::FrameSet> readLsstSkyWcs(daf::base::PropertyList& metadata, bool strip = true);
105 
106 } // namespace detail
107 } // namespace geom
108 } // namespace afw
109 } // namespace lsst
110 
111 #endif
std::shared_ptr< daf::base::PropertyList > makeTanWcsMetadata(Point2D const &crpix, coord::IcrsCoord 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.
table::Key< std::string > frameSet
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.
A class to handle Icrs coordinates (inherits from Coord)
Definition: Coord.h:288
table::PointKey< double > crpix
Definition: Wcs.cc:930
lsst::daf::base::PropertyList PropertyList
Definition: Wcs.cc:56