[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Output CDF file

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: Output CDF file
  • Date: Thu, 25 Mar 2004 21:29:06 -0700

Visweswara Rao Kottapalli wrote:

Hello,

I have a question regarding writing out a netCDF file for Mass
Spectral Data. I've been using the following piece of code for doing this.

ncfile.write("mass_values", ArrayAbstract.factory(massValues));
where "massValues" is a one dimensional java array.

But now I had to changed the fundamental data structure in my java
program.
So instead of having a single huge java array of massValues, I am going to
have "n" number of small massValue arrays, where n is the number of data
points. In other words, I used to have a single array of massValues for
all the data points. But now I have an snall array of massValues for each
data point. All these massValue arrays should be togather written out as
"mass_values" variable into the netCDF file.

Is there any way I can do this without generating one single array of
massValues?

Thank you very much in advance.

Regards,
Visweswara Rao Kottapalli
call NetcdfFileWriteable.write(java.lang.String varName, int[] origin, ArrayAbstract values) n times, with the origin set appropriately.