Skip to content

Commit

Permalink
write netcdfs as netcdf4_classic (#119)
Browse files Browse the repository at this point in the history
* write netcdfs as netcdf4_classic

* updated whatsnew
  • Loading branch information
veenstrajelmer authored Aug 23, 2024
1 parent 3959f40 commit 368bc46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- add hydra statistics for overschrijdingen as preparation for eventual method in [#106](https://github.com/Deltares-research/kenmerkendewaarden/pull/106)
- improvements to output csv files in [#109](https://github.com/Deltares-research/kenmerkendewaarden/pull/109)
- drop duplicate times in `kw.read_measurements()` in [#116](https://github.com/Deltares-research/kenmerkendewaarden/pull/116)
- use NETCDF4_CLASSIC format to reduce file sizes written by `kw.retrieve_measurements()` in [#119](https://github.com/Deltares-research/kenmerkendewaarden/pull/119)

### Fix
- implemented workaround for pandas 2.2.0 with different rounding behaviour in [#69](https://github.com/Deltares-research/kenmerkendewaarden/pull/69)
Expand Down
4 changes: 2 additions & 2 deletions examples/KWK_getcheckdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

retrieve_meas_amount = False
plot_meas_amount = False
retrieve_meas = False
retrieve_meas = True
derive_stats = False
plot_meas = False
plot_stations = False
test = False
test = True

# TODO: add timezone to start/stop date? (and re-retrieve all data): https://github.com/Deltares-research/kenmerkendewaarden/issues/29
start_date = "1870-01-01"
Expand Down
2 changes: 1 addition & 1 deletion kenmerkendewaarden/data_retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def retrieve_measurements(
)

# write to netcdf (including metadata)
ds_meas.to_netcdf(file_nc)
ds_meas.to_netcdf(file_nc, format="NETCDF4_CLASSIC")
ds_meas.close()


Expand Down

0 comments on commit 368bc46

Please sign in to comment.