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

Re: Question of lvls

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: Question of lvls
  • Date: Mon, 27 Feb 2006 14:51:11 -0700

Netcdf-Java feils are accessed by array index. You must look at the coordinates 
to determine what the index is at the desired height, then use that index to 
fetch the data.

Nelson Brandon K A1C AFWA/SCSA wrote:
All,

            I have this code…

NetcdfFile file = NetcdfFile.open("C:\\Documents and Settings\\nelsonb\\My Documents\\ArcMap\\us057g1010t03a000000000");

            List variables = file.getVariables();

Variable v = file.findVariable("Temperature_height_above_ground");

            Array data = v.read();

The temperate has data for “height_above_ground” at about 20 different heights. How do I access JUST the data at a specific heigh? Thanks for your time all!
V/r

A1C Nelson, Brandon K

Communications-Computer Systems Programmer

HQ AFWA/SCSA (402) 294-1404