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

[netCDFJava #YHZ-994892]: NetCDF-Java variable attribute path

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: [netCDFJava #YHZ-994892]: NetCDF-Java variable attribute path
  • Date: Thu, 11 Aug 2016 14:49:14 -0600

Looking at the comment associated with findAttribute, it says:

  * Find an attribute, with the specified (escaped full) name.
   * It may possibly be nested in multiple groups and/or structures.
   * An embedded "." is interpreted as structure.member.
   * An embedded "/" is interpreted as group/group or group/variable.
   * If the name actually has a ".", you must escape it (call 
NetcdfFile.escapeName(varname))

So assuming you only have a root group, the full path should look
something like this:
    /varname.attributename 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: YHZ-994892
Department: Support netCDF Java
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.