Skip to content

GCPy not properly recognizing 0.125x0.15625 lat-lon grid #314

@msulprizio

Description

@msulprizio

Name and Institution (Required)

Name: Melissa Sulprizio
Institution: Harvard

Description of your issue or question

When trying to create plots comparing 12-km (0.125x0.15625 degree) lat-lon grid to other resolutions, I am getting a similar error as reported in #313.

ValueError: operands could not be broadcast together with shapes (402,447) (402,416)

I am able to plot the 0.125x0.15625 output against itself, but I noticed the resolution string is incorrect. For example:

Screenshot 2024-04-18 at 3 25 44 PM

I added debug statements in grid.py for the longitude:
[-129.984 -129.8277 -129.6714... -60.5868 -60.4305 -60.2742]

which returns the longitude resolution of
0.15629999999998745

I suspect there's an issue with numerical roundoff happening and we haven't encountered it because previous resolution strings haven't extended beyond 4 decimal places.

Metadata

Metadata

Assignees

Labels

category: BugSomething isn't workingnever staleNever label this issue as staletopic: RegriddingIssues pertaining to horizontal & vertical regridding

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions