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

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

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

origin: edu.ucar/netcdf

static void testTagid(short tag, short refno) throws IOException {
 System.out.format(" tag= %#x refno=%#x tagid=%#x \n", tag, refno, tagid(refno, tag));
}
origin: Unidata/thredds

private void addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) {
    Attribute att = makeAttribute(vh);
    if (null != att) {
     vinfo.v.addAttribute(att);
     if (att.getShortName().equals(CDM.FILL_VALUE))
      vinfo.setFillValue(att);
    }
   }
  }
 }
}
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 addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) {
    Attribute att = makeAttribute(vh);
    if (null != att) {
     vinfo.v.addAttribute(att);
     if (att.getShortName().equals(CDM.FILL_VALUE))
      vinfo.setFillValue(att);
    }
   }
  }
 }
}
origin: edu.ucar/cdm

private void addVariableAttributes(TagGroup group, Vinfo vinfo) 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")) {
    Attribute att = makeAttribute(vh);
    if (null != att) {
     vinfo.v.addAttribute(att);
     if (att.getShortName().equals(CDM.FILL_VALUE))
      vinfo.setFillValue(att);
    }
   }
  }
 }
}
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

Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
if (tag == null) throw new IllegalStateException();
if (tag.code == 1962)
 data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode()));
 if (null != data) {
  data.used = true;
origin: Unidata/thredds

Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
if (tag == null) throw new IllegalStateException();
if (tag.code == 1962)
 data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode()));
 if (null != data) {
  data.used = true;
origin: edu.ucar/cdm

Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
if (tag == null) throw new IllegalStateException();
if (tag.code == 1962)
 data = tagMap.get(tagid(vh.refno, TagEnum.VS.getCode()));
 if (null != data) {
  data.used = true;
origin: Unidata/thredds

 Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
 if (tag == null) {
  log.warn("Image Group "+group.tag()+" has missing tag="+group.elem_ref[i]+"/"+group.elem_tag[i]);
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode()));
if (tag == null)   {
 log.warn("Image Group "+group.tag()+" missing NT tag");
origin: edu.ucar/netcdf

 Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
 if (tag == null) {
  log.warn("Image Group "+group.tag()+" has missing tag="+group.elem_ref[i]+"/"+group.elem_tag[i]);
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode()));
if (tag == null)   {
 log.warn("Image Group "+group.tag()+" missing NT tag");
origin: edu.ucar/cdm

 Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
 if (tag == null) {
  log.warn("Image Group "+group.tag()+" has missing tag="+group.elem_ref[i]+"/"+group.elem_tag[i]);
Tag tag = tagMap.get(tagid(dimTag.nt_ref, TagEnum.NT.getCode()));
if (tag == null)   {
 log.warn("Image Group "+group.tag()+" missing NT tag");
origin: edu.ucar/netcdf

TagData data = null;
for (int i = 0; i < group.nelems; i++) {
 Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
 if (tag == null) {
  log.error("Cant find tag " + group.elem_ref[i] + "/" + group.elem_tag[i] + " for group=" + group.refno);
 throw new IllegalStateException();
TagNumberType nt = (TagNumberType) tagMap.get(tagid(dim.nt_ref, TagEnum.NT.getCode()));
if (null == nt) throw new IllegalStateException();
 Tag tag = tagMap.get(tagid(group.elem_ref[i], group.elem_tag[i]));
 if (tag == null) throw new IllegalStateException();
origin: edu.ucar/netcdf

Tag tag = tagMap.get(tagid(tagGroup.elem_ref[i], tagGroup.elem_tag[i]));
if (tag == null) {
 log.error("Reference tag missing= " + tagGroup.elem_ref[i] + "/" + tagGroup.elem_tag[i] +" for group "+tagGroup.refno);
origin: edu.ucar/cdm

Tag tag = tagMap.get(tagid(tagGroup.elem_ref[i], tagGroup.elem_tag[i]));
if (tag == null) {
 log.error("Reference tag missing= " + tagGroup.elem_ref[i] + "/" + tagGroup.elem_tag[i] +" for group "+tagGroup.refno);
origin: Unidata/thredds

Tag tag = tagMap.get(tagid(tagGroup.elem_ref[i], tagGroup.elem_tag[i]));
if (tag == null) {
 log.error("Reference tag missing= " + tagGroup.elem_ref[i] + "/" + tagGroup.elem_tag[i] +" for group "+tagGroup.refno);
origin: Unidata/thredds

tagMap.put(tagid(tag.refno, tag.code), tag); // track all tags in a map, key is the "tag id".
if (debugTag1) System.out.println(debugTagDetail ? tag.detail() : tag);
origin: edu.ucar/netcdf

tagMap.put(tagid(tag.refno, tag.code), tag); // track all tags in a map, key is the "tag id".
if (debugTag1) System.out.println(debugTagDetail ? tag.detail() : tag);
origin: edu.ucar/cdm

tagMap.put(tagid(tag.refno, tag.code), tag); // track all tags in a map, key is the "tag id".
if (debugTag1) System.out.println(debugTagDetail ? tag.detail() : tag);
ucar.nc2.iosp.hdf4H4headertagid

Popular methods of H4header

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • 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
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
  • JButton (javax.swing)
  • Top plugins for Android Studio
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