Skip to content

Instantly share code, notes, and snippets.

View IraLeeBell's full-sized avatar

Ira Bell IraLeeBell

View GitHub Profile
from astropy.io import fits
def check_plate_solution(file_path):
# Open the FITS file
with fits.open(file_path) as hdul:
# Access the header of the primary HDU (extension 0)
header = hdul[0].header
# WCS-related keywords commonly used for plate solutions
wcs_keywords = ['CRVAL1', 'CRVAL2', 'CD1_1', 'CD1_2', 'CD2_1', 'CD2_2']
from nea import NASAExoplanetArchive
import json
import pandas as pd
import os
def main():
# Prompt user to enter the name of the exoplanet
planet_name = input("Please enter the name of the exoplanet to fetch data for: ")
# Create an instance of the NASAExoplanetArchive class