Conversation
|
I suppose I don't see much harm in adding support. Can your use of Let's drop the redirect of stderr as well. It only works with the Bourne shell. |
|
Unfortunately I can't easily replace I didn't realise that stderr redirections weren't the same in all shell (I've only ever really used bash) so I'll remove it. However that means that an error that occurs on reading the file will just result in a blank page with no error message. When writing out the file you have the following in Should there be a similar check in |
This adds support to edit NetCDF files, they get converted to cdl when reading and writen back to NetCDF when writing using the NCO tools. You will need netcdf installed for this to work
|
That's going to need a major rewrite of the upstream tool. They expressly create their own file open function. I'm sure there's ways to script around that and even using /dev/stdin but that's locking into UNIX's way of doing things. |
NetCDF is a binary data format used generally for storing array based scientific data. It has tools to decode and encode it to a text representation (CDL) so this change allows editing of the binary files from a text editor.
I realise that this is a little off topic for the original image editing use of this plugin but fits very easily into the framework that is there so I thought that it was nicer to add it to this plugin rather than creating a new one. Let me know if you don't want to pull this in and I'll see about creating my own plugin.