Tabnine Logo
Sequence.getVariableNames
Code IndexAdd Tabnine to your IDE (free)

How to use
getVariableNames
method
in
ucar.nc2.Sequence

Best Java code snippets using ucar.nc2.Sequence.getVariableNames (Showing top 2 results out of 315)

origin: Unidata/thredds

@Test
@Category(NeedsCdmUnitTest.class)
public void testRead() throws IOException {
 try (NetcdfFile ncfile = NetcdfFile.open(TestDir.cdmUnitTestDir + "ft/point/200929100.ingest")) {
  Sequence record = (Sequence) ncfile.findVariable("record");
  List<String> expectedMemberNames = Arrays.asList("tsec", "nsec", "lat", "lon", "sgnl", "mult", "fill",
      "majorAxis", "eccent", "ellipseAngle", "chisqr");
  Assert.assertEquals(Sets.newHashSet(expectedMemberNames), Sets.newHashSet(record.getVariableNames()));
  try (StructureDataIterator iter = record.getStructureIterator()) {
   int recordCount = 0;
   while (iter.hasNext()) {
    StructureData data = iter.next();
    // Assert that a single value from the first record equals an expected value.
    // Kinda lazy, but checking all values would be impractical.
    if (recordCount++ == 0) {
     Assert.assertEquals(-700, data.getScalarShort("sgnl"));
    }
   }
   Assert.assertEquals(1165, recordCount);
  }
 }
}
origin: Unidata/thredds

    "Height_of_station", "Short_station_or_site_name", "Type_of_measuring_equipment_used",
    "Time_significance", "Time_period_or_displacement", "seq1");
Assert.assertEquals(Sets.newHashSet(expectedMemberNames), Sets.newHashSet(obs.getVariableNames()));
ucar.nc2SequencegetVariableNames

Popular methods of Sequence

  • getStructureIterator
  • <init>
  • findVariable
  • makeStructureMembers
  • setDimensions
  • setSPobject
  • addAttribute
  • addMemberVariable
  • read
    UnsupportedOperation
  • getSPobject
  • setDataType
  • setDataType

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now