Skip to content

Small improvements and bug fixes to support modflow2netcdf#4

Merged
christianlangevin merged 4 commits into
modflowpy:masterfrom
kwilcox:master
Jan 8, 2015
Merged

Small improvements and bug fixes to support modflow2netcdf#4
christianlangevin merged 4 commits into
modflowpy:masterfrom
kwilcox:master

Conversation

@kwilcox
Copy link
Copy Markdown
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.
christianlangevin 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.
@christianlangevin christianlangevin 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