Re: [netcdf-java] Write to OutputStream

Hi Dean:

You can try Variable.readToStream().

Note this will be a binary serialization that may not be portable. Who is the consumer of the stream?

Also its "experimental", and we would be glad of feedback.

John

On 5/28/2014 2:24 PM, Ericson, Dean - 0443 - MITLL wrote:
Is anyone aware of a way that we can use the netcdf 4.3 library to
write/copy/subset a netcdf file into an OutputStream?  I see that the
NetcdfFile object has a ‘writeCDL’ method, but it looks as though it has
to exist on disk first.  Can anyone confirm that?

My use case requires that we can copy data from an input netcdf 4 file
and copy/subset it onto a JMS topic.  We have all other dependencies
setup, it’s just a matter of writing/copying the data into the
OutputStream.

Any help/guidance would be appreciated.

Thank you,

Dean Ericson

Dean Ericson

MIT Lincoln Laboratory



_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/




  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: