Skip to content

Commit 2d3f448

Browse files
committed
Rearrange
1 parent bff9c7c commit 2d3f448

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

regional_mom6/regional_mom6.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,14 +2754,16 @@ def regrid_velocity_tracers(
27542754
), # Import pandas for this shouldn't be a big deal b/c it's already kinda required somewhere deep in some tree.
27552755
dims=["time"],
27562756
)
2757-
segment_out.time.attrs = {
2758-
"calendar": calendar,
2759-
"units": f"{time_units} since {self.startdate}",
2760-
}
2757+
27612758
# This to change the time coordinate.
27622759
segment_out = rgd.add_or_update_time_dim(
27632760
segment_out, times, reprocessed_var_map["depth_coord"]
27642761
)
2762+
2763+
segment_out.time.attrs = {
2764+
"calendar": calendar,
2765+
"units": f"{time_units} since {self.startdate}",
2766+
}
27652767
else:
27662768
segment_out.time.attrs = {
27672769
"calendar": calendar,

0 commit comments

Comments
 (0)