Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Oct 2, 2023
1 parent 9172468 commit 7950191
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kerchunk/tests/test_netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def unlimited_dataset(tmpdir):
rootgrp.createDimension("lat", 10)
rootgrp.createDimension("lon", 5)
rootgrp.createVariable("time", "f8", ("time",))
# reference time is an unbounded dimension that is a half byte long, so it
# has padding to line up to be take up exactly one byte. It is here to test that
# kerchunk can handle the padding correctly and still read following variables
# correctly.
rootgrp.createVariable("reference_time", "h", ("time",))
rootgrp.title = "testing"
latitudes = rootgrp.createVariable("lat", "f4", ("lat",))
longitudes = rootgrp.createVariable("lon", "f4", ("lon",))
Expand Down

0 comments on commit 7950191

Please sign in to comment.