-
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.
Merge pull request #1322 from UV-CDAT/sync_release
Sync release
- Loading branch information
Showing
10 changed files
with
121 additions
and
28 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
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
import colormap | ||
import vcsaddons | ||
import cdms2 | ||
import genutil | ||
|
||
indent = 1 | ||
sort_keys = True | ||
|
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
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,21 @@ | ||
import cdms2 | ||
import vcs | ||
import sys | ||
import os | ||
pth = os.path.join(os.path.dirname(__file__),"..") | ||
sys.path.append(pth) | ||
import checkimage | ||
f = cdms2.open(os.path.join(vcs.prefix,"sample_data","clt.nc")) | ||
clt = f("clt",latitude=(80.0, 38.0),squeeze=1,longitude=(-180.0, 180.0),time=slice(0,1)) | ||
x = vcs.init() | ||
gm = vcs.createisofill() | ||
gm.projection="polar" | ||
x.plot( clt,gm) | ||
fnm = os.path.split(__file__)[-1][:-2]+"png" | ||
src= sys.argv[1] | ||
x.png(fnm) | ||
|
||
print "fnm:",fnm | ||
print "src:",src | ||
ret = checkimage.check_result_image(fnm,src,checkimage.defaultThreshold) | ||
sys.exit(ret) |
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,17 @@ | ||
import vcs,cdms2,os,sys,cdtime | ||
src=sys.argv[1] | ||
pth = os.path.join(os.path.dirname(__file__),"..") | ||
sys.path.append(pth) | ||
import checkimage | ||
f=cdms2.open(os.path.join(vcs.prefix,"sample_data","clt.nc")) | ||
s=f("clt",squeeze=1) | ||
x=vcs.init() | ||
x.drawlogooff() | ||
x.setbgoutputdimensions(1200,1091,units="pixels") | ||
x.plot(s,bg=1,time=cdtime.comptime(2015)) | ||
fnm = os.path.split(__file__)[1][:-3]+".png" | ||
x.png(fnm) | ||
print "fnm:",fnm | ||
print "src:",src | ||
ret = checkimage.check_result_image(fnm,src,checkimage.defaultThreshold) | ||
sys.exit(ret) |
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,17 @@ | ||
import vcs,cdms2,os,sys,cdtime | ||
src=sys.argv[1] | ||
pth = os.path.join(os.path.dirname(__file__),"..") | ||
sys.path.append(pth) | ||
import checkimage | ||
f=cdms2.open(os.path.join(vcs.prefix,"sample_data","clt.nc")) | ||
s=f("clt",squeeze=1) | ||
x=vcs.init() | ||
x.drawlogooff() | ||
x.setbgoutputdimensions(1200,1091,units="pixels") | ||
x.plot(s,bg=1,time='2015-02-23') | ||
fnm = os.path.split(__file__)[1][:-3]+".png" | ||
x.png(fnm) | ||
print "fnm:",fnm | ||
print "src:",src | ||
ret = checkimage.check_result_image(fnm,src,checkimage.defaultThreshold) | ||
sys.exit(ret) |