icesat2py / icepyx

Python tools for obtaining and working with ICESat-2 data
https://icepyx.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
203 stars 101 forks source link

No display when trying to visualize ATL06 elevations #428

Open mesenther opened 1 year ago

mesenther commented 1 year ago

Hello,

For some reason, I can never get past the "Plot elevation, please wait..." message when trying to display elevation data with ATL06. I changed the parameters so the code matches that of the website, but it still happens. For the sake of clarity, here is what I am currently running:

short_name = 'ATL06'
date_range = ['2020-7-1', '2020-8-1'] # change later
spatial_extent = [-67, -70, -59, -65]  # change later
cycles = ['03']
tracks = ['0948', '0872', '1184', '0186', '1123', '1009', '0445', '0369']

region = ipx.Query(short_name, spatial_extent, date_range)

print(region.product)
print(region.dates)
print(region.start_time)
print(region.end_time)
print(region.product_version)
print(list(set(region.avail_granules(cycles=True)[0]))) #region.cycles
print(list(set(region.avail_granules(tracks=True)[0]))) #region.tracks

cyclemap, rgtmap = region.visualize_elevation()
cyclemap

The result is this: image with the terminal resetting immediately after.

The same thing happens when importing the Visualization module directly and using the associated commands.

The fact that it finishes makes me think it is plotting the graph but I just cannot see it for some reason. Any ideas?

Thanks.