NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Ticket #23 (task)

Opened 16 years ago

Last modified 14 years ago

Implement udunits conversion in procutil

Status: closed (fixed)

Reported by: haines Assigned to: haines
Priority: major Milestone:
Component: raw2proc Version: 1.0
Keywords: Cc: cbc

Implement udunits conversion in procutil. This will allow us to not have a gazillion conversion functions like meters2feet(meters) and millibar2inches_Hg(millibar).

See raw2proc page for info on this component and module.

Change History

09/18/08 16:14:08: Modified by haines

  • status changed from new to assigned.
  • type changed from defect to task.

09/18/08 16:33:42: Modified by haines

  • description changed.

09/18/08 16:37:26: Modified by haines

  • description changed.

09/19/08 12:23:15: Modified by cbc

Excellent idea.

04/27/10 14:07:19: Modified by haines

  • status changed from assigned to closed.
  • cc set to cbc.
  • resolution set to fixed.

1. added udconvert(val, units_from, units_to) to procutil module. 2. udconvert() requires the UDUNITS2 Python Wrapper from https://db.aoos.org/wiki/index.php/AOOS_Python 3. installed udunits-2.1.11 system-wide 4. access installed shared library by setting library path envirment variable $ export LD_LIBRARY_PATH=/usr/local/lib $ python or $ /your/virtualenv/python