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

Dummy model sometimes needs altitude coordinate #947

Open
lewisblake opened this issue Nov 13, 2023 · 0 comments
Open

Dummy model sometimes needs altitude coordinate #947

lewisblake opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working CAMS2_82 Issues related to the CAMS2_82 contract nice-thing-to-have-🍨 nice to have

Comments

@lewisblake
Copy link
Member

e.g., Obs-only experiments with Earlinet fail because the GriddedData object (dummy_cube) doesn't have altitude as an attribute

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/colocation_auto.py", line 830, in run
    coldata = self._run_helper(
              ^^^^^^^^^^^^^^^^^
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/colocation_auto.py", line 1492, in _run_helper
    coldata = self._colocation_func(**args)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/colocation_3d.py", line 376, in colocate_vertical_profile_gridded
    if any(
       ^^^^
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/colocation_3d.py", line 377, in <genexpr>
    data.altitude.units != Unit(data_ref.metadata[i]["var_info"]["altitude"]["units"])
    ^^^^^^^^^^^^^
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/griddeddata.py", line 2569, in __getattr__
    return self[attr]
           ~~~~^^^^^^
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/griddeddata.py", line 2720, in __getitem__
    raise AttributeError(f"GriddedData object has no attribute {indices_or_attr}")
AttributeError: GriddedData object has no attribute altitude
@lewisblake lewisblake self-assigned this Nov 13, 2023
@lewisblake lewisblake added the bug Something isn't working label Nov 13, 2023
@lewisblake lewisblake added this to the m2024-06 milestone May 16, 2024
@lewisblake lewisblake added the CAMS2_82 Issues related to the CAMS2_82 contract label May 16, 2024
@lewisblake lewisblake modified the milestones: m2024-06, m2024-07, m2024-08 Jun 5, 2024
@lewisblake lewisblake removed this from the m2024-08 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CAMS2_82 Issues related to the CAMS2_82 contract nice-thing-to-have-🍨 nice to have
Projects
None yet
Development

No branches or pull requests

1 participant