I've to know if the sun is occulted by earth from my spacecraft which is in low earth orbit with these parameters (a:6700 km, e:0.0, i:5°, ...). I run the following method with search window start at 2021 MAR 03 20:00 and stop at 2021 MAR 04 23:00 :
gfoclt_c("ANY", "earth", "ELLIPSOID","ITRF93", "sun", "ELLIPSOID", "IAU_sun", "LT", "MySpacecraft", 120.0, &cnfine, &results);
This method run without exception but result doesn't contain data.
I tried this method to detect sun eclipse by moon from earth center and it works perfectly, the problem seems to be my spacecraft but I don't understand what. Bellow my spk, ck and frame informations : Thank you for your help.
Summary for CK file: MySpacecraft.ck Leapseconds File : latest_leapseconds.tls SCLK File : MySpacecraft.tsc Summary Type : Entire File -------------------------------------------------------------------------------- Segment ID : Seg1 Instrument Code: -1789000 Spacecraft : Body -1789 Reference Frame: Frame 1, J2000 CK Data Type : Type 5 Description : Continuous Pointing: MEX/Rosetta Polynomial Interpolation Available Data : Pointing and Angular Velocity UTC Start Time : 2021 MAR 03 19:05:40.085 UTC Stop Time : 2021 MAR 05 00:00:00.841 SCLK Start Time: 1/0005339209:17746 SCLK Stop Time : 1/0005443270:01719
Summary for SPK file: MySpacecraft.spk Leapseconds File : latest_leapseconds.tls Summary Type : Entire File -------------------------------------------------------------------------------- Segment ID : Seg1 Target Body : Body -1789 Center Body : Body 399, EARTH Reference frame: Frame 1, J2000 SPK Data Type : Type 9 Description : Discrete States, Unevenly Spaced, Lagrange Interpolation UTC Start Time : 2021 MAR 03 19:05:40.085 UTC Stop Time : 2021 MAR 05 00:00:00.841 ET Start Time : 2021 MAR 03 19:06:49.270 ET Stop time : 2021 MAR 05 00:01:10.026
KPL/FK \begindata FRAME_MySpacecraft_SPACECRAFT = -1789000 FRAME_-1789000_NAME = 'MySpacecraft_SPACECRAFT' FRAME_-1789000_CLASS = 3 FRAME_-1789000_CLASS_ID = -1789000 FRAME_-1789000_CENTER = -1789 CK_-1789000_SCLK = -1789 CK_-1789000_SPK = -1789 OBJECT_-1789_FRAME = 'MySpacecraft_SPACECRAFT' NAIF_BODY_NAME += 'MySpacecraft_SPACECRAFT' NAIF_BODY_CODE += -1789000 NAIF_BODY_NAME += 'MySpacecraft' NAIF_BODY_CODE += -1789 \begintext
I also load these kernels :
- de440s.bsp
- earth_assoc_itrf93.tf
- earth_fixed.tf
- earth_latest_high_prec.bpc
- earthstns_itrf93_201023.bsp
- earth_topo_201023.tf
- geophysical.ker
- gm_de431.tpc
- latest_leapseconds.tls
- moon_080317.tf
- moon_assoc_me.tf
- moon_assoc_pa.tf
- moon_pa_de421_1900-2050.bpc
- pck00010.tpc