-
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.
datwc was detrmined based on bounds whereas it should be for backward compatibility based on actual values if not set manually
- Loading branch information
1 parent
5881e29
commit 0106afa
Showing
3 changed files
with
39 additions
and
2 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
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,28 @@ | ||
import sys,os,cdms2,vcs | ||
import vcs | ||
src1=sys.argv[1] | ||
src2=sys.argv[2] | ||
pth = os.path.join(os.path.dirname(__file__),"..") | ||
sys.path.append(pth) | ||
import checkimage | ||
x=vcs.init() | ||
x.drawlogooff() | ||
x.setbgoutputdimensions(1200,1091,units="pixels") | ||
f=cdms2.open(os.path.join(sys.prefix,"sample_data","clt.nc")) | ||
s=f("clt",time=slice(0,1),latitude=(-7,5),squeeze=1) | ||
x.plot(s,bg=1) | ||
fnm = "test_vcs_issue_960_labels_1.png" | ||
x.png(fnm) | ||
print "fnm:",fnm | ||
print "src:",src1 | ||
ret = checkimage.check_result_image(fnm,src1,checkimage.defaultThreshold) | ||
b=x.createboxfill() | ||
b.datawc_y1=-7 | ||
b.datawc_y2=5 | ||
x.plot(s,b,bg=1) | ||
fnm = "test_vcs_issue_960_labels_2.png" | ||
x.png(fnm) | ||
print "fnm:",fnm | ||
print "src:",src2 | ||
ret += checkimage.check_result_image(fnm,src2,checkimage.defaultThreshold) | ||
sys.exit(ret) |