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 #VJK-900361]: non-dimensional data and udunits2



Hi Jim,

> I've always had trouble figuring out how to deal with non-
> dimensional data in udunits. Mainly, converting values
> in a 0-1 range into percent. In udunits v1, setting units='1'
> and then asking for 'percent' works, but udunits2 does not
> know what 'percent' is. This should really just be a constant
> operation (*100) but I'm having trouble understanding the
> udunits2 syntax so I've hit an impasse. Is there a way to
> do this in udunits2?

I can't believe I left out the percent unit.  Guess I'll have to make a new 
release.

In the meantime, you can always use "0.01".

> Also, now that the database is in XML, it is hard to look at.
> Is there an interactive XML parsing tool you can recommend
> for looking at these files?

Sorry.  I use vi(1) for looking at the XML files.

> Thanks
> 
> -jim
> 
> --
> Jim Cowie
> NCAR/RAL
> cowie@xxxxxxxx
> 303-497-2831


Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: VJK-900361
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