Repository navigation
Conversation
There was a problem hiding this comment.
Yeah, yeah @esc24 ... I forgot to update the year (again).
|
Does anyone know a CF-compliant model output that uses "ocean_sigma_over_z" available via OPeNDAP? |
|
💤 Yawn! ... this PR is starting to feel quite lonely and sad ... 😢 |
|
Anyone care to take up this challenge? |
|
I'm ready to try this, but I still don't know of any sample sigma_over_z model output to try it on. |
|
Okay, I finally created what I believe to be a CF compliant sigma_over_z ocean model output, and tested out this pull request. If I do this: I get the following error: @bjlittle: Do you see what is wrong? Thanks, |
|
@bjlittle has been away at a conference, but he is now back. I'm sure he'll respond shortly. |
|
Hi @rsignell-usgs! Okay I'll have a look ... |
|
Whoop, here it is ... I had to make some minor changes to your NetCDF file in order to get Iris to play ball. Here's the CDL Please note that I made the following changes:
And |
|
Hmmm it's not crystal clear to me from the CF standard whether all the So is it sufficient that only the variable name of the ocean_sigma_z_coordinate is stated in the I prefer our simple, yet explicit approach ... should Iris gracefully cater for both scenarios ? Thoughts/guidance/clarity anyone @esc24, @rhattersley, @marqh, @rsignell-usgs ? |
I can't offer an authoritative opinion with respect to CF, but my gut says the formula_terms variables should be implied by association and should not need to be listed twice. Having said that, if they are there twice it should still work. |
|
Although I like to keep life simple, I tend to agree with you @esc24 ... implied through association would be better. Particularly from the user experience point of view ... And this isn't the first time I've seen Iris choke with regards to this issue with |
|
@bjlittle, I've been using Dimensionless Vertical Coordinate data (http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.6/cf-conventions.html#dimensionless-vertical-coordinate) for five years or so, but always using the NetCDF-Java library to compute the vertical coordinates (e.g. z positions at a specified time step). I know that the NetCDF-Java library does not require all the I'm also curious about the need to remove |
|
Okay @bjlittle, I checked the vertical coordinate z values ( |
|
Hi @rsignell-usgs! Okay that's great. Thanks for taking the time to analyse the data. I'll have a dig to figure out what's going wrong in my PR. Also, you shouldn't need to remove the So let me resolve this zeroing issue of the data. Once done, I'd love to get this PR merged now that it's got some momentum again. I'll nudge another core developer. With regards to the |
|
@rsignell-usgs ... okay, I think I've ironed out the wrinkle. Phew! Completely my mistake. I misunderstood (i.e. didn't engage brain) the Your IPython notebook really helped to clarify the situation. So I'm completely indebted to your thoroughness. Does this look any better @rsignell-usgs ? I just need to re-check the associated unit tests given this change. Once I've done that I'll push the update to the PR so that you can give it further examination. Cheers 😉 |
|
@rsignell-usgs fancy trying the latest cut of this PR with your data set ? I'm keen to get this merged ... |
|
Ah, sorry, I didn't realize there was something for me to try. Thanks for the jingle. I just tested and it looks good! |
|
No worries! Thanks @rsignell-usgs for taking the time to kick the tyres on this one. Very much appreciated. Okay, for me that's good enough evidence that this PR is fit for purpose. I'm going to re-base this PR against Iris upstream master, since this PR is now pretty stale. Then I need to grab the attention of another core developer to review and merge .... any takers @esc24 or @rhattersley ? Once done, I'll look at getting Iris to automatically associate the Then you never know ... I might get time to implement some of the easier ocean dimensionless vertical coordinates ... Ocean sigma coordinate seems like the next natural target. What's at the top of your hit-list @rsignell-usgs ? |
NB. We're both going to be at FOSS4G next week (and getting ready this week) so are likely to be out of the loop for a little while. Perhaps @bblay or @pelson might have a chance in the meantime. |
|
Textbook body swerve ... lovely manoeuvre @rhattersley 😉 |
|
The believe that the most-used vertical coordinates in the ocean are: |
|
@rsignell-usgs are |
|
yes, |
|
And I just received further confirmation from Jonathan this morning. See the CF_trac_summary link below. "There are a lot of tickets which have been agreed and should therefore be in Making a new version of CF depends on Jeff Painter or a colleague at PCMDI However, even without a new version of CF, it can be assumed that ticket 93 |
|
Excellent, thanks @rsignell-usgs ! The Google Groups thread https://groups.google.com/forum/#!topic/scitools-iris/D4qjnKa7rB0 provides sufficient test data coverage for these ocean models. I'm assuming that you'd be happy to beta-test as and when we manage to generate the associated PRs? It's proved invaluable with this PR, so thanks again. |
There was a problem hiding this comment.
I don't think this needs a constant. Define it inline.
|
@bjlittle - I support this PR as a valuable feature, but its current implementation is worryingly long. I'm keen to reduce the number of lines that this PR adds to Iris - there are a lot of redundant checks in both the construct/update methods and in the tests themselves which I think are ripe for factorisation and/or deletion. Remember: "it is easier to ask forgiveness than permission" 😉 |
|
@bjlittle , what does this mean? You come back later with a different pull request that is "leaner and meaner"? |
|
@rsignell-usgs don't worry ... just taking it off to the side so that I can refactor. |
|
@bjlittle, have there been any developments here? |
|
Thanks for the nudge @rsignell-usgs ... I've been shamelessly distracted. I'll blow the dust off this PR ... |
|
@bjlittle - take a look at the changes I recently made to the hybrid pressure factory. I pulled out a lot of the common verification code into a static |
|
Where do we stand now? |
|
@rsignell-usgs We're standing no more ... #1105 has already been merged! #1105 is the refactored PR based on lessons learnt from this PR. Yup, ocean sigma over z is available from upstream/master right now ... so now go build your cool tool! Any problems, then give me a jingle ... |
|
Awesome! |

This PR provides support for the CF ocean sigma over z dimensionless vertical coordinate.
As per the CF Metadata Conventions the standard_name of the dimensonless vertical coordinate is ocean_sigma_z_coordinate. However, the CF community seem to have failed to register this as a valid standard_name 😢
As a follow-on task, I'll communicate this discrepancy and lobby for its definition and inclusion in the official CF Standard Name Table.
I'm also not 100% sure whether the derived coordinate standard_name of sea_surface_height_above_reference_ellipsoid is appropriate. Confirmation welcomed.
This PR has been replaced by #1105.