-
Notifications
You must be signed in to change notification settings - Fork 13
New write mode to append to existing netCDF file #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New write mode to append to existing netCDF file #69
Conversation
e20cc35 to
10b0b3b
Compare
10b0b3b to
e7e2a65
Compare
eb8bb29 to
2d7a270
Compare
8648aac to
1f3cabb
Compare
|
Hi @davidhassell, all pushed except the Please can you test this on your env and let me know if you are still seeing #69 (comment)? And if you like you could review the commits made since your initial review, etc.? Thanks. |
|
Opening and closing to trigger the Actions jobs now... |
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
==========================================
+ Coverage 88.54% 88.82% +0.28%
==========================================
Files 101 101
Lines 10435 10528 +93
==========================================
+ Hits 9239 9350 +111
+ Misses 1196 1178 -18
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
(Previous feedback discussed and further feedback raised externally to GitHub, on Slack.) The CI jobs and Codacy are happy! Saying that, they didn't pick up on one issue I noticed as soon as I started those jobs (naturally), where a flag variable was defined in slightly the wrong place. The following commit fixes that. All feedback should now be addressed, what do you think @davidhassell ? I won't merge this yet, though, since I have a few minor issues to resolve that only show up in the equivalent cf-python test. |
|
#69 (comment) is not in fact an issue in the code, I have now realised, since the >>> import cf
>>> b = cf.example_field(2)
>>> print(b)
Field: air_potential_temperature (ncvar%air_potential_temperature)
------------------------------------------------------------------
Data : air_potential_temperature(time(36), latitude(5), longitude(8)) K
Cell methods : area: mean
Dimension coords: time(36) = [1959-12-16 12:00:00, ..., 1962-11-16 00:00:00]
: latitude(5) = [-75.0, ..., 75.0] degrees_north
: longitude(8) = [22.5, ..., 337.5] degrees_east
: air_pressure(1) = [850.0] hPa
>>> c = cf.example_field(5)
>>> print(c)
Field: air_potential_temperature (ncvar%air_potential_temperature)
------------------------------------------------------------------
Data : air_potential_temperature(time(118), latitude(5), longitude(8)) K
Cell methods : area: mean
Dimension coords: time(118) = [1959-01-01 06:00:00, ..., 1959-02-28 18:00:00]
: latitude(5) = [-75.0, ..., 75.0] degrees_north
: longitude(8) = [22.5, ..., 337.5] degrees_east
: air_pressure(1) = [850.0] hPa
>>> c.equals(b, verbose=-1)
Data: Different shapes: (118, 5, 8) != (36, 5, 8)
Field: Different data
False
>>> a = cf.aggregate([b, c])
>>> a
[<CF Field: air_potential_temperature(time(154), latitude(5), longitude(8)) K>]which (noting the |
|
(Discussing via Slack and investigating some slowness emerging in another |
|
#69 (comment) turned out to be unrelated to the PR code changeset and has been addressed in |
|
All tests pass for me, and in the expected amount of time (apart from a pep8 white space error in Good work! |
|
Opening-closing to check the Actions jobs still pass... |
|
🎉 🎈 Good to merge on all counts! Thanks for all of your help with this @davidhassell, we got there in the end... Now to the cf-python equivalent; review to be opened on #NCAS-CMS/cf-python#213 very soon. |
Closes #143.
WIP for now. Details to follow once the PR is ready-for-review.