-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for BUG #26: If masking reduces the bounds of a dataset, plo…
…ts look incomplete. (#2134)
- Loading branch information
1 parent
0a28b7c
commit 25a3e66
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import cdms2 | ||
import os | ||
import sys | ||
import vcs.testing.regression as regression | ||
import vcs | ||
import numpy | ||
|
||
data = sys.argv[2] | ||
x=regression.init(bg=1) | ||
f=cdms2.open(data) | ||
s=f["SST"] | ||
iso=x.getisofill('a_robinson_isofill') | ||
x.plot(s,iso) | ||
regression.run(x, "test_vcs_isofill_masked_bounds.png") |