lsst.afw
20.0.0-11-g7b7d0ee7e+614f89f815
include
lsst
afw
geom
detail
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
"
34
#include "
lsst/afw/geom/Transform.h
"
35
#include "
lsst/daf/base/PropertyList.h
"
36
#include "
lsst/daf/base/PropertySet.h
"
37
38
namespace
lsst
{
39
namespace
afw {
40
namespace
geom {
41
namespace
detail {
42
63
std::shared_ptr<ast::FrameSet>
readFitsWcs
(
daf::base::PropertySet
& metadata,
bool
strip
=
true
);
64
98
std::shared_ptr<ast::FrameDict>
readLsstSkyWcs
(
daf::base::PropertySet
& metadata,
bool
strip
=
true
);
99
108
std::shared_ptr<daf::base::PropertyList>
getPropertyListFromFitsChan
(
ast::FitsChan
& fitsChan);
109
120
ast::FitsChan
getFitsChanFromPropertyList
(
daf::base::PropertySet
& metadata,
121
std::set<std::string>
const
& excludeNames = {},
122
std::string
options =
""
);
123
124
}
// namespace detail
125
}
// namespace geom
126
}
// namespace afw
127
}
// namespace lsst
128
129
#endif
std::string
STL class.
std::shared_ptr
STL class.
PropertyList.h
lsst::afw::geom::detail::getPropertyListFromFitsChan
std::shared_ptr< daf::base::PropertyList > getPropertyListFromFitsChan(ast::FitsChan &fitsChan)
Copy values from an AST FitsChan into a PropertyList.
Definition:
frameSetUtils.cc:256
ast::FitsChan
Endpoint.h
lsst::afw::geom::detail::getFitsChanFromPropertyList
ast::FitsChan getFitsChanFromPropertyList(daf::base::PropertySet &metadata, std::set< std::string > const &excludeNames={}, std::string options="")
Construct AST FitsChan from PropertyList.
Definition:
frameSetUtils.cc:321
lsst::afw::geom::detail::readLsstSkyWcs
std::shared_ptr< ast::FrameDict > readLsstSkyWcs(daf::base::PropertySet &metadata, bool strip=true)
Read an LSST celestial WCS FrameDict from a FITS header.
Definition:
frameSetUtils.cc:139
strip
bool strip
Definition:
fits.cc:911
PropertySet.h
astshim.h
lsst::afw::geom::detail::readFitsWcs
std::shared_ptr< ast::FrameSet > readFitsWcs(daf::base::PropertySet &metadata, bool strip=true)
Read a FITS convention WCS FrameSet from FITS metadata.
Definition:
frameSetUtils.cc:87
lsst
A base class for image defects.
Transform.h
lsst::daf::base::PropertySet
std::set
STL class.
Generated on Thu Oct 29 2020 01:55:05 for lsst.afw by
1.8.18