Changeset 8869 in genesis for tools


Ignore:
Timestamp:
Mar 2, 2011, 6:43:22 PM (14 years ago)
Author:
rick
Message:

Get proper lib dependencies and missing functions in place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/rdnap.py

    r8622 r8869  
     1import yaml
     2import urllib
     3
    14CACHE_FILE = '/tmp/rd2etrs.yaml'
    25coordinates = None
     6
     7def get_yaml(gfile):
     8  """ Get configuration yaml for 'item'"""
     9  f = open(gfile, 'r')
     10  datadump = yaml.load(f)
     11  return datadump
     12
     13def write_yaml(gfile, datadump):
     14  """ Write configuration yaml for 'item'"""
     15  f = open(gfile, 'w')
     16  f.write(yaml.dump(datadump, default_flow_style=False))
     17  f.close()
    318
    419def etrs2rd(lam, phi):
Note: See TracChangeset for help on using the changeset viewer.