Weather¶
PySpace provides 2 methods that help you access data about Earth and Martian weather.
Earth Weather¶
Warning
To use this method, you need to specify the Weather API
1import pyspace
2
3nasa = pyspace.PySpace(weather_api_key="API_KEY")
Note
As of now this method is still in BETA. Therefore, there is no Error Handling as of now.
Keep in mind that there is not any additional handling for the date range (start_date - end_date)
Martian Weather¶
Attention
You do not need an API_KEY to retrieve data from the Insights (Mars Weather Data) API. Although it is highly recommended. Please read more information about NASA’s Rate Limits
Note
We will soon add a unit parameter so that the user can choose the unit in which the temperatures are. (Fahrenheit or Celcius)