Skip to content

Commit

Permalink
add vertical_layer to coldata meta
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Jul 19, 2023
1 parent 4186561 commit 35be719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyaerocom/colocation_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def colocate_vertical_profile_gridded_helper(
min_num_obs=min_num_obs,
use_climatology_ref=use_climatology_ref,
)

# this try/except block was introduced on 23/2/2021 as temporary fix from
# v0.10.0 -> v0.10.1 as a result of multi-weekly obsdata (EBAS) that
# can end up resulting in incorrect number of timestamps after resampling
Expand Down Expand Up @@ -279,6 +278,7 @@ def colocate_vertical_profile_gridded_helper(
"pyaerocom": pya_ver,
"min_num_obs": min_num_obs,
"resample_how": resample_how,
"vertical_layer": vertical_layer,
}

# create coordinates of DataArray
Expand All @@ -301,7 +301,7 @@ def colocate_vertical_profile_gridded_helper(
coldata.longitude.attrs["standard_name"] = data.longitude.standard_name
coldata.longitude.attrs["units"] = str(data.longitude.units)

coldata.vertical_layer = vertical_layer
# coldata.vertical_layer = vertical_layer

list_of_colocateddata_objects.append(coldata)

Expand Down

0 comments on commit 35be719

Please sign in to comment.