|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
Namespaces | |
| config | |
| mapperUtils | |
| skyTileUtils | |
Classes | |
| class | Arena |
| class | CsvReader |
| class | CsvWriter |
| struct | CsvControl |
| Parameters that define a Character-Separated-Value dialect. More... | |
| struct | CsvConversionControl |
| Catalog to CSV conversion parameters. More... | |
| class | PT1SkyTile |
| class | SmallPtrVector |
Functions | |
| void | writeCsv (BaseCatalog const &catalog, CsvConversionControl const &cnvControl, CsvControl const &csvControl, std::string const &csvFile, bool truncate, bool append) |
| Eigen::Vector3d const | earthPosition (double const epoch) |
| void | makeSourceHistogram (lsst::afw::image::Image< unsigned short >::Ptr histogram, lsst::afw::table::SourceCatalog const &sources, lsst::afw::image::Wcs::Ptr wcs, bool ignoreOffImage) |
| void | rasterizePolygon (std::vector< Point2D > const &verts, lsst::afw::image::Image< float >::Ptr img) |
| void | updateCoverageMap (lsst::afw::image::Image< float >::Ptr covMap, lsst::afw::image::Wcs::Ptr covMapWcs, lsst::afw::image::Wcs::Ptr wcs, int width, int height, int step) |
| void | thetaRangeReduce (Angle &min, Angle &max) |
| Angle const | maxAlpha (Angle radius, Angle centerPhi) |
| void | positionAndVelocity (Eigen::Vector3d &p, Eigen::Vector3d &v, Angle ra, Angle decl, double muRa, double muDecl, double vRadial, Angle parallax) |
| Eigen::Vector2d const | cartesianToSpherical (Eigen::Vector3d const &v) |
| template<> | |
| std::string | CsvReader::_null< std::string > () |
| template<> | |
| std::string | CsvReader::_get< std::string > (char const *field) const |
| template<typename T > | |
| CsvWriter & | operator<< (CsvWriter &w, T const &v) |
| CsvWriter & | endr (CsvWriter &w) |
| CsvWriter & | flush (CsvWriter &w) |
| CsvWriter & | nullf (CsvWriter &w) |
| template<typename T > | |
| CsvWriter & | operator<< (CsvWriter &w, CsvWriter &(*manip)(CsvWriter &)) |
| template<typename T > | |
| CsvWriter & | operator<< (CsvWriter &, CsvWriter &(*)(CsvWriter &)) |
| void | writeCsv (lsst::afw::table::BaseCatalog const &catalog, CsvConversionControl const &cnvControl, CsvControl const &csvControl, std::string const &csvFile, bool truncate, bool append) |
| Convert an afw Catalog to a CSV file. More... | |
| void | rasterizePolygon (std::vector< lsst::afw::geom::Point2D > const &verts, lsst::afw::image::Image< float >::Ptr img) |
| lsst::afw::geom::Angle const | clampPhi (lsst::afw::geom::Angle const a) |
| lsst::afw::coord::IcrsCoord const | cartesianToIcrs (Eigen::Vector3d const &v) |
| lsst::afw::geom::Angle const | angularSeparation (Eigen::Vector3d const &v1, Eigen::Vector3d const &v2) |
|
inline |
Returns the angular separation between two 3-vectors of arbitrary magnitude.
Definition at line 83 of file SpatialUtils.h.
|
inline |
Definition at line 74 of file SpatialUtils.h.
| Eigen::Vector2d const lsst::ap::utils::cartesianToSpherical | ( | Eigen::Vector3d const & | v | ) |
Converts the input position vector, which need not have unit magnitude, to spherical coordinates (rad).
Definition at line 161 of file SpatialUtils.cc.
|
inline |
Clamps the given latitude/declination to [-PI/2, PI/2] radians.
Definition at line 45 of file SpatialUtils.h.
|
inline |
|
inline |
| Eigen::Vector3d const lsst::ap::utils::earthPosition | ( | double const | epoch | ) |
Returns the barycentric coordinates (in AU) of the earth at the specified epoch. Note that this is a relatively expensive function - one invocation will result in the evaluation of several thousand cosines. The cost is independent of the input epoch, but the accuracy of the method deteriorates for epochs not in the 1900-2100 timespan.
This function is nearly identical to the IAU SOFA iauEpv00 C astronomy library routine, available at: http://www.iausofa.org/2009_1231_C/sofa/epv00.c
It differs from the IAU reference function in the following ways:
Comparisons of the IAU iauEpv00() function with the JPL DE405 ephemeris over the 1900-2100 time span yields a maximum deviation of 13.4 km with an RMS of 4.6 km. Comparisons with the JPL DE406 ephemeris show that by 1800 and 2200 the position errors are approximately double their 1900-2100 size. By 1500 and 2500 the deterioration is a factor of 10 and by 1000 and 3000 a factor of 60.
| epoch | epoch, MJD TDB. Using TT is acceptable for most applications. |
Definition at line 1794 of file EarthPosition.cc.
|
inline |
|
inline |
| void lsst::ap::utils::makeSourceHistogram | ( | lsst::afw::image::Image< unsigned short >::Ptr | histogram, |
| lsst::afw::table::SourceCatalog const & | sources, | ||
| lsst::afw::image::Wcs::Ptr | wcs, | ||
| bool | ignoreOffImage | ||
| ) |
Fills in a histogram of positions for the given sources. The value of each histogram pixel is set to the number of sources falling within that pixel. Sources falling outside the histogram image are either ignored or cause an exception to be raised.
| [in,out] | histogram | Histogram image to update. |
| [in] | sources | Sources to generate a position histogram from. |
| [in] | wcs | WCS of histogram image. |
| [in] | ignoreOffImage | If true ignore off image sources, otherwise raise an exception. |
Definition at line 412 of file ImageUtils.cc.
| lsst::afw::geom::Angle const lsst::ap::utils::maxAlpha | ( | Angle | radius, |
| Angle | centerPhi | ||
| ) |
Computes the extent in longitude angle [-alpha, alpha] of the circle with radius radius and center at latitude angle centerPhi.
radius >= 0.0 && radius <= PI/2 Note that centerPhi is clamped to lie in [-PI/2, PI/2].
| radius | circle radius |
| centerPhi | latitude angle of circle center |
Definition at line 79 of file SpatialUtils.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Output operator that applies a manipulator to a CSV writer.
| void lsst::ap::utils::positionAndVelocity | ( | Eigen::Vector3d & | p, |
| Eigen::Vector3d & | v, | ||
| Angle | ra, | ||
| Angle | decl, | ||
| double | muRa, | ||
| double | muDecl, | ||
| double | vRadial, | ||
| Angle | parallax | ||
| ) |
Converts from spherical coordinates, proper motions, parallax and radial velocity to position (AU) and velocity (AU/day) 3-vectors.
| [out] | p | position, AU |
| [out] | v | velocity, AU/day |
| ra | right ascension | |
| decl | declination | |
| muRa | proper motion in RA, rad/day | |
| muDecl | proper motion in Dec, rad/day | |
| vRadial | radial velocity, AU/day | |
| parallax | parallax |
Definition at line 126 of file SpatialUtils.cc.
| void lsst::ap::utils::rasterizePolygon | ( | std::vector< lsst::afw::geom::Point2D > const & | verts, |
| lsst::afw::image::Image< float >::Ptr | img | ||
| ) |
| void lsst::ap::utils::rasterizePolygon | ( | std::vector< Point2D > const & | verts, |
| lsst::afw::image::Image< float >::Ptr | img | ||
| ) |
Rasterizes the (not necessarily convex) polygon obtained by connecting the the given vertices. For each pixel in the output image, the fraction of the pixel area overlapping the input polygon is stored.
| [in,out] | img | Image to rasterize to. |
| [in] | verts | Polygon vertices |
Definition at line 443 of file ImageUtils.cc.
Reduces a theta (longitude/right-ascension) range. The resulting range will have min > max if it wraps across the 0/2*PI radiandiscontinuity. Valid inputs are:
min, max with min <= max min > max so long as min <= 2*PI && max >= 0.0 Definition at line 56 of file SpatialUtils.cc.
| void lsst::ap::utils::updateCoverageMap | ( | lsst::afw::image::Image< float >::Ptr | covMap, |
| lsst::afw::image::Wcs::Ptr | covMapWcs, | ||
| lsst::afw::image::Wcs::Ptr | wcs, | ||
| int | width, | ||
| int | height, | ||
| int | step | ||
| ) |
Updates a coverage map to include contributions from the given image (specified by a WCS and a pair of dimensions).
| [in,out] | covMap | Coverage map to update. |
| [in] | covMapWcs | WCS of coverage map. |
| [in] | wcs | WCS of image to rasterize. |
| [in] | width | Width of image to rasterize. |
| [in] | height | Height of image to rasterize. |
| [in] | step | If <= 0, the input image is rasterized as a polygon formed by connecting the positions of the 4 image corners with straight lines in coverage-map pixel space. Otherwise, the boundary of the input image is rasterize by connecting step boundary pixels at a time (corners are always included). |
Definition at line 515 of file ImageUtils.cc.
| void lsst::ap::utils::writeCsv | ( | lsst::afw::table::BaseCatalog const & | catalog, |
| CsvConversionControl const & | cnvControl, | ||
| CsvControl const & | csvControl, | ||
| std::string const & | csvFile, | ||
| bool | truncate, | ||
| bool | append | ||
| ) |
Convert an afw Catalog to a CSV file.
| catalog | ||
| [in] | catalog | Catalog to convert. |
| cnvControl | ||
| [in] | cnvControl | Conversion parameters. |
| csvControl | ||
| [in] | csvControl | CSV dialect. |
| csvFile | ||
| [in] | csvFile | Name of file to write to |
| truncate | ||
| [in] | truncate | Truncate csvFile if it already exists? |
| append | ||
| [in] | append | Append to csvFile if it exists and truncate is false? |
| void lsst::ap::utils::writeCsv | ( | BaseCatalog const & | catalog, |
| CsvConversionControl const & | cnvControl, | ||
| CsvControl const & | csvControl, | ||
| std::string const & | csvFile, | ||
| bool | truncate, | ||
| bool | append | ||
| ) |
Definition at line 335 of file csvUtils.cc.
1.8.5