1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845
|
/******************************************************************************
*
* Purpose: Support for storing and manipulating Orbit information
*
******************************************************************************
* Copyright (c) 2009
* PCI Geomatics, 50 West Wilmot Street, Richmond Hill, Ont, Canada
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
#ifndef __INCLUDE_PCIDSK_ORBIT_INFORMATION_H
#define __INCLUDE_PCIDSK_ORBIT_INFORMATION_H
#include <string>
#include <vector>
namespace PCIDSK
{
/* -------------------------------------------------------------------- */
/* Structure for ephemeris segment (ORBIT segment, type 160). */
/* -------------------------------------------------------------------- */
#define EPHEMERIS_BLK 8
#define EPHEMERIS_RADAR_BLK 10
#define EPHEMERIS_ATT_BLK 9
/* -------------------------------------------------------------------- */
/* Structure for Satellite Radar segment. */
/* -------------------------------------------------------------------- */
#define ANC_DATA_PER_BLK 16
#define ANC_DATA_SIZE 32
/**
* Ancillary data structure.
*/
struct AncillaryData_t
{
/**
* Default constrcutor
*/
AncillaryData_t()
{
}
/**
* Copy constructor
* @param oAD the ancillary data to copy
*/
AncillaryData_t(const AncillaryData_t& oAD)
{
Copy(oAD);
}
/**
* assignement operator
* @param oAD the ancillary data to assign
*/
AncillaryData_t& operator=(const AncillaryData_t& oAD)
{
Copy(oAD);
return *this;
}
/**
* Copy function
* @param oAD the ancillary data to copy
*/
void Copy(const AncillaryData_t& oAD)
{
if(this == &oAD)
{
return;
}
SlantRangeFstPixel = oAD.SlantRangeFstPixel;
SlantRangeLastPixel = oAD.SlantRangeLastPixel;
FstPixelLat = oAD.FstPixelLat;
MidPixelLat = oAD.MidPixelLat;
LstPixelLat = oAD.LstPixelLat;
FstPixelLong = oAD.FstPixelLong;
MidPixelLong = oAD.MidPixelLong;
LstPixelLong = oAD.LstPixelLong;
}
int SlantRangeFstPixel; /* Slant Range to First Pixel (m) */
int SlantRangeLastPixel; /* Slant Range to Last Pixel (m) */
float FstPixelLat; /* First Pixel Latitude (millionths degrees) */
float MidPixelLat; /* Mid Pixel Latitude (millionths degrees) */
float LstPixelLat; /* Last Pixel Latitude (millionths degrees) */
float FstPixelLong; /* First Pixel Longitude (millionths degrees)*/
float MidPixelLong; /* Mid Pixel Longitude (millionths degrees) */
float LstPixelLong; /* Last Pixel Longitude (millionths degrees) */
} ;
/**
* Radar segment information
*/
struct RadarSeg_t
{
/**
* Default constrcutor
*/
RadarSeg_t()
{
}
/**
* Copy constructor
* @param oRS the radar segment to copy
*/
RadarSeg_t(const RadarSeg_t& oRS)
{
Copy(oRS);
}
/**
* assignement operator
* @param oRS the radar segment to assign
*/
RadarSeg_t& operator=(const RadarSeg_t& oRS)
{
Copy(oRS);
return *this;
}
/**
* Copy function
* @param oRS the radar segment to copy
*/
void Copy(const RadarSeg_t& oRS)
{
if(this == &oRS)
{
return;
}
Identifier = oRS.Identifier;
Facility = oRS.Facility;
Ellipsoid = oRS.Ellipsoid;
EquatorialRadius = oRS.EquatorialRadius;
PolarRadius = oRS.PolarRadius;
IncidenceAngle = oRS.IncidenceAngle;
PixelSpacing = oRS.PixelSpacing;
LineSpacing = oRS.LineSpacing;
ClockAngle = oRS.ClockAngle;
NumberBlockData = oRS.NumberBlockData;
NumberData = oRS.NumberData;
Line = oRS.Line;
}
std::string Identifier; /* Product identifier */
std::string Facility; /* Processing facility */
std::string Ellipsoid; /* Ellipsoid designator */
double EquatorialRadius; /* Equatorial radius of earth */
double PolarRadius; /* Polar radius of earth */
double IncidenceAngle; /* Incidence angle */
double PixelSpacing; /* Nominal pixel spacing in metre */
double LineSpacing; /* Nominal line spacing in metre */
double ClockAngle; /* Clock angle in degree */
int NumberBlockData; /* Number of blocks of ancillary data */
int NumberData; /* Number of ancillary data */
std::vector<AncillaryData_t> Line; /* Pointer to ancillary line */
} ;
/* -------------------------------------------------------------------- */
/* Structure for Satellite attitude segment. */
/* -------------------------------------------------------------------- */
#define ATT_SEG_BLK 604
#define ATT_SEG_MAX_LINE 6000
#define ATT_SEG_LINE_PER_BLOCK 10
/**
* Attitude line information
*/
struct AttitudeLine_t
{
/**
* Default constrcutor
*/
AttitudeLine_t()
{
}
/**
* Copy constructor
* @param oAL the attitude line to copy
*/
AttitudeLine_t(const AttitudeLine_t& oAL)
{
Copy(oAL);
}
/**
* assignement operator
* @param oAL the attitude line to assign
*/
AttitudeLine_t& operator=(const AttitudeLine_t& oAL)
{
Copy(oAL);
return *this;
}
/**
* Copy function
* @param oAL the attitude line to copy
*/
void Copy(const AttitudeLine_t& oAL)
{
if(this == &oAL)
{
return;
}
ChangeInAttitude = oAL.ChangeInAttitude;
ChangeEarthSatelliteDist = oAL.ChangeEarthSatelliteDist;
}
double ChangeInAttitude; /* Change in satellite attiutde (D22.16) */
double ChangeEarthSatelliteDist; /* Change in earth-satellite distance
(D22.16) */
} ;
/**
* Attitude segment information
*/
struct AttitudeSeg_t
{
/**
* Default constrcutor
*/
AttitudeSeg_t()
{
}
/**
* Copy constructor
* @param oAS the attitude segment to copy
*/
AttitudeSeg_t(const AttitudeSeg_t& oAS)
{
Copy(oAS);
}
/**
* assignement operator
* @param oAS the avhrr segment to assign
*/
AttitudeSeg_t& operator=(const AttitudeSeg_t& oAS)
{
Copy(oAS);
return *this;
}
/**
* Copy function
* @param oAS the avhrr segment to copy
*/
void Copy(const AttitudeSeg_t& oAS)
{
if(this == &oAS)
{
return;
}
Roll = oAS.Roll;
Pitch = oAS.Pitch;
Yaw = oAS.Yaw;
NumberOfLine = oAS.NumberOfLine;
NumberBlockData = oAS.NumberBlockData;
Line = oAS.Line;
}
double Roll; /* Roll (D22.16) */
double Pitch; /* Pitch (D22.16) */
double Yaw; /* Yaw (D22.16) */
int NumberOfLine; /* No. of Lines (I22) */
int NumberBlockData; /* No. of block of data. */
std::vector<AttitudeLine_t> Line;
} ;
/* -------------------------------------------------------------------- */
/* AVHRR orbit segment. Composed of 11 blocks plus extra blocks */
/* for holding per-scanline information. */
/* -------------------------------------------------------------------- */
#define AVH_SEG_BASE_NUM_BLK 11
/**
* Avhrr line information
*/
struct AvhrrLine_t
{
/**
* Default constrcutor
*/
AvhrrLine_t()
{
}
/**
* Copy constructor
* @param oAL the avhrr line to copy
*/
AvhrrLine_t(const AvhrrLine_t& oAL)
{
Copy(oAL);
}
/**
* assignement operator
* @param oAL the avhrr line to assign
*/
AvhrrLine_t& operator=(const AvhrrLine_t& oAL)
{
Copy(oAL);
return *this;
}
/**
* Copy function
* @param oAL the avhrr line to copy
*/
void Copy(const AvhrrLine_t& oAL)
{
if(this == &oAL)
{
return;
}
nScanLineNum = oAL.nScanLineNum;
nStartScanTimeGMTMsec = oAL.nStartScanTimeGMTMsec;
for(int i=0 ; i < 10 ; i++)
abyScanLineQuality[i] = oAL.abyScanLineQuality[i];
for(int i=0 ; i < 5 ; i++)
{
aabyBadBandIndicators[i][0] = oAL.aabyBadBandIndicators[i][0];
aabyBadBandIndicators[i][1] = oAL.aabyBadBandIndicators[i][1];
anSpaceScanData[i] = oAL.anSpaceScanData[i];
}
for(int i=0 ; i < 8 ; i++)
abySatelliteTimeCode[i] = oAL.abySatelliteTimeCode[i];
for(int i=0 ; i < 3 ; i++)
{
anTargetTempData[i] = oAL.anTargetTempData[i];
anTargetScanData[i] = oAL.anTargetScanData[i];
}
}
/* For geocoding */
int nScanLineNum;
int nStartScanTimeGMTMsec;
unsigned char abyScanLineQuality[10];
unsigned char aabyBadBandIndicators[5][2];
unsigned char abySatelliteTimeCode[8];
/* For thermal/IR calibration */
int anTargetTempData[3];
int anTargetScanData[3];
int anSpaceScanData[5];
} ;
/**
* Avhrr segment information.
*/
struct AvhrrSeg_t
{
/**
* Default constrcutor
*/
AvhrrSeg_t()
{
}
/**
* Copy constructor
* @param oAS the avhrr segment to copy
*/
AvhrrSeg_t(const AvhrrSeg_t& oAS)
{
Copy(oAS);
}
/**
* assignement operator
* @param oAS the avhrr segment to assign
*/
AvhrrSeg_t& operator=(const AvhrrSeg_t& oAS)
{
Copy(oAS);
return *this;
}
/**
* Copy function
* @param oAS the avhrr segment to copy
*/
void Copy(const AvhrrSeg_t& oAS)
{
if(this == &oAS)
{
return;
}
szImageFormat = oAS.szImageFormat;
nImageXSize = oAS.nImageXSize;
nImageYSize = oAS.nImageYSize;
bIsAscending = oAS.bIsAscending;
bIsImageRotated = oAS.bIsImageRotated;
szOrbitNumber = oAS.szOrbitNumber;
szAscendDescendNodeFlag = oAS.szAscendDescendNodeFlag;
szEpochYearAndDay = oAS.szEpochYearAndDay;
szEpochTimeWithinDay = oAS.szEpochTimeWithinDay;
szTimeDiffStationSatelliteMsec = oAS.szTimeDiffStationSatelliteMsec;
szActualSensorScanRate = oAS.szActualSensorScanRate;
szIdentOfOrbitInfoSource = oAS.szIdentOfOrbitInfoSource;
szInternationalDesignator = oAS.szInternationalDesignator;
szOrbitNumAtEpoch = oAS.szOrbitNumAtEpoch;
szJulianDayAscendNode = oAS.szJulianDayAscendNode;
szEpochYear = oAS.szEpochYear;
szEpochMonth = oAS.szEpochMonth;
szEpochDay = oAS.szEpochDay;
szEpochHour = oAS.szEpochHour;
szEpochMinute = oAS.szEpochMinute;
szEpochSecond = oAS.szEpochSecond;
szPointOfAriesDegrees = oAS.szPointOfAriesDegrees;
szAnomalisticPeriod = oAS.szAnomalisticPeriod;
szNodalPeriod = oAS.szNodalPeriod;
szEccentricity = oAS.szEccentricity;
szArgumentOfPerigee = oAS.szArgumentOfPerigee;
szRAAN = oAS.szRAAN;
szInclination = oAS.szInclination;
szMeanAnomaly = oAS.szMeanAnomaly;
szSemiMajorAxis = oAS.szSemiMajorAxis;
nRecordSize = oAS.nRecordSize;
nBlockSize = oAS.nBlockSize;
nNumRecordsPerBlock = oAS.nNumRecordsPerBlock;
nNumBlocks = oAS.nNumBlocks;
nNumScanlineRecords = oAS.nNumScanlineRecords;
Line = oAS.Line;
}
/* Nineth Block Part 1 - General/header information */
std::string szImageFormat;
int nImageXSize;
int nImageYSize;
bool bIsAscending;
bool bIsImageRotated;
/* Nineth Block Part 2 - Ephemeris information */
std::string szOrbitNumber;
std::string szAscendDescendNodeFlag;
std::string szEpochYearAndDay;
std::string szEpochTimeWithinDay;
std::string szTimeDiffStationSatelliteMsec;
std::string szActualSensorScanRate;
std::string szIdentOfOrbitInfoSource;
std::string szInternationalDesignator;
std::string szOrbitNumAtEpoch;
std::string szJulianDayAscendNode;
std::string szEpochYear;
std::string szEpochMonth;
std::string szEpochDay;
std::string szEpochHour;
std::string szEpochMinute;
std::string szEpochSecond;
std::string szPointOfAriesDegrees;
std::string szAnomalisticPeriod;
std::string szNodalPeriod;
std::string szEccentricity;
std::string szArgumentOfPerigee;
std::string szRAAN;
std::string szInclination;
std::string szMeanAnomaly;
std::string szSemiMajorAxis;
/* 10th Block - Empty, reserved for future use */
/* 11th Block - Needed for indexing 12th block onwards */
int nRecordSize;
int nBlockSize;
int nNumRecordsPerBlock;
int nNumBlocks;
int nNumScanlineRecords;
/* 12th Block and onwards - Per-scanline records */
std::vector<AvhrrLine_t> Line;
} ;
/**
* Possible orbit types.
*/
typedef enum
{
OrbNone,
OrbAttitude,
OrbLatLong,
OrbAvhrr
} OrbitType;
/**
* Ephemeris segment structure
*/
struct EphemerisSeg_t
{
/**
* Default constrcutor
*/
EphemerisSeg_t()
{
AttitudeSeg = NULL;
RadarSeg = NULL;
AvhrrSeg = NULL;
}
/**
* Destructor
*/
~EphemerisSeg_t()
{
delete AttitudeSeg;
delete RadarSeg;
delete AvhrrSeg;
}
/**
* Copy constructor
* @param oES the ephemeris segment to copy
*/
EphemerisSeg_t(const EphemerisSeg_t& oES)
{
AttitudeSeg = NULL;
RadarSeg = NULL;
AvhrrSeg = NULL;
Copy(oES);
}
/**
* assignement operator
* @param oES the ephemeris segment to assign
*/
EphemerisSeg_t& operator=(const EphemerisSeg_t& oES)
{
Copy(oES);
return *this;
}
/**
* Copy function
* @param oES the ephemeris segment to copy
*/
void Copy(const EphemerisSeg_t& oES)
{
if(this == &oES)
{
return;
}
delete AttitudeSeg;
delete RadarSeg;
delete AvhrrSeg;
AttitudeSeg = NULL;
RadarSeg = NULL;
AvhrrSeg = NULL;
if(oES.AttitudeSeg)
AttitudeSeg = new AttitudeSeg_t(*oES.AttitudeSeg);
if(oES.RadarSeg)
RadarSeg = new RadarSeg_t(*oES.RadarSeg);
if(oES.AvhrrSeg)
AvhrrSeg = new AvhrrSeg_t(*oES.AvhrrSeg);
for(int i =0 ; i <39 ; i++)
SPCoeff1B[i] = oES.SPCoeff1B[i];
for(int i =0 ; i <4 ; i++)
SPCoeffSg[i] = oES.SPCoeffSg[i];
SatelliteDesc = oES.SatelliteDesc;
SceneID = oES.SceneID;
SatelliteSensor = oES.SatelliteSensor;
SensorNo = oES.SensorNo;
DateImageTaken = oES.DateImageTaken;
SupSegExist = oES.SupSegExist;
FieldOfView = oES.FieldOfView;
ViewAngle = oES.ViewAngle;
NumColCentre = oES.NumColCentre;
RadialSpeed = oES.RadialSpeed;
Eccentricity = oES.Eccentricity;
Height = oES.Height;
Inclination = oES.Inclination;
TimeInterval = oES.TimeInterval;
NumLineCentre = oES.NumLineCentre;
LongCentre = oES.LongCentre;
AngularSpd = oES.AngularSpd;
AscNodeLong = oES.AscNodeLong;
ArgPerigee = oES.ArgPerigee;
LatCentre = oES.LatCentre;
EarthSatelliteDist = oES.EarthSatelliteDist;
NominalPitch = oES.NominalPitch;
TimeAtCentre = oES.TimeAtCentre;
SatelliteArg = oES.SatelliteArg;
XCentre = oES.XCentre;
YCentre = oES.YCentre;
UtmYCentre = oES.UtmYCentre;
UtmXCentre = oES.UtmXCentre;
PixelRes = oES.PixelRes;
LineRes = oES.LineRes;
CornerAvail = oES.CornerAvail;
MapUnit = oES.MapUnit;
XUL = oES.XUL;
YUL = oES.YUL;
XUR = oES.XUR;
YUR = oES.YUR;
XLR = oES.XLR;
YLR = oES.YLR;
XLL = oES.XLL;
YLL = oES.YLL;
UtmYUL = oES.UtmYUL;
UtmXUL = oES.UtmXUL;
UtmYUR = oES.UtmYUR;
UtmXUR = oES.UtmXUR;
UtmYLR = oES.UtmYLR;
UtmXLR = oES.UtmXLR;
UtmYLL = oES.UtmYLL;
UtmXLL = oES.UtmXLL;
LatCentreDeg = oES.LatCentreDeg;
LongCentreDeg = oES.LongCentreDeg;
LatUL = oES.LatUL;
LongUL = oES.LongUL;
LatUR = oES.LatUR;
LongUR = oES.LongUR;
LatLR = oES.LatLR;
LongLR = oES.LongLR;
LatLL = oES.LatLL;
LongLL = oES.LongLL;
HtCentre = oES.HtCentre;
HtUL = oES.HtUL;
HtUR = oES.HtUR;
HtLR = oES.HtLR;
HtLL = oES.HtLL;
ImageRecordLength = oES.ImageRecordLength;
NumberImageLine = oES.NumberImageLine;
NumberBytePerPixel = oES.NumberBytePerPixel;
NumberSamplePerLine = oES.NumberSamplePerLine;
NumberPrefixBytes = oES.NumberPrefixBytes;
NumberSuffixBytes = oES.NumberSuffixBytes;
SPNCoeff = oES.SPNCoeff;
bDescending = oES.bDescending;
Type = oES.Type;
}
/// Satellite description
std::string SatelliteDesc;
/// Scene ID
std::string SceneID;
/// Satellite sensor
std::string SatelliteSensor;
/// Satellite sensor no.
std::string SensorNo;
/// Date of image taken
std::string DateImageTaken;
/// Flag to indicate supplemental segment
bool SupSegExist;
/// Scanner field of view (ALPHA)
double FieldOfView;
/// Viewing angle (BETA)
double ViewAngle;
/// Number of column at center (C0)
double NumColCentre;
/// Radial speed (DELIRO)
double RadialSpeed;
/// Eccentricity (ES)
double Eccentricity;
/// Height (H0)
double Height;
/// Inclination (I)
double Inclination;
/// Time interval (K)
double TimeInterval;
/// Number of line at center (L0)
double NumLineCentre;
/// Longitude of center (LAMBDA)
double LongCentre;
/// Angular speed (N)
double AngularSpd;
/// Ascending node Longitude (OMEGA-MAJ)
double AscNodeLong;
/// Argument Perigee (OMEGA-MIN)
double ArgPerigee;
/// Latitude of center (PHI)
double LatCentre;
/// Earth Satellite distance (RHO)
double EarthSatelliteDist;
/// Nominal pitch (T)
double NominalPitch;
/// Time at centre (T0)
double TimeAtCentre;
/// Satellite argument (WP)
double SatelliteArg;
/// Scene center pixel coordinate
double XCentre;
/// Scene center line coordinate
double YCentre;
/// Scene centre UTM northing
double UtmYCentre;
/// Scene centre UTM easting
double UtmXCentre;
/// Pixel resolution in x direction
double PixelRes;
/// Pixel resolution in y direction
double LineRes;
/// Flag to tell corner coordinate available
bool CornerAvail;
/// Map units
std::string MapUnit;
/// Pixel coordinate of upper left corner
double XUL;
/// Line coordinate of upper left corner
double YUL;
/// Pixel coordinate of upper right corner
double XUR;
/// Line coordinate of upper right corner
double YUR;
/// Pixel coordinate of lower right corner
double XLR;
/// Line coordinate of lower right corner
double YLR;
/// Pixel coordinate of lower left corner
double XLL;
/// Line coordinate of lower left corner
double YLL;
/// UTM Northing of upper left corner
double UtmYUL;
/// UTM Easting of upper left corner
double UtmXUL;
/// UTM Northing of upper right corner
double UtmYUR;
/// UTM Easting of upper right corner
double UtmXUR;
/// UTM Northing of lower right corner
double UtmYLR;
/// UTM Easting of lower right corner
double UtmXLR;
/// Utm Northing of lower left corner
double UtmYLL;
/// Utm Easting of lower left corner
double UtmXLL;
/// Scene centre latitude (deg)
double LatCentreDeg;
/// Scene centre longitude (deg)
double LongCentreDeg;
/// Upper left latitude (deg)
double LatUL;
/// Upper left longitude (deg)
double LongUL;
/// Upper right latitude (deg)
double LatUR;
/// Upper right longitude (deg)
double LongUR;
/// Lower right latitude (deg)
double LatLR;
/// Lower right longitude (deg)
double LongLR;
/// Lower left latitude (deg)
double LatLL;
/// Lower left longitude (deg)
double LongLL;
/// Centre Height (m)
double HtCentre;
/// UL Height (m)
double HtUL;
/// UR Height (m)
double HtUR;
/// LR Height (m)
double HtLR;
/// LL Height (m)
double HtLL;
/// SPOT 1B coefficients
double SPCoeff1B[39];
/// SPOT 1B segment coefficients
int SPCoeffSg[4];
/// Image record length
int ImageRecordLength;
/// Number of image line
int NumberImageLine;
/// Number of bytes per pixel
int NumberBytePerPixel;
/// Number of samples per line
int NumberSamplePerLine;
/// Number of prefix bytes
int NumberPrefixBytes;
/// Number of suffix bytes
int NumberSuffixBytes;
/// Number of coefficients for SPOT 1B
int SPNCoeff;
/// Flag to indicate ascending or descending
bool bDescending;
/// Orbit type: None, LatLong, Attitude, Avhrr
OrbitType Type;
AttitudeSeg_t *AttitudeSeg;
RadarSeg_t *RadarSeg;
AvhrrSeg_t *AvhrrSeg;
};
/**
* List of sensor type
*/
typedef enum {PLA_1, MLA_1, PLA_2, MLA_2, PLA_3, MLA_3, PLA_4, MLA_4,
ASTER, SAR, LISS_1, LISS_2, LISS_3, LISS_L3, LISS_L3_L2,
LISS_L4, LISS_L4_L2, LISS_P3, LISS_P3_L2, LISS_W3, LISS_W3_L2,
LISS_AWF, LISS_AWF_L2, LISS_M3, EOC, IRS_1, RSAT_FIN,
RSAT_STD, ERS_1, ERS_2, TM, ETM, IKO_PAN, IKO_MULTI,
ORBVIEW_PAN, ORBVIEW_MULTI, OV3_PAN_BASIC, OV3_PAN_GEO,
OV3_MULTI_BASIC, OV3_MULTI_GEO, OV5_PAN_BASIC, OV5_PAN_GEO,
OV5_MULTI_BASIC, OV5_MULTI_GEO, QBIRD_PAN, QBIRD_PAN_STD,
QBIRD_PAN_STH, QBIRD_MULTI, QBIRD_MULTI_STD, QBIRD_MULTI_STH,
FORMOSAT_PAN, FORMOSAT_MULTI, FORMOSAT_PAN_L2,
FORMOSAT_MULTIL2, SPOT5_PAN_2_5, SPOT5_PAN_5, SPOT5_HRS,
SPOT5_MULTI, MERIS_FR, MERIS_RR, MERIS_LR, ASAR, EROS,
MODIS_250, MODIS_500, MODIS_1000, CBERS_HRC, CBERS_HRC_L2,
CBERS_CCD, CBERS_CCD_L2, CBERS_IRM_80, CBERS_IRM_80_L2,
CBERS_IRM_160, CBERS_IRM_160_L2, CBERS_WFI, CBERS_WFI_L2,
CARTOSAT1_L1, CARTOSAT1_L2, ALOS_PRISM_L1, ALOS_PRISM_L2,
ALOS_AVNIR_L1, ALOS_AVNIR_L2, PALSAR, DMC_1R, DMC_1T,
KOMPSAT2_PAN, KOMPSAT2_MULTI, TERRASAR, WVIEW_PAN,
WVIEW_PAN_STD, WVIEW_MULTI, WVIEW_MULTI_STD,
RAPIDEYE_L1B, THEOS_PAN_L1, THEOS_PAN_L2,
THEOS_MS_L1, THEOS_MS_L2,
GOSAT_500_L1, GOSAT_500_L2, GOSAT_1500_L1, GOSAT_1500_L2,
HJ_CCD_1A, HJ_CCD_1B, NEW, AVHRR} TypeDeCapteur;
}
#endif // __INCLUDE_PCIDSK_ORBIT_INFORMATION_H
|