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

Small improvements and bug fixes to support modflow2netcdf #4

Merged
merged 4 commits into from
Jan 8, 2015

Conversation

kwilcox
Copy link
Contributor

@kwilcox kwilcox commented Jan 7, 2015

Please take a look at the create3D function that I changed. It was setting the entire array to 0 and then summing any values in that cell. I changed it to use and return a masked array. It was much easier for me to be able to assume a masked array and not have to strip out all zero values downstream in modflow2netcdf. However, if you don't like the change, I can manage!

This was placing zeros in every cell even when there was no data for
that cell.  This now returns masked values in the cells where there
is no data. I assumed that 0 could be an actual data value for some
variables and that I couldn't strip out all 0s later on in the process.
langevin-usgs added a commit that referenced this pull request Jan 8, 2015
Small improvements and bug fixes to support modflow2netcdf.

For the cell by cell binary reader, if requesting full3d, then a masked array is returned.  This seems to be generally beneficial, and may be a nice way to handle inactive and dry values in the heads as well.
@langevin-usgs langevin-usgs merged commit 094b03a into modflowpy:master Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants