Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:44 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : local time to UTC and Sidereal Time

Author Message
RicM
Regular Member

Joined: 05/02/2022
Location: Australia
Posts: 52
Posted: 08:55am 29 Jan 2024
Copy link to clipboard 
Print this post

Dear Members,

Has anyone done a program to convert Local Time to UTC , Atomic Time , Sidereal Time. Look I know there are APP’s for this but the fun of programming it.

Regards,

RicM
 
barewires
Newbie

Joined: 13/04/2015
Location: United Kingdom
Posts: 30
Posted: 09:16am 29 Jan 2024
Copy link to clipboard 
Print this post

Check out Sky & Telescope
https://skyandtelescope.org/astronomy-resources/basic-programs-from-sky-telescope/
 
SimpleSafeName

Guru

Joined: 28/07/2019
Location: United States
Posts: 319
Posted: 01:25pm 29 Jan 2024
Copy link to clipboard 
Print this post

This led to a fun little excursion. Me being too lazy to download the files one by one, so I opted for my old friend "wget.exe".

It probably would have been quicker to download them individually, but I got to play with a bit of regex and sleuthing around the web page source to get the proper links to the files.


But in case anyone is interested, I've included the files in "Sky & Telescope.zip"



Sky & Telescope BASIC Files.zip


Disclaimer: These are a copy of the files kindly provided by Sky & Telescope, and are provided as-is.
 
barewires
Newbie

Joined: 13/04/2015
Location: United Kingdom
Posts: 30
Posted: 02:42pm 29 Jan 2024
Copy link to clipboard 
Print this post

I would highly recommend DownThemAll extension on Firefox / Mozila to get all the files with one click.
https://www.downthemall.org/

https://celestrak.org/software/satellite/sat-trak.php
Has a huge collection of software relating to earth satellites.

I am going to revive a line-number remover with label creation that will accept a serial .bas file input and create a serial output file.
Edited 2024-01-30 02:21 by barewires
 
SimpleSafeName

Guru

Joined: 28/07/2019
Location: United States
Posts: 319
Posted: 05:20pm 29 Jan 2024
Copy link to clipboard 
Print this post

Good to know! I don't use Firefox, but I'm sure that it is available for other browsers. I thought about looking for an easier option, but wget and I have a long history. :)
 
GerryL
Newbie

Joined: 24/01/2019
Location: Australia
Posts: 33
Posted: 02:51am 30 Jan 2024
Copy link to clipboard 
Print this post

RicM,
Attached are my MMBASIC astronomical routines (from Jean Meeus' Astronomical Algorithms) that will have some of the routines you were after.  There is a pdf in the zip folder that explains the routines.
The astronomical routines are in an include file (MMB_Astro.inc) with a BASIC test file (AstroTest.bas ). The test file compares my routine outputs to the US Naval observatory MICA2 program. This creates a text file of the errors, but note if running this on Windows you may need to change line 160 of AstroTest.bas to the folder you want the output text file to be saved in.  It’s been some time since I played with these but the test program should work out of the box on the Windows version of MMBASIC, but note the include file is quite large.  
Hope you can extract what you need from this.

Gerry

MyZip.zip
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024