-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forman 222 rasterize features into dataset #227
Changes from all commits
6a95610
4311ef4
c4ae482
2afa022
c736756
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,9 +13,9 @@ class GetCubeValuesForPointsTest(unittest.TestCase): | |||||
def _new_test_cube(self): | ||||||
return new_cube(width=2000, | ||||||
height=1000, | ||||||
lon_start=0.0, | ||||||
lat_start=50.0, | ||||||
spatial_res=4.0 / 2000, | ||||||
x_start=0.0, | ||||||
y_start=50.0, | ||||||
x_res=4.0 / 2000, | ||||||
time_start="2010-01-01", | ||||||
time_periods=20, | ||||||
variables=dict(precipitation=0.6, temperature=276.2)) | ||||||
|
@@ -107,11 +107,11 @@ def test_get_dataset_indexes_without_bounds(self): | |||||
self._assert_get_dataset_indexes_works(dataset) | ||||||
|
||||||
def test_get_dataset_indexes_with_bounds_inverse_lat(self): | ||||||
dataset = new_cube(width=360, height=180, inverse_lat=True, drop_bounds=False) | ||||||
dataset = new_cube(width=360, height=180, inverse_y=True, drop_bounds=False) | ||||||
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||||||
|
||||||
def test_get_dataset_indexes_without_bounds_inverse_lat(self): | ||||||
dataset = new_cube(width=360, height=180, inverse_lat=True, drop_bounds=True) | ||||||
dataset = new_cube(width=360, height=180, inverse_y=True, drop_bounds=True) | ||||||
self._assert_get_dataset_indexes_works(dataset, inverse_lat=True) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here :) |
||||||
|
||||||
def _assert_get_dataset_indexes_works(self, dataset, inverse_lat=False): | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here... |
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lat
is fine here, becauseget_dataset_indexes
is still aware oflat
, noty
.