Tabnine Logo
H4header.makeVariable
Code IndexAdd Tabnine to your IDE (free)

How to use
makeVariable
method
in
ucar.nc2.iosp.hdf4.H4header

Best Java code snippets using ucar.nc2.iosp.hdf4.H4header.makeVariable (Showing top 6 results out of 315)

origin: edu.ucar/cdm

private void addGlobalAttributes(TagVGroup group) throws IOException {
 // look for attributes
 for (int i = 0; i < group.nelems; i++) {
  Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
  if (tag == null) throw new IllegalStateException();
  if (tag.code == 1962) {
   TagVH vh = (TagVH) tag;
   if (vh.className.startsWith("Att")) {
    String lowername = vh.name.toLowerCase();
    if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) &&
      ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata")
        || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) {
     ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group
    } else {
     Attribute att = makeAttribute(vh);
     if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group
    }
   }
  }
 }
 group.used = true;
}
origin: edu.ucar/netcdf

private void addGlobalAttributes(TagVGroup group) throws IOException {
 // look for attributes
 for (int i = 0; i < group.nelems; i++) {
  Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
  if (tag == null) throw new IllegalStateException();
  if (tag.code == 1962) {
   TagVH vh = (TagVH) tag;
   if (vh.className.startsWith("Att")) {
    String lowername = vh.name.toLowerCase();
    if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) &&
      ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata")
        || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) {
     ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group
    } else {
     Attribute att = makeAttribute(vh);
     if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group
    }
   }
  }
 }
 group.used = true;
}
origin: Unidata/thredds

private void addGlobalAttributes(TagVGroup group) throws IOException {
 // look for attributes
 for (int i = 0; i < group.nelems; i++) {
  Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
  if (tag == null) throw new IllegalStateException();
  if (tag.code == 1962) {
   TagVH vh = (TagVH) tag;
   if (vh.className.startsWith("Att")) {
    String lowername = vh.name.toLowerCase();
    if ((vh.nfields == 1) && (H4type.setDataType(vh.fld_type[0], null) == DataType.CHAR) &&
      ((vh.fld_isize[0] > 4000) || lowername.startsWith("archivemetadata") || lowername.startsWith("coremetadata")
        || lowername.startsWith("productmetadata") || lowername.startsWith("structmetadata"))) {
     ncfile.addVariable(null, makeVariable(vh)); // // large EOS metadata - make into variable in root group
    } else {
     Attribute att = makeAttribute(vh);
     if (null != att) ncfile.addAttribute(null, att); // make into attribute in root group
    }
   }
  }
 }
 group.used = true;
}
origin: edu.ucar/netcdf

 Variable v = makeVariable(vgroup);
 if (v != null) vars.add(v);
TagVH tagVH = (TagVH) t;
if (tagVH.className.startsWith("Data")) {
 Variable v = makeVariable(tagVH);
 if (v != null) vars.add(v);
Variable v = makeVariable((TagGroup) t);
if (v != null) vars.add(v);
TagVH vh = (TagVH) t;
if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) {
 Variable v = makeVariable(vh);
 if (v != null) vars.add(v);
origin: Unidata/thredds

 Variable v = makeVariable(vgroup);
 if (v != null) vars.add(v);
TagVH tagVH = (TagVH) t;
if (tagVH.className.startsWith("Data")) {
 Variable v = makeVariable(tagVH);
 if (v != null) vars.add(v);
Variable v = makeVariable((TagGroup) t);
if (v != null) vars.add(v);
TagVH vh = (TagVH) t;
if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) {
 Variable v = makeVariable(vh);
 if (v != null) vars.add(v);
origin: edu.ucar/cdm

 Variable v = makeVariable(vgroup);
 if (v != null) vars.add(v);
TagVH tagVH = (TagVH) t;
if (tagVH.className.startsWith("Data")) {
 Variable v = makeVariable(tagVH);
 if (v != null) vars.add(v);
Variable v = makeVariable((TagGroup) t);
if (v != null) vars.add(v);
TagVH vh = (TagVH) t;
if (!vh.className.startsWith("Att") && !vh.className.startsWith("_HDF_CHK_TBL")) {
 Variable v = makeVariable(vh);
 if (v != null) vars.add(v);
ucar.nc2.iosp.hdf4H4headermakeVariable

Popular methods of H4header

  • isValidFile
  • setDebugFlags
  • addGlobalAttributes
  • addGroupToGroup
  • addVariableAttributes
  • addVariableToGroup
  • adjustDimensions
  • construct
  • factory
  • findUsedDimensions
  • isEos
  • makeAttribute
  • isEos,
  • makeAttribute,
  • makeDimension,
  • makeDimensionUnshared,
  • makeGroup,
  • makeImage,
  • read,
  • readDDH,
  • tagid

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • CodeWhisperer 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