Skip to content

fft2 plot #335

@allibco

Description

@allibco

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions