Skip to content

Commit

Permalink
More flexible rules loading lat/lon.
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Jun 18, 2014
1 parent 2eb384d commit 17e7088
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run_tests(self):
NEWS = open(os.path.join(here, 'NEWS.txt')).read()


version = '0.5.3'
version = '0.5.4'

install_requires = [
'numpy>=1.1',
Expand Down
23 changes: 14 additions & 9 deletions src/seabird/rules/cnv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,24 @@ fieldspan: |
latitude: |
# [LAT|LATITUDE]
(?:Latitude:?)?
\ *
(?P<degree>\d{2})
\
(?P<minute>\d{2}.\d{2,3})
\ +
(?P<minute>\d{2}
[\.|\,]
\d{1,3})
\ *
(?P<hemisphere>[N|n|S|s])
#- "(\\d{2} \\d{2}\\.\\d{2}\\s+[sn])"
#- |
# \d{2}\ # Test
longitude: |
# [LON|LONG|LONGITUDe]
(?P<degree>\d{3})
\
(?P<minute>\d{2}.\d{2,3})
# [LON|LONG|LONGITUDE]
(?:Latitude:?)?
\ *
(?P<degree>\d{2,3})
\ +
(?P<minute>\d{2}
[\.|\,]
\d{1,3})
\ *
(?P<hemisphere>[W|w|E|e])

0 comments on commit 17e7088

Please sign in to comment.