Image API implementation for acquiring SDSS images based on coordinates, object names, or random selections via a GUI.
This application allows you to:
- Input J2000 Equatorial Coordinates (
RA
andDEC
in decimal format) to fetch an SDSS image. - Provide an Object Name to resolve its coordinates and fetch its image.
- Select a Random Object from the NGC database, which will resolve its coordinates and download an image if it falls within the SDSS footprint.
For acquiring SDSS DR16 images from SDSS Navigate, several parameters are required:
- Coordinates (
RA
andDEC
) or an object name. - Image Scale (default value
1
). - Image Dimension, with default value 200 x 200 px.
Run the app.py
with streamlit run app.py
and then use the GUI to input parameters and download images.
- Clone the repository and navigate to the project folder.
- Install the required Python libraries:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run app.py
- Use the GUI to select one of the following modes:
- RA and Dec: Input coordinates in decimal format.
- Object Name: Provide a celestial object name (e.g., "M31").
- Random Object: Let the app select a random object from the NGC database.
- Initial API
- GUI Implementation
- Support for Random Object Selection
- Object Name Resolution
- Add J2000 coordinate in
DD:MM:SS
orDD MM SS
- Add read from
.txt
- Add spectra acquisition
To acquire an image of the Andromeda Galaxy (M31):
- Launch the app and select Object Name from the dropdown menu.
- Enter "M31" in the input box.
- Set the desired image scale and dimensions.
- Click "Download Image".
Alternatively, select Random Object to let the app choose a random object and download its image automatically if it falls within the SDSS footprint.
Example Result:
- SDSS DR16: http://skyserver.sdss.org/dr16/en/home.aspx
- OpenNGC Database: https://github.com/mattiaverga/OpenNGC