-
Notifications
You must be signed in to change notification settings - Fork 286
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
var_name in AuxCoord created by trajectory.interpolate() #3718
var_name in AuxCoord created by trajectory.interpolate() #3718
Conversation
Hi @SimonPeatman, thanks for contributing! I can't see a reason why the You just have one failing test because the expected output doesn't have the Also, I think this is technically an incompatible change since there is a small chance it could break someone's code. E.g. if |
Thanks @rcomer - the tests are now all passing. My branch doesn't have the latest.rst document (it must have been created recently). Is there something I can do to update my branch with the latest commits from SciTools/iris so I can edit that document? (My knowledge of GitHub isn't quite up to scratch I'm afraid!) |
@SimonPeatman If you can wait until #3838 and #3843 have gone in, they should significantly clarify what is expected with "What's New" contributions. If you're in a hurry by all means get started now, but please have a look at this preview of the planned changed documentation on "What's New" contributions |
Hi @SimonPeatman, thanks for your update. You can pick up all the changes since you made your branch by rebasing it. Assuming you are in your working copy directory, it should just be a case of
then, when you next push to github, you’ll likely get an error to do with “fast-forward updates” which you can get around with the Sorry, I should have realised you’d need this info before. |
b2b0301
to
8a0ddfa
Compare
Thanks both, this should be done now. I followed the advice in the Contributing a "What's New" entry page which @trexfeathers linked to, even though that doesn't quite follow the format of other entries in the latest.rst file (e.g., including my name and a link to my GitHub page). |
Thanks @SimonPeatman, I’ve just had a read through @trexfeathers’ link too as the new style is also new to me! I believe there is a plan to update the existing whatsnew entries to the new style before the release. This all seems to be in place. Welcome to the contributors list! |
* master: whatsnew - using the author github id (SciTools#3849) Bring SciTools#3804 whatsnew in line with format changes from SciTools#3838. (SciTools#3847) "What's New" credit and referencing (SciTools#3838) Allow passing None for all coord-system optional args. (SciTools#3804) var_name in AuxCoord created by trajectory.interpolate() (SciTools#3718)
When
iris.analysis.trajectory.interpolate()
creates AuxCoords for the coordinates interpolated along, it doesn't give them avar_name
. This causes an error if the coordinates differ in var_name only, because Iris doesn't like having two identical coordinates on the same Cube.Use case: I had a Cube which was a 2D histogram, with the two coordinates being some diagnostic on day n and the same diagnostic on day n+1, so they were the same thing physically and therefore differed in
var_name
only. When I tried to usetrajectory.interpolate()
it crashed with "ValueError: Duplicate coordinates are not permitted.".