-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compute BB of a projected dataset from all points. The border in Cartesian space may no corespond to the border in the projected space. * Add isofill orthographic test.
- Loading branch information
1 parent
3f352fe
commit 266121b
Showing
2 changed files
with
36 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import basevcstest | ||
import vcs | ||
|
||
|
||
class TestVCSIsofill(basevcstest.VCSBaseTest): | ||
def isofillOrthographic(self, centerlatitude): | ||
|
||
a = self.clt("clt") | ||
|
||
p = self.x.getprojection('orthographic') | ||
p.centerlatitude = centerlatitude | ||
b = self.x.createisofill() | ||
b.projection = p | ||
self.x.plot(a(latitude=(90, -90)), b, bg=self.bg) | ||
fnm = "test_vcs_isofill_orthographic_%i.png" % centerlatitude | ||
self.checkImage(fnm) | ||
|
||
def testIsofill(self): | ||
for lat in [45, 90]: | ||
self.isofillOrthographic(lat) |
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