PCL
AstrometricMetadata.h
Go to the documentation of this file.
1 // ____ ______ __
2 // / __ \ / ____// /
3 // / /_/ // / / /
4 // / ____// /___ / /___ PixInsight Class Library
5 // /_/ \____//_____/ PCL 2.8.5
6 // ----------------------------------------------------------------------------
7 // pcl/AstrometricMetadata.h - Released 2024-12-28T16:53:48Z
8 // ----------------------------------------------------------------------------
9 // This file is part of the PixInsight Class Library (PCL).
10 // PCL is a multiplatform C++ framework for development of PixInsight modules.
11 //
12 // Copyright (c) 2003-2024 Pleiades Astrophoto S.L. All Rights Reserved.
13 //
14 // Redistribution and use in both source and binary forms, with or without
15 // modification, is permitted provided that the following conditions are met:
16 //
17 // 1. All redistributions of source code must retain the above copyright
18 // notice, this list of conditions and the following disclaimer.
19 //
20 // 2. All redistributions in binary form must reproduce the above copyright
21 // notice, this list of conditions and the following disclaimer in the
22 // documentation and/or other materials provided with the distribution.
23 //
24 // 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
25 // of their contributors, may be used to endorse or promote products derived
26 // from this software without specific prior written permission. For written
27 // permission, please contact info@pixinsight.com.
28 //
29 // 4. All products derived from this software, in any form whatsoever, must
30 // reproduce the following acknowledgment in the end-user documentation
31 // and/or other materials provided with the product:
32 //
33 // "This product is based on software from the PixInsight project, developed
34 // by Pleiades Astrophoto and its contributors (https://pixinsight.com/)."
35 //
36 // Alternatively, if that is where third-party acknowledgments normally
37 // appear, this acknowledgment must be reproduced in the product itself.
38 //
39 // THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
40 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
41 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
43 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
44 // EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
45 // INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
46 // DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 // POSSIBILITY OF SUCH DAMAGE.
50 // ----------------------------------------------------------------------------
51 
52 #ifndef __PCL_AstrometricMetadata_h
53 #define __PCL_AstrometricMetadata_h
54 
56 
57 #include <pcl/Defs.h>
58 
59 #include <pcl/AutoPointer.h>
60 #include <pcl/Optional.h>
61 #include <pcl/Point.h>
62 #include <pcl/ProjectionBase.h>
63 #include <pcl/Property.h>
64 #include <pcl/SphericalRotation.h>
65 #include <pcl/TimePoint.h>
66 #include <pcl/WCSKeywords.h>
68 
69 /*
70  * Based on original work contributed by AndrĂ©s del Pozo.
71  */
72 
73 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
74 namespace pi
75 {
76  class ImageWindow;
77 }
78 #endif
79 
80 namespace pcl
81 {
82 
83 // ----------------------------------------------------------------------------
84 
97 // ----------------------------------------------------------------------------
98 
99 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
100 class PCL_CLASS ImageWindow;
101 #endif
102 
103 class PCL_CLASS XISFReader;
104 class PCL_CLASS XISFWriter;
105 
112 class PCL_CLASS AstrometricMetadata
113 {
114 public:
115 
122  {
123  String referenceMatrix;
124  String wcsTransformationType;
125  String controlPoints;
126  String splineLengths;
127  String splineErrors;
128  String projectionName;
129  String projectionOrigin;
130  String resolution;
131  String rotation;
132  String referenceSystem;
133  String observationStartTime;
134  String observationEndTime;
135  String observerLocation;
136  String focalDistance;
137  String pixelSize;
138  String fieldOfView;
139  String centerCoordinates;
140  String topLeftCoordinates;
141  String topRightCoordinates;
142  String bottomLeftCoordinates;
143  String bottomRightCoordinates;
144  String referenceCatalog;
145  String creationTime;
146  String creationSoftware;
147  };
148 
153  AstrometricMetadata() = default;
154 
159  : m_projection( x.m_projection->Clone() )
160  , m_transformWI( x.m_transformWI->Clone() )
161  , m_refSys( x.m_refSys )
162  , m_width( x.m_width )
163  , m_height( x.m_height )
164  , m_pixelSize( x.m_pixelSize )
165  , m_obsStartTime( x.m_obsStartTime )
166  , m_obsEndTime( x.m_obsEndTime )
167  , m_geoLongitude( x.m_geoLongitude )
168  , m_geoLatitude( x.m_geoLatitude )
169  , m_geoHeight( x.m_geoHeight )
170  , m_resolution( x.m_resolution )
171  , m_focalLength( x.m_focalLength )
172  , m_creationTime( x.m_creationTime )
173  , m_catalog( x.m_catalog )
174  , m_creatorApp( x.m_creatorApp )
175  , m_creatorModule( x.m_creatorModule )
176  , m_creatorOS( x.m_creatorOS )
177  , m_description( x.m_description )
178  {
179  }
180 
185 
205  AstrometricMetadata( ProjectionBase* projection, WorldTransformation* worldTransformation, int width, int height );
206 
207 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
208  // Implemented in /core/Components/ImageWindow/ImageWindow.cpp
209  AstrometricMetadata( const pi::ImageWindow* );
210 #else
216 #endif
217 
223 
228  {
229  }
230 
234  AstrometricMetadata& operator =( const AstrometricMetadata& x )
235  {
236  m_projection = x.m_projection->Clone();
237  m_transformWI = x.m_transformWI->Clone();
238  m_refSys = x.m_refSys;
239  m_equinox = x.m_equinox;
240  m_width = x.m_width;
241  m_height = x.m_height;
242  m_pixelSize = x.m_pixelSize;
243  m_obsStartTime = x.m_obsStartTime;
244  m_obsEndTime = x.m_obsEndTime;
245  m_geoLongitude = x.m_geoLongitude;
246  m_geoLatitude = x.m_geoLatitude;
247  m_geoHeight = x.m_geoHeight;
248  m_resolution = x.m_resolution;
249  m_focalLength = x.m_focalLength;
250  m_creationTime = x.m_creationTime;
251  m_catalog = x.m_catalog;
252  m_creatorApp = x.m_creatorApp;
253  m_creatorModule = x.m_creatorModule;
254  m_creatorOS = x.m_creatorOS;
255  m_description = x.m_description;
256  return *this;
257  }
258 
262  AstrometricMetadata& operator =( AstrometricMetadata&& ) = default;
263 
268  bool IsValid() const
269  {
270  return !m_projection.IsNull() && !m_transformWI.IsNull();
271  }
272 
303  void Verify( DPoint& centerErrors,
304  DPoint& topLeftErrors, DPoint& topRightErrors,
305  DPoint& bottomLeftErrors, DPoint& bottomRightErrors ) const;
306 
324  void Validate( double tolerance = 0.01 ) const;
325 
333  {
334  return dynamic_cast<const SplineWorldTransformation*>( m_transformWI.Pointer() ) != nullptr;
335  }
336 
349 
356 
357 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
358  // Implemented in /core/Components/ImageWindow/ImageWindow.cpp
359  void Write( pi::ImageWindow* window, bool notify = true ) const;
360 #else
374  void Write( ImageWindow& window, bool notify = true ) const;
375 #endif
376 
393  void Write( XISFWriter& writer ) const;
394 
424  {
425  return m_refSys.IsEmpty() ? IsoString( "ICRS" ) : m_refSys;
426  }
427 
432  void SetReferenceSystem( const IsoString& refSys )
433  {
434  m_refSys = refSys.Trimmed();
435  }
436 
458  static IsoString ReferenceSystemFromMetadata( const PropertyArray& properties, const FITSKeywordArray& keywords );
459 
464  int Width() const
465  {
466  return m_width;
467  }
468 
473  int Height() const
474  {
475  return m_height;
476  }
477 
488  Rect Bounds() const
489  {
490  return Rect( m_width, m_height );
491  }
492 
497  const ProjectionBase* Projection() const
498  {
499  return m_projection.Pointer();
500  }
501 
507  {
508  return m_transformWI.Pointer();
509  }
510 
511 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
512  WorldTransformation* WorldTransform()
513  {
514  return m_transformWI.Pointer();
515  }
516 #endif
517 
522  double ResolutionFromFocal( double focal ) const
523  {
524  return (focal > 0) ? m_pixelSize.OrElse( 0 )/focal * 0.18/Const<double>::pi() : 0.0;
525  }
526 
531  double FocalFromResolution( double resolution ) const
532  {
533  return ResolutionFromFocal( resolution );
534  }
535 
546  double Rotation( bool& flipped ) const;
547 
558  double Resolution() const
559  {
560  return m_resolution;
561  }
562 
576  template <typename T>
577  double ResolutionAt( const GenericPoint<T>& pI ) const
578  {
579  if ( !IsValid() )
580  throw Error( "AstrometricMetadata::ResolutionAt(): No astrometric solution." );
581  DPoint pRD1, pRD2, pRD3, pRD4;
582  if ( !ImageToCelestial( pRD1, DPoint( pI.x, pI.y - 0.5 ) )
583  || !ImageToCelestial( pRD2, DPoint( pI.x, pI.y + 0.5 ) )
584  || !ImageToCelestial( pRD3, DPoint( pI.x - 0.5, pI.y ) )
585  || !ImageToCelestial( pRD4, DPoint( pI.x + 0.5, pI.y ) ) )
586  {
587  throw Error( "AstrometricMetadata::ResolutionAt(): Failed to perform coordinate transformation(s)." );
588  }
589  return 0.5*(m_projection->Distance( pRD1, pRD2 ) + m_projection->Distance( pRD3, pRD4 ));
590  }
591 
599  double SearchRadius() const
600  {
601  if ( !IsValid() )
602  throw Error( "AstrometricMetadata::SearchRadius(): No astrometric solution." );
603  DPoint cRD;
604  if ( !ImageToCelestial( cRD, DPoint( 0.5*m_width, 0.5*m_height ) ) )
605  throw Error( "AstrometricMetadata::SearchRadius(): Failed to perform coordinate transformation." );
606  DPoint pRD1, pRD2, pRD3, pRD4;
607  if ( !ImageToCelestial( pRD1, DPoint( 0, 0 ) )
608  || !ImageToCelestial( pRD2, DPoint( m_width, 0 ) )
609  || !ImageToCelestial( pRD3, DPoint( 0, m_height ) )
610  || !ImageToCelestial( pRD4, DPoint( m_width, m_height ) ) )
611  {
612  return 180;
613  }
614  return Max( Max( Max( m_projection->Distance( cRD, pRD1 ), m_projection->Distance( cRD, pRD2 ) ),
615  m_projection->Distance( cRD, pRD3 ) ),
616  m_projection->Distance( cRD, pRD4 ) );
617  }
618 
624  {
625  return m_obsStartTime;
626  }
627 
633  {
634  m_obsStartTime = startTime;
635  }
636 
642  {
643  return m_obsEndTime;
644  }
645 
651  {
652  m_obsEndTime = endTime;
653  }
654 
662  {
663  if ( !m_obsStartTime.IsDefined() )
664  return Optional<TimePoint>();
665  if ( !m_obsEndTime.IsDefined() )
666  return m_obsStartTime;
667  return m_obsStartTime() + (m_obsEndTime() - m_obsStartTime())/2;
668  }
669 
676  {
677  return m_geoLongitude;
678  }
679 
688  void SetLocationLongitude( double longitude )
689  {
690  if ( longitude > 180 )
691  longitude -= 360;
692  else if ( longitude <= -180 )
693  longitude += 360;
694  if ( longitude < -180 || longitude > +180 )
695  throw Error( "AstrometricMetadata::SetLocationLongitude(): Geographic longitude out of range." );
696  m_geoLongitude = longitude;
697  }
698 
705  {
706  return m_geoLatitude;
707  }
708 
717  void SetLocationLatitude( double latitude )
718  {
719  if ( latitude < -90 || latitude > +90 )
720  throw Error( "AstrometricMetadata::SetLocationLatitude(): Geographic latitude out of range." );
721  m_geoLatitude = latitude;
722  }
723 
729  {
730  return m_geoHeight;
731  }
732 
736  void SetLocationHeight( double height )
737  {
738  m_geoHeight = height;
739  }
740 
750  {
751  m_geoLongitude.Undefine();
752  m_geoLatitude.Undefine();
753  m_geoHeight.Undefine();
754  }
755 
760  {
761  return m_pixelSize;
762  }
763 
768  void SetPixelSize( double pixelSize )
769  {
770  m_pixelSize = pixelSize;
771  m_focalLength = FocalFromResolution( m_resolution );
772  }
773 
780  {
781  return m_creationTime;
782  }
783 
789  String Catalog() const
790  {
791  return m_catalog;
792  }
793 
800  {
801  return m_creatorApp;
802  }
803 
811  {
812  return m_creatorModule;
813  }
814 
822  {
823  return m_creatorOS;
824  }
825 
849  bool ImageToCelestial( DPoint& pRD, const DPoint& pI ) const
850  {
851  if ( !IsValid() )
852  throw Error( "AstrometricMetadata::ImageToCelestial(): No astrometric solution." );
853  if ( m_projection->Inverse( pRD, m_transformWI->Inverse( pI ) ) )
854  {
855  // Constrain right ascension to the [0,360) range.
856  if ( pRD.x < 0 )
857  pRD.x += 360;
858  else if ( pRD.x >= 360 )
859  pRD.x -= 360;
860  return true;
861  }
862  return false;
863  }
864 
895  bool RawImageToCelestial( DPoint& pRD, const DPoint& pI ) const
896  {
897  if ( !IsValid() )
898  throw Error( "AstrometricMetadata::RawImageToCelestial(): No astrometric solution." );
899  return m_projection->Inverse( pRD, m_transformWI->Inverse( pI ) );
900  }
901 
925  bool ImageCenterToCelestial( DPoint& pRD ) const
926  {
927  return ImageToCelestial( pRD, DPoint( 0.5*m_width, 0.5*m_height ) );
928  }
929 
950  bool CelestialToImage( DPoint& pI, const DPoint& pRD ) const
951  {
952  if ( !IsValid() )
953  throw Error( "AstrometricMetadata::CelestialToImage(): No astrometric solution." );
954  DPoint pW;
955  if ( m_projection->Direct( pW, pRD ) )
956  {
957  pI = m_transformWI->Direct( pW );
958  return true;
959  }
960  return false;
961  }
962 
1048  void Build( const PropertyArray& properties, const FITSKeywordArray& keywords, int width, int height, bool regenerate = false );
1049 
1097 
1125  void UpdateBasicKeywords( FITSKeywordArray& keywords ) const;
1126 
1170  void UpdateWCSKeywords( FITSKeywordArray& keywords, bool generate = false ) const;
1171 
1232  void UpdateProperties( PropertyArray& properties ) const;
1233 
1243  {
1244  m_obsStartTime.Undefine();
1245  m_obsEndTime.Undefine();
1246  m_geoLongitude.Undefine();
1247  m_geoLatitude.Undefine();
1248  m_geoHeight.Undefine();
1249  }
1250 
1260  {
1261  m_obsStartTime = source.m_obsStartTime;
1262  m_obsEndTime = source.m_obsEndTime;
1263  m_geoLongitude = source.m_geoLongitude;
1264  m_geoLatitude = source.m_geoLatitude;
1265  m_geoHeight = source.m_geoHeight;
1266  }
1267 
1277  {
1278  if ( wcs.dateobs.IsDefined() )
1279  m_obsStartTime = TimePoint( wcs.dateobs() );
1280  else
1281  m_obsStartTime.Undefine();
1282 
1283  if ( wcs.dateend.IsDefined() )
1284  m_obsEndTime = TimePoint( wcs.dateend() );
1285  else
1286  m_obsEndTime.Undefine();
1287 
1288  m_geoLongitude = wcs.longobs;
1289  m_geoLatitude = wcs.latobs;
1290  m_geoHeight = wcs.altobs;
1291  }
1292 
1348  static void RemoveKeywords( FITSKeywordArray& keywords, bool removeCenterKeywords = true, bool removeScaleKeywords = true );
1349 
1366  static void RescalePixelSizeKeywords( FITSKeywordArray& keywords, double scalingFactor );
1367 
1416  static void RemoveProperties( PropertyArray& properties, bool removeCenterProperties = true, bool removeScaleProperties = true );
1417 
1425  static void RemoveProperties( ImageWindow& window, bool removeCenterProperties = true, bool removeScaleProperties = true );
1426 
1442  static void RescalePixelSizeProperties( PropertyArray& properties, double scalingFactor );
1443 
1451  static void RescalePixelSizeProperties( ImageWindow& window, double scalingFactor );
1452 
1457  String Summary() const;
1458 
1469  {
1470  UpdateDescription();
1471  return m_description.IsNull() ? DescriptionItems() : *m_description;
1472  }
1473 
1484 
1495 
1499  static void RemoveSplineWorldTransformationProperties( PropertyArray& );
1500 
1501 #ifdef __PCL_BUILDING_PIXINSIGHT_APPLICATION
1502  // Implemented in /core/Components/ImageWindow/ImageWindow.cpp
1503  static void RemoveSplineWorldTransformationProperties( pi::ImageWindow* );
1504 #else
1508  static void RemoveSplineWorldTransformationProperties( ImageWindow& );
1509 #endif
1510 
1511 private:
1512 
1513  AutoPointer<ProjectionBase> m_projection;
1514  AutoPointer<WorldTransformation> m_transformWI;
1515  IsoString m_refSys; // ICRS(default) or GCRS
1516  Optional<double> m_equinox; // years - deprecated
1517  int m_width = 0; // px
1518  int m_height = 0; // px
1519  Optional<double> m_pixelSize; // um
1520  Optional<TimePoint> m_obsStartTime; // UTC
1521  Optional<TimePoint> m_obsEndTime; // UTC
1522  Optional<double> m_geoLongitude; // deg
1523  Optional<double> m_geoLatitude; // deg
1524  Optional<double> m_geoHeight; // m
1525  double m_resolution = 0; // deg/px
1526  Optional<double> m_focalLength; // mm
1527  Optional<TimePoint> m_creationTime;
1528  String m_catalog;
1529  String m_creatorApp;
1530  String m_creatorModule;
1531  String m_creatorOS;
1532  mutable
1533  AutoPointer<DescriptionItems> m_description;
1534 
1535  WCSKeywords ComputeWCSKeywords() const;
1536  void UpdateDescription() const;
1537 };
1538 
1539 } //pcl
1540 
1541 #endif // __AstrometricMetadata_h
1542 
1543 // ----------------------------------------------------------------------------
1544 // EOF pcl/AstrometricMetadata.h - Released 2024-12-28T16:53:48Z
Generic dynamic array.
Definition: Array.h:100
Astrometric metadata.
void CopyTimeAndLocationMetadata(const WCSKeywords &wcs)
Optional< TimePoint > ObservationEndTime() const
void Verify(DPoint &centerErrors, DPoint &topLeftErrors, DPoint &topRightErrors, DPoint &bottomLeftErrors, DPoint &bottomRightErrors) const
bool HasSplineWorldTransformation() const
void UpdateProperties(PropertyArray &properties) const
double Rotation(bool &flipped) const
static void RemoveKeywords(FITSKeywordArray &keywords, bool removeCenterKeywords=true, bool removeScaleKeywords=true)
AstrometricMetadata(const ImageWindow &window)
bool CelestialToImage(DPoint &pI, const DPoint &pRD) const
void SetLocationLatitude(double latitude)
AstrometricMetadata(ProjectionBase *projection, WorldTransformation *worldTransformation, int width, int height)
bool ImageCenterToCelestial(DPoint &pRD) const
bool RawImageToCelestial(DPoint &pRD, const DPoint &pI) const
AstrometricMetadata(AstrometricMetadata &&)=default
void SetLocationLongitude(double longitude)
void Write(XISFWriter &writer) const
DescriptionItems Description() const
static IsoString ReferenceSystemFromMetadata(const PropertyArray &properties, const FITSKeywordArray &keywords)
static void RescalePixelSizeProperties(ImageWindow &window, double scalingFactor)
Optional< double > LocationLongitude() const
AstrometricMetadata Undistorted() const
bool EnsureSplineGridInterpolationsInitialized(int deltaI=16)
const ProjectionBase * Projection() const
AstrometricMetadata(XISFReader &reader)
const WorldTransformation * WorldTransform() const
static void RescalePixelSizeProperties(PropertyArray &properties, double scalingFactor)
void SetLocationHeight(double height)
Optional< double > LocationLatitude() const
bool ImageToCelestial(DPoint &pRD, const DPoint &pI) const
Optional< TimePoint > ObservationMiddleTime() const
IsoString ReferenceSystem() const
double ResolutionAt(const GenericPoint< T > &pI) const
void SetReferenceSystem(const IsoString &refSys)
static void RemoveProperties(PropertyArray &properties, bool removeCenterProperties=true, bool removeScaleProperties=true)
PropertyArray ToProperties() const
void Validate(double tolerance=0.01) const
void Build(const PropertyArray &properties, const FITSKeywordArray &keywords, int width, int height, bool regenerate=false)
static void RescalePixelSizeKeywords(FITSKeywordArray &keywords, double scalingFactor)
double ResolutionFromFocal(double focal) const
void Write(ImageWindow &window, bool notify=true) const
void CopyTimeAndLocationMetadata(const AstrometricMetadata &source)
static void RemoveObservationLocationProperties(ImageWindow &window)
String Summary() const
AstrometricMetadata(const AstrometricMetadata &x)
void SetPixelSize(double pixelSize)
double FocalFromResolution(double resolution) const
Optional< TimePoint > ObservationStartTime() const
static void RemoveProperties(ImageWindow &window, bool removeCenterProperties=true, bool removeScaleProperties=true)
Optional< double > PixelSize() const
void UpdateBasicKeywords(FITSKeywordArray &keywords) const
void SetObservationStartTime(TimePoint startTime)
static void RemoveObservationLocationProperties(PropertyArray &properties)
Optional< TimePoint > CreationTime() const
void SetObservationEndTime(TimePoint endTime)
void UpdateWCSKeywords(FITSKeywordArray &keywords, bool generate=false) const
Optional< double > LocationHeight() const
A smart pointer with exclusive object ownership and optional automatic object destruction.
Definition: AutoPointer.h:246
static constexpr T pi()
Definition: Constants.h:94
A simple exception with an associated error message.
Definition: Exception.h:239
A generic point in the two-dimensional space.
Definition: Point.h:100
component x
Abscissa (horizontal, or X-axis coordinate).
Definition: Point.h:111
component y
Ordinate (vertical, or Y-axis coordinate).
Definition: Point.h:112
A generic rectangle in the two-dimensional space.
Definition: Rectangle.h:316
bool IsEmpty() const noexcept
Definition: String.h:830
High-level interface to an image window object in the PixInsight core application.
Definition: ImageWindow.h:287
Eight-bit string (ISO/IEC-8859-1 or UTF-8 string)
Definition: String.h:5443
An object that can be in a defined or undefined state.
Definition: Optional.h:82
bool IsDefined() const
Definition: Optional.h:180
Base class of all projection systems.
Surface spline world coordinate transformation.
Unicode (UTF-16) string.
Definition: String.h:8146
An instant in any timescale.
Definition: TimePoint.h:103
A structure for management of WCS FITS header keywords and associated image properties.
Definition: WCSKeywords.h:89
Optional< double > altobs
Geodetic height of the observation location in meters.
Definition: WCSKeywords.h:100
Optional< double > longobs
Geodetic longitude of the observation location in degrees. Reckoned positive east of the reference me...
Definition: WCSKeywords.h:98
Optional< double > latobs
Geodetic latitude of the observation location in degrees. Reckoned positive north of the equator.
Definition: WCSKeywords.h:99
Optional< double > dateobs
Observation start time as a Julian date, UTC timescale.
Definition: WCSKeywords.h:96
Optional< double > dateend
Observation end time as a Julian date, UTC timescale.
Definition: WCSKeywords.h:97
Abstract base class of world coordinate transformations.
XISF input file stream
Definition: XISF.h:892
XISF output file stream
Definition: XISF.h:1281
constexpr const T & Max(const T &a, const T &b) noexcept
Definition: Utility.h:119
PCL root namespace.
Definition: AbstractImage.h:77
A collection of strings describing the properties and parameters of an astrometric solution.