3 #include <thrust/device_vector.h>
6 #include <isce3/core/DateTime.h>
7 #include <isce3/core/Linspace.h>
8 #include <isce3/core/Orbit.h>
9 #include <isce3/core/StateVector.h>
10 #include <isce3/core/TimeDelta.h>
11 #include <isce3/core/Vector.h>
13 namespace isce3 {
namespace cuda {
namespace core {
38 Orbit(
const std::vector<isce3::core::StateVector> & statevecs,
48 Orbit(
const std::vector<isce3::core::StateVector> & statevecs,
98 const thrust::device_vector<isce3::core::Vec3> &
position()
const {
return _position; }
101 const thrust::device_vector<isce3::core::Vec3> &
velocity()
const {
return _velocity; }
104 double time(
int idx)
const {
return _time[idx]; }
125 isce3::error::ErrorCode
134 thrust::device_vector<isce3::core::Vec3> _position;
135 thrust::device_vector<isce3::core::Vec3> _velocity;
139 bool operator==(
const Orbit &,
const Orbit &);
140 bool operator!=(
const Orbit &,
const Orbit &);
const thrust::device_vector< isce3::core::Vec3 > & position() const
Get state vector positions in ECEF coordinates (m)
Definition: Orbit.h:98
void interpMethod(isce3::core::OrbitInterpMethod interp_method)
Set interpolation method.
Definition: Orbit.h:68
isce3::core::Vec3 velocity(int idx) const
Get the specified state vector velocity in ECEF coordinates (m/s)
Definition: Orbit.h:110
Raise error if interpolation attempted outside orbit domain.
CUDA_HOSTDEV constexpr int size() const
Number of samples.
Definition: Linspace.h:86
const thrust::device_vector< isce3::core::Vec3 > & velocity() const
Get state vector velocities in ECEF coordinates (m/s)
Definition: Orbit.h:101
double startTime() const
Time of first state vector relative to reference epoch (s)
Definition: Orbit.h:71
void setStateVectors(const std::vector< isce3::core::StateVector > &)
Set orbit state vectors.
isce3::core::DateTime endDateTime() const
UTC time of last state vector.
Definition: Orbit.h:86
Data structure to store date time to nano-sec precision.
Definition: DateTime.h:18
isce3::core::Vec3 position(int idx) const
Get the specified state vector position in ECEF coordinates (m)
Definition: Orbit.h:107
OrbitInterpMethod
Orbit interpolation method.
Definition: Orbit.h:20
isce3::core::DateTime midDateTime() const
UTC time of center of orbit.
Definition: Orbit.h:83
CUDA_HOSTDEV constexpr T spacing() const
Sample spacing.
Definition: Linspace.h:76
Data structure to store TimeDelta to double precision seconds.
Definition: TimeDelta.h:16
CUDA counterpart of isce3::core::Orbit.
Definition: Orbit.h:22
double endTime() const
Time of last state vector relative to reference epoch (s)
Definition: Orbit.h:77
isce3::error::ErrorCode interpolate(isce3::core::Vec3 *position, isce3::core::Vec3 *velocity, double t, isce3::core::OrbitInterpBorderMode border_mode=isce3::core::OrbitInterpBorderMode::Error) const
Interpolate platform position and/or velocity.
double spacing() const
Time interval between state vectors (s)
Definition: Orbit.h:89
Third-order Hermite polynomial interpolation.
const isce3::core::Linspace< double > & time() const
Get state vector times relative to reference epoch (s)
Definition: Orbit.h:95
isce3::core::OrbitInterpMethod interpMethod() const
Interpolation method.
Definition: Orbit.h:65
OrbitInterpBorderMode
Mode determining how interpolation outside of orbit domain is handled.
Definition: Orbit.h:26
int size() const
Number of state vectors in orbit.
Definition: Orbit.h:92
double midTime() const
Time of center of orbit relative to reference epoch (s)
Definition: Orbit.h:74
std::vector< isce3::core::StateVector > getStateVectors() const
Export list of state vectors.
double time(int idx) const
Get the specified state vector time relative to reference epoch (s)
Definition: Orbit.h:104
Sequence of platform ephemeris samples (state vectors) with uniform temporal spacing, supporting efficient lookup and interpolation.
Definition: Orbit.h:43
const isce3::core::DateTime & referenceEpoch() const
Reference epoch (UTC)
Definition: Orbit.h:59
isce3::core::DateTime startDateTime() const
UTC time of first state vector.
Definition: Orbit.h:80