Nam's Space Library

Python for Physics

H-R diagram with python

Let’s create an H-R diagram using Python! First, we need to collect a dataset, and I have obtained one from the website URL below. https://github.com/YBIFoundation/Dataset/blob/main/Stars.csv I also captured the code I wrote to create an H-R diagram for the dataset I downloaded. These are the codes for the basic setup to create the diagram The …

H-R diagram with python 더 보기 »

[Astropy] Units conversion

First, we need to install it using pip Just simply type ‘pip install astropy’ in the terminal to install it The Astropy module includes many constants commonly used in space, so you don’t need to specify them separately when coding! For example, the well-known gravitational constant value is:   G=6.67×10−11 N⋅m^2/kg^2 Previously, to use this value, …

[Astropy] Units conversion 더 보기 »

Scroll to Top