Skip to content
Snippets Groups Projects
Commit 27cc47c7 authored by Carsten Hinz's avatar Carsten Hinz
Browse files

removed resolved TODO and debug output

parent ca66f488
No related branches found
No related tags found
2 merge requests!11Creation of first beta release version,!4Resolve "coordinate ranges do not match"
......@@ -35,7 +35,7 @@ class Variable:
"""construction from analysis results
"""
cf_metadata = get_cf_metadata(variable, metadata=metadata)
print(variable.name, cf_metadata)
#print(variable.name, cf_metadata)
return cls(variable, data, **cf_metadata, **kwargs)
def as_data_array(self, dims) -> xr.DataArray:
......@@ -105,7 +105,7 @@ class Coordinate(Variable):
"""
span = max - min
n = int(span / resolution) # raise error if invalid inputs ?
n = int(span / resolution) #TODO: raise error if invalid inputs ?
if n*resolution != span:
print(f"[DEBUG:] Resolution {resolution} does not provide an equidistant division of the span [{min},{max}]")
n+=1
......@@ -115,8 +115,6 @@ class Coordinate(Variable):
step = resolution
data = np.linspace(min, max, n + 1)
#TODO need decision, if I need to remove the last point or not
#difference longitude and latitude!
if wraps:
return cls.from_data(data[:-1], variable, None, step=step)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment