Skip to content

Commit

Permalink
Allow time instead of date as axis
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Aug 1, 2024
1 parent 3581a7a commit e5565cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covjsonkit/encoder/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def walk_tree(self, tree, lat, coords, mars_metadata, param, range_dict, number,
if para not in range_dict[date][num]:
range_dict[date][num][para] = {}
self.add_parameter(para)
if c.axis.name == "date":
if c.axis.name == "date" or c.axis.name == "time":
dates = [str(date) + "Z" for date in c.values]
for date in dates:
coords[date] = {}
Expand Down

0 comments on commit e5565cc

Please sign in to comment.