Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tsutterley/read-GRACE-harmonics
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Sep 2, 2019
2 parents b716fb9 + 026b770 commit 11d2960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions read_GRACE_harmonics/read_GRACE_harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def read_GRACE_harmonics(input_file, LMAX, MMAX=None, POLE_TIDE=False):
head = [re.sub(r'\"(.*?)\:\s(.*?)\"',r'"\1, \2"',l) for l in file_contents
if not re.match('{0}|GRDOTA'.format(FLAG),l)]
if ((N == 'GRAC') and (DREL >= 6)) or (N == 'GRFO'):
#-- parse the YAML header for RL06 or GRACE-FO
grace_L2_input.update(yaml.load('\n'.join(head),Loader=yaml.FullLoader))
#-- parse the YAML header for RL06 or GRACE-FO (specifying yaml loader)
grace_L2_input.update(yaml.load('\n'.join(head),Loader=yaml.BaseLoader))
else:
#-- save lines of the GRACE file header removing empty lines
grace_L2_input['header'] = [l.rstrip() for l in head if l]
Expand Down

0 comments on commit 11d2960

Please sign in to comment.