lsst.afw
g3a5ebb7d8a+28b83bf6a5
Toggle main menu visibility
Loading...
Searching...
No Matches
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
105
void
stripWcsMetadata
(
daf::base::PropertySet
&metadata);
106
115
std::shared_ptr<daf::base::PropertyList>
getPropertyListFromFitsChan
(
ast::FitsChan
& fitsChan);
116
127
ast::FitsChan
getFitsChanFromPropertyList
(
daf::base::PropertySet
& metadata,
128
std::set<std::string>
const
& excludeNames = {},
129
std::string
options =
""
);
130
131
}
// namespace detail
132
}
// namespace geom
133
}
// namespace afw
134
}
// namespace lsst
135
136
#endif
Endpoint.h
PropertyList.h
PropertySet.h
Transform.h
astshim.h
std::string
ast::FitsChan
lsst::daf::base::PropertySet
lsst::afw::geom::detail
Definition
frameSetUtils.h:41
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:82
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:361
lsst::afw::geom::detail::stripWcsMetadata
void stripWcsMetadata(daf::base::PropertySet &metadata)
Strip all WCS metadata from a header.
Definition
frameSetUtils.cc:134
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:179
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:296
lsst::afw
Definition
imageAlgorithm.dox:1
lsst::geom
lsst
std::set
std::shared_ptr
Generated on
for lsst.afw by
1.17.0