- Timestamp:
- Mar 2, 2011, 6:43:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/rdnap.py
r8622 r8869 1 import yaml 2 import urllib 3 1 4 CACHE_FILE = '/tmp/rd2etrs.yaml' 2 5 coordinates = None 6 7 def get_yaml(gfile): 8 """ Get configuration yaml for 'item'""" 9 f = open(gfile, 'r') 10 datadump = yaml.load(f) 11 return datadump 12 13 def 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() 3 18 4 19 def etrs2rd(lam, phi):
Note:
See TracChangeset
for help on using the changeset viewer.