bengebre / lambertfit Goto Github PK
View Code? Open in Web Editor NEWAn experimental Python-based angles-only initial orbit determination tool for solar system objects by way of a Lambert solver.
License: BSD 3-Clause "New" or "Revised" License
An experimental Python-based angles-only initial orbit determination tool for solar system objects by way of a Lambert solver.
License: BSD 3-Clause "New" or "Revised" License
In running the Lambertfit example
#!/Users/user/opt/anaconda3/bin/python3
import numpy as np
import lambertfit as lf
from astroquery.jplhorizons import Horizons
from astropy.time import Time
#define observer location and body to observe
loc = 'G96' #MPC observatory location code (eg. 'G96' or '500@0')
body_id = '2000002' #small body designation (e.g. '2000002' == Pallas)
#how many (simulated) observations do we want and at what time
tstart = 2459000.5 #julian start date
dt = 14 #number of days of observations
nobs = 30 #number of observations
#observation times
times = np.linspace(tstart,tstart+dt,nobs) #julian date observation times
tdbs = Time(times,format='jd').tdb.value #barycenter dynamical times for the observations
#get simulated observation data from Horizons
ephs = Horizons(id=body_id,location=loc,epochs=times,id_type='designation').ephemerides()
radecs = np.array([[eph['RA'],eph['DEC']] for eph in ephs]) #RA and DEC in degrees
#sun->observer position vector at observation times
r_so = lf.sun_observer(loc,tdbs)
#LambertFit OD solution for RA/DEC observations
rvm_sb, rvn_sb, fit_rms = lf.fit(radecs,times,r_so)
The following traceback and error message occurs
Traceback (most recent call last):
File "/Users/user/Various_Python_Examples/LambertFit_Ex-1.py", line 22, in <module>
ephs = Horizons(id=body_id,location=loc,epochs=times,id_type='designation').ephemerides()
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/astroquery/utils/class_or_instance.py", line 25, in f
return self.fn(obj, *args, **kwds)
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/astroquery/utils/process_asyncs.py", line 26, in newmethod
response = getattr(self, async_method_name)(*args, **kwargs)
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/astroquery/jplhorizons/core.py", line 595, in ephemerides_async
response = self._request('GET', URL, params=request_payload,
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/astroquery/query.py", line 317, in _request
response = query.request(self._session,
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/astroquery/query.py", line 71, in request
return session.request(self.method, self.url, params=self.params,
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py", line 458, in send
self.cert_verify(conn, request.url, verify, cert)
File "/Users/user/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py", line 261, in cert_verify
raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: <null>
I'm running the Anaconda Distribution of Python version 3.9.18 on a Mac Pro(2019) running Mac OSX Sonoma version 14.2.1.
Please advise.
Sam Dupree.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.