Closed jcastigliano closed 1 year ago
@jcastigliano I don't seem to have this import bug with the latest version of asilib (0.17.1). What version that you're using? Can you reply with the output of
import asilib
print(asilib.__version__)
That was probably the issue. I only had 0.11.0 on Windows. I've uninstalled and done a fresh install and will update you if needed or more likely than not close the thread. Thanks!
On Mac: 0.17.0 On Windows: 0.11.0
Steps to reproduce:
Installed using: python3 -m pip install aurora-asi-lib OS: Ventura 13.4 AND Windows 10 19045.3086 Mac: Python Version 3.9.12, Windows: 3.10.11
Error message:
Additional information:
The code example I'm using from the documentation website (creation of a keogram):
import matplotlib.pyplot as plt
import asilib.asi
location_code = 'GILL' time_range = ['2015-02-02T10', '2015-02-02T11']
asi = asilib.asi.rego(location_code, time_range=time_range, alt=230) ax, p = asi.plot_keogram(color_map='Greys_r') plt.xlabel('Time') plt.ylabel('Geographic Latitude [deg]') plt.colorbar(p) plt.tight_layout() plt.show()
The code I wrote based on the above example(I know it's far from the most efficient): import matplotlib.pyplot as plt
import asilib.asi
loop = 1 while loop == 1: print("Enter 4 letter camera location code (format: XXXX):") location_code = input() location_code = location_code.upper() print('Enter the start date (format: YYYY-MM-DD):') startDate = input() print('Enter the start time in UT (format: 00):') startTime = input() startTime = 'T' + startTime print('Enter the end time in UT (format: 00):') endTime = input() endTime = 'T' + endTime endDate = startDate + endTime startDate = startDate + startTime time_range = [startDate, endDate]