DaniSb170 / nctoolbox

Automatically exported from code.google.com/p/nctoolbox
0 stars 0 forks source link

Write with nctoolbox #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add write capability to nctoolbox using native matlab writing routines

Original issue reported on code.google.com by crosb...@gmail.com on 17 Apr 2012 at 6:26

GoogleCodeExporter commented 8 years ago
A couple of things: 

1) We can use NetCDF-Java instead of the matlab C-style calls to do writes. 
This is probably a better idea as it's using the same technology currently 
embraced by nctoolbox. 

2) Just FYI, there's a method on nctoolbox called 'save' which allows one to 
save the full dataset to a file as NetCDF.

3) I wouldn't add write code to ncdataset class and it's descendants. It would 
be better to create an 'ncbuilder' class to allow folks to build up a data 
representation that can then be converted to a ncdataset (or presented via a 
facade that looks like an ncdataset) and then written out with a call to 
ncdataset.save.

Original comment by bschlin...@gmail.com on 17 Apr 2012 at 7:00

GoogleCodeExporter commented 8 years ago
Awesome thanks

Original comment by crosb...@gmail.com on 18 Apr 2012 at 2:01

GoogleCodeExporter commented 8 years ago
The current netcdf-java lib we are using can't write to netcdf4, is that 
correct? Can 4.3?

Original comment by crosb...@gmail.com on 21 Jun 2012 at 4:22

GoogleCodeExporter commented 8 years ago
I don't know. Can you post the question to the netcdf-users mailing list?

Original comment by bschlin...@gmail.com on 21 Jun 2012 at 4:48

GoogleCodeExporter commented 8 years ago
I do know.  I cannot, and won't even in the future.  It's too hard to write 
HDF5 with pure java, and so far Unidata doesn't want to use non-pure java code.

Original comment by rsignell on 21 Jun 2012 at 6:00

GoogleCodeExporter commented 8 years ago
:-(

Original comment by crosb...@gmail.com on 21 Jun 2012 at 6:15