Skip to content

Commit

Permalink
Merge pull request #37 from USGS-CMG/zdefne-usgs-patch-3
Browse files Browse the repository at this point in the history
corrected syntax to pass tests
  • Loading branch information
zdefne-usgs authored Jan 9, 2018
2 parents fa333af + 15dde4f commit 1f7bc6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yaml2ncml/yaml2ncml.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def add_aggregation_scan(text, a):
agg = a['aggregation']
text += '<aggregation dimName="{:s}" type="joinExisting">\n'.format(
agg['time_var'])
text += '<scan location="{:s}" regExp="{:s}" subdirs="false"/>\n</aggregation>\n'.format(agg['dir'], agg['pattern']) # noqa
text += '<scan location="{:s}" regExp="{:s}" subdirs="false"/>\n</aggregation>\n'\
.format(agg['dir'], agg['pattern']) # noqa
return text


Expand All @@ -230,7 +231,7 @@ def add_aggregation_scan(text, a):
ubar='barotropic_sea_water_x_velocity',
vbar='barotropic_sea_water_y_velocity',
Hwave='sea_surface_wave_significant_height',
bed_thickness='sediment_bed_thickness') # sediment_bed_thickness is not in CF standard_names
bed_thickness='sediment_bed_thickness') #sediment_bed_thickness not in CF standard_names


def build(yml):
Expand Down

0 comments on commit 1f7bc6b

Please sign in to comment.