import celestial.coo.*
help sphere_dist
celestial.coo.convertdms('15:10:56.1','SH','d')
celestial.coo.convertdms([ -1 0 10 56.1],'D','r')
AM=celestial.coo.hardie([1;1.1])
[N,NM]=celestial.coo.nutation(2451545+(1:2)');
C=celestial.coo.coco(rand(4,2),'j2000.0','e')
C=celestial.coo.coco([100 10],'g','S','d','d')
R=celestial.coo.rotm_coo('SGg')
tic;
[D,P]=celestial.coo.sphere_dist(rand(1e5,1),rand(1e5,1),[10 0 0],[1 40 0 0]);
toc
VecJD = celestial.time.julday([1 1 2000])+(1:6:366)';
Lat = 33.*pi./180;
AM = 1.8;
TimeVis = 0;
for I=1:1:numel(VecJD)
[SkyArea(I),LON(I)]=celestial.coo.sky_area_above_am(VecJD(I),Lat,AM,TimeVis);
end
plot(VecJD-VecJD(1),SkyArea)
RAD = 180./pi;
Alt = (20:1:90)./RAD;
R = celestial.coo.refraction(Alt);
plot(Alt.*RAD,R.*RAD.*3600)
xlabel('Alt [deg]');
ylabel('Refraction [arcsec]');
plot(Alt(1:end-1).*RAD,diff(R).*RAD.*3600)
xlabel('Alt [deg]');
ylabel('Diff. Refraction [arcsec/deg]');
[R5,N]=celestial.coo.refraction_wave(Alt,5000);
[R6,N]=celestial.coo.refraction_wave(Alt,6000);
plot(Alt.*RAD,(R5-R6).*RAD.*3600)
xlabel('Alt [deg]');
ylabel('Color ref. [arcsec] (500 to 600 nm)');
import celestial.time.*
julday
julday([1 1 2015 0.5; 1 2 2015 0.7])
julday([1 1 2015 18 30 45])
julday('2015-01-01T18:30:45.0')
JD = julday({'2015-01-01T18:30:45.0','2016-02-01T12:30:15'})
jd2date(JD)
jd2date(JD,'H')
MJD=jd2mjd(JD)
JD=mjd2jd(MJD)
import celestial.time.*
JD = julday([1 1 2016])+(0:1:10)';
LST = lst(JD,0)
LST = lst(JD,0,'a')
LST = lst(JD,35.*pi./180)
EOP=celestial.time.wget_eop('get');
TAI_UTC=celestial.time.wget_tai_utc('get');
DeltaT=celestial.time.delta_t([2451545;celestial.time.julday])
Diff=celestial.time.tdb_tdt(2451545)
[TAImUTC,TTmUTC]=celestial.time.tai_utc([0;2451545])
[UT1mUTC,EOP]=celestial.time.ut1_utc(2451545)
celestial.time.days_in_month(2000,2)
celestial.time.easter_date(2000)
[V,W,EGM]=celestial.Earth.earth_gravity_field(6731e5,1,1);
t = rand(1e6,1);
q = rand(1e6,1);
e = rand(1e6,1);
tic;
[Nu,R,E]=celestial.Kepler.kepler_elliptic(t,q,e);
toc
JD = celestial.time.julday([1 1 2015])+(0:1:365)';
[RA,Dec,R,sl,ET]=celestial.SolarSys.suncoo(JD,'a');
ET(ET>900) = ET(ET>900)-1440;
plot(ET,Dec.*180./pi,'.')
xlabel('Time [min]');
ylabel('Declination [deg]');
RA = celestial.coo.convertdms('15:45:12.1','SH','r');
Dec = celestial.coo.convertdms(15.1,'d','R')
JD = celestial.time.julday([1 1 2015])+(0:1:365)';
[MoonRA,MoonDec,HP]=celestial.SolarSys.mooncool(JD,[35 32].*pi./180);
D = celestial.coo.sphere_dist(MoonRA,MoonDec,RA,Dec);
plot(JD-2450000,D.*180./pi)
celestial.SolarSys.jup_satcurve(1,2015)
celestial.SolarSys.jupiter_map(celestial.time.julday([1 1 2015 23 0 0]))
celestial.SolarSys.moon_phases([1 1 2015],[1 2 2015])
Eq=celestial.SolarSys.equinox_solstice([2010;2020])
Undefined variable "celestial" or class "celestial.mlx".