Posts

Showing posts from August, 2024

Python code to fetch Eta Carinae nebula FITS image and Display

Image
In Astronomy, there will be needs to extract Images from FITS format file for further analysis or research, Below is the Two steps code for "getting image link" and "fetching & displaying image from the link"  The code uses python libraries such as PYVO,  Astropy, Matplotlib STEP 1-excute below code to get url of the astronomical object import pyvo as vo from astropy.coordinates import SkyCoord from astropy.units import Quantity pos = SkyCoord.from_name('Eta Carina') #Eta Carina Nebula size = Quantity(0.5, unit="deg") sia_service = vo.dal.SIAService("http://dc.zah.uni-heidelberg.de/hppunion/q/im/siap.xml") sia_results = sia_service.search(pos=pos, size=size) sia_results  -------------- its will list all FITS format image from online repository------------ <Table length=8> accref ... ...

what is Astronomical Data Query Language (ADQL)?

  What is Astronomical Data Query Language (ADQL)? Astronomical Data Query Language (ADQL) is a specialized query language used by astronomers to retrieve data from large astronomical databases . It is similar to SQL (Structured Query Language) but designed specifically for querying catalogs of stars, galaxies, and other celestial objects.  ADQL allows users to perform complex searches, such as filtering objects by position, brightness, or velocity , across vast datasets.  It is widely used in Virtual Observatory (VO) services , making it easier for researchers to access and analyze astronomical data.  With ADQL, astronomers can extract precise information to support their research.

Python code to fetch RA-DEC of NGC 1952 (Crab Nebula)

 Below is simple python code to fetch RA-DEC of Card Nebula ( NGC 1952) using Astropy library /*****/ from astropy.coordinates import SkyCoord from astropy.units import Quantity pos = SkyCoord.from_name('NGC 1952') print(pos) /******/ output- <SkyCoord (ICRS): (ra, dec) in deg (83.633212, 22.01446)>