Skip to content

Commit

Permalink
Preserve unit metadata when converting between file types
Browse files Browse the repository at this point in the history
  • Loading branch information
gvidigal-psr committed Aug 13, 2024
1 parent 898d36c commit 0cdc8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/binary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function convert(
time_dimension = String(metadata.time_dimension),
dimension_size = metadata.dimension_size,
initial_date = metadata.initial_date,
unit = metadata.unit,
)

for dims in Iterators.product([1:size for size in reverse(metadata.dimension_size)]...)
Expand Down
1 change: 1 addition & 0 deletions src/csv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function convert(
time_dimension = String(metadata.time_dimension),
dimension_size = metadata.dimension_size,
initial_date = metadata.initial_date,
unit = metadata.unit,
)

while reader.reader.next !== nothing
Expand Down

0 comments on commit 0cdc8ca

Please sign in to comment.