Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[UDUNITS #DJU-684251]: udunits



Henry,

> if I create a timestamp unit by parsing a data e.g
> 
> ut_sct_in=ut_parse(ut_sys,"s@1990-1-1 10:58:26",UT_ASCII);
> 
> How can I access the member "double origin"  in the resulting
> TimestampUnit structure ?

You can't.  The implementations of unit structures in the UDUNTS-2 package are 
opaque to client code.

If you're trying to get at the implementation details of a unit, then you're 
probably writing code that's likely to not work when a slight change is made to 
the package.

What, exactly, are you trying to accomplish?  There might be a way to do it 
that's still consistent with the intent of the package.

> Regards Henry

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: DJU-684251
Department: Support UDUNITS
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690