In Astronomy, Image taken by cameras would be based on specific filters(channels)-Red, Green, Blue. Below are the the images taken across 3 channels. Red(Left), Green(Centre), Blue(Right) Original image credit(single image which is not shown here)- Credits: NASA, ESA, J. Hester and A. Loll (Arizona State University) Below is result after combining above 3 channel images Below is the python code used. Original Carb Nebula image is spitted into 3 channels(as shown 3 gray images above) *************************************************** from PIL import Image # Open the red, green, and blue channel images red_channel = Image.open('E:\\astronomy_related\\rbg_one\\red.png') green_channel=Image.open('E:\\astronomy_related\\rbg_one\\green.png') blue_channel =Image.open('E:\\astronomy_related\\rbg_one\\blue.png') # Create a new RGB image result = Image.merge("RGB", (red_channel, green_channel, blue_channel)) # Save the result image result.save('E:\\astr...
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 ... ...
Kids Activity - Create Halley's Comet stimulation using Chat GPT It is easy to create basic simulation using Chat GPT by giving prompt .Below is example of sample prompt "create java script code to create Halley's comet such that it is orbiting Sun. Also show distance in number" User can create more creative prompt Below is JavaScript code which created above graphical simulation (just copy past in note pad and save file as html and then open in browser) <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> canvas { border: 1px solid #000; display: block; margin: 20px auto; } </style> <title>Comet Animation</title> </head> <body> <canvas id="solarSystemCanvas" width="800" height="800">...
Comments
Post a Comment