Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vic2netcdf.py standard mode error #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ Thumbs.db
*.sublime-*

tonic.egg-info

.pydevproject
.project
9 changes: 6 additions & 3 deletions tonic/models/vic/vic2netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,13 @@ def nc_add_data_to_array(self, point):
def nc_add_data_standard(self, points):
ys = points.get_ys()
xs = points.get_xs()

for name in self.three_dim_vars:
data = points.get_data(name, self.slice)
for i in range(len(ys)):
self.f.variables[name][:, ys[i], xs[i]] = data[i,:]

for p in points:
for name in self.three_dim_vars:
data = points.get_data(name, self.slice)
self.f.variables[name][:, ys, xs] = data
for name in self.four_dim_vars:
varshape = self.f.variables[name].shape[1]
for i in pyrange(varshape):
Expand Down
2 changes: 1 addition & 1 deletion tonic/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = '0.0.0.dev-7b09158'
version = '0.0.0.dev-190aca2'
short_version = '0.0.0'