Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fft2 plot #335

Open
allibco opened this issue Sep 23, 2024 · 0 comments
Open

fft2 plot #335

allibco opened this issue Sep 23, 2024 · 0 comments

Comments

@allibco
Copy link
Collaborator

allibco commented Sep 23, 2024

The cf.attributes are [] when plotting fft2.

file ~/alli/code-repo/ldcpy/ldcpy/plot.py:327, in calcsPlot.spatial_plot(self, da_sets, titles, data_type)
323 cmin = []
325 # lat/lon could be 1 or 2d and have different names
326 #print(da_sets[0].cf.coordinates)
--> 327 lon_coord_name = da_sets[0].cf.coordinates['longitude'][0]
328 lat_coord_name = da_sets[0].cf.coordinates['latitude'][0]
330 # is the lat/lon 1d or 2d (to do: set error if > 2)

KeyError: 'longitude'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant