This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Module for retrieving info from NASA NeoWS API. | |
''' | |
import json | |
import requests | |
url = 'https://api.nasa.gov/neo/rest/v1/neo/' | |
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) \ | |
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} | |
payload = {'api_key' : 'DEMO_KEY'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import os | |
dtype = np.dtype([ | |
("NO", np.int32), | |
("NOBS", np.int32), | |
("OBSFRST", np.int32), | |
("OBSLAST", np.int32), | |
("EPOCH", np.float64), | |
("CALEPO", np.float64), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Functions related to DASTCOM5 database | |
''' | |
import os | |
import re | |
import zipfile | |
from ftplib import FTP, Error | |
import urllib.request | |
import numpy as np | |
import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import math | |
import matplotlib | |
import numpy as np | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import astropy.time as time | |
import astropy.coordinates as coordinates | |
from astropy.coordinates.angles import Angle | |
import astropy.units as u |