You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible fix is to identify in the code where coordinates is appended to and then to replace the append with the C equivalent of something like:
def add_coord_att(new_coord, coordinates_att):
'''
append new_coord to the coordinates_att string
Examples:
---------
>>> add_coord_att('lat', '')
'lat'
>>> add_coord_att('lon', 'lat')
'lat lon'
>>> add_coord_att('lat', 'lat lon')
'lat lon'
'''
coords = coordinates_att.split()
if new_coord not in coords:
coords.append(new_coord)
return ' '.join(coords)
It also looks as though the history attribute is getting appended too many times - for instance 'Inverted lat' can appear multiple times. (This is also evident from a review of some CMIP5 data - so this bug has been around for a while).
The text was updated successfully, but these errors were encountered:
jkettleb
added a commit
to jkettleb/cmor
that referenced
this issue
Nov 11, 2013
It appears that closing files for a variable, but then opening a new file to continue the timeseries can result is a growing coordinates attribute:
A possible fix is to identify in the code where coordinates is appended to and then to replace the append with the C equivalent of something like:
It also looks as though the history attribute is getting appended too many times - for instance 'Inverted lat' can appear multiple times. (This is also evident from a review of some CMIP5 data - so this bug has been around for a while).
The text was updated successfully, but these errors were encountered: