#streamlit

rhysy@diaspora.glasswings.com

Started playing around with #Streamlit again. We had to prepare some observations recently and I was quite surprised at the lack of a good online tool for doing the simple stuff : checking in a source is visible from a specific location at a given time, whether the Sun is also visible, when exactly it rises at sets, etc. Of course there absolutely are tools to do all this but I find most of them a bit clunky, either too limited or too complex, or relying on fancy graphical plots when I just want a simple number.

Here then is my attempt to remedy that. Comes with some preset telescopes/locations with their geographical coordinates and viewing angle ranges (where I could find them), or you can enter a custom location. You can specify the time and date when the observations start and end using the normal sort of widgets, to the nearest minute if you really want to. You can also give it custom acceptable viewing angles and the maximum angular distance from the Sun. It prints out the source and Sun altitude to the GUI coloured according to whether it’s possible to view it or not, in 15 minute increments, with an option at the end to download an ASCII file containing the same information but in 1 minute increments.

Has NOT been thoroughly tested, but it’s giving me approximately correct results for known objects and locations. Use at own risk !

#Astronomy
#Python

https://icanseemysourcefromherepy.streamlit.app/

rhysy@diaspora.glasswings.com

This is something minor but incredibly useful I've been wanting to get around to for ages... Python-based (no, I don't want to learn Javascript) web apps for doing routine astronomical calculations. The number of group meetings I've sat through where someone asks, "how big is one arcsecond at that distance then ?" because the authors of whatever paper being discussed didn't both to put in a scale bar... I'm still using my 20 year old graphical calculator for simple code like this. Streamlit means I can write the code in Python and the extra additions to set up the GUI are absolutely minimal and require a few minutes to learn for the simple stuff I need. Format looks quite nice on mobile as well as desktop.

This is my first very humble beginning, a simple calculator that converts the observed HI flux of a source into a physical unit of mass. That's a one line calculation, but optionally, you can also provide extra measurements to calculate the integrated signal to noise ratio, which is a bit more tedious normally. With a GUI this is much easier - this is already something I can use very frequently. Dunno if I will do anything more outreachy with this, but there are plenty more mini-calculators like this I can construct.

#Astronomy
#Streamlit

https://share.streamlit.io/rhysyt/obshicalc/main/ObservedHIMass.py