Skip to content

NIMROD loading#54

Merged
esc24 merged 2 commits into
SciTools:masterfrom
bblay:nimrod
Sep 12, 2012
Merged

NIMROD loading#54
esc24 merged 2 commits into
SciTools:masterfrom
bblay:nimrod

Conversation

@bblay

@bblay bblay commented Aug 22, 2012

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/iris/fileformats/nimrod.py Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where #52 is needed. The code is commented out, ready to use after #52 has been brought in.

@esc24

esc24 commented Aug 23, 2012

Copy link
Copy Markdown
Member

@bblay I've taken a look at nimrod.py and put a bunch of comments inline. I've also looked over your proposed changes to the file format mechanism. I have a number of issues that I'd like to discuss on this, and I'd rather not mix up the two discussions or hold up the NIMROD functionality any more than necessary. Could you split these two sets of changes out into two separate pull requests?

@bblay

bblay commented Aug 29, 2012

Copy link
Copy Markdown
Contributor Author

All review avctions implemented except:

Format recognition moved into https://github.com/bblay/iris/tree/formats for later.

Comment thread lib/iris/fileformats/nimrod.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this behaviour. Have you come across such units?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the sample data I'm loading is in m/2-25k !

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little uneasy about this too, but improving the unit handling is a significant chunk of work. Although this differs from the rest of the loaders (which don't attempt to catch the exception) I think it's reasonable workaround. I think a warning is in order though to let the user know the units could not be parsed and have been squirrelled away.

@pelson

pelson commented Aug 31, 2012

Copy link
Copy Markdown
Member

On the whole, I think the nimrod reading would benefit from using numpy.fromfile rather than struct. Other than that, I think its a good start into reading Nimrod.

@pelson

pelson commented Aug 31, 2012

Copy link
Copy Markdown
Member

I should add that it would be nice to extract the names of the nimrod variables out to a tuple so that should anyone wish to implement saving in the future, the process would be fairly straight forward.

Comment thread lib/iris/fileformats/nimrod.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a double ':' here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants