Commit 1ce78b4
Implementing broadcast using Flatten (#56)
This adds broadcast using Flatten, so that we can also broadcast with a single scalar.
Broadcast between a pyramid and an array throw an error at the moment.
This also bumps the versions of DD to 0.28 and 0.29
* Add DD 0.28 and 0.29
* Load DD in test
* Use YAB.backendlist to update YAB
* Add BroadcastStyle dispatch as in DD
* Change to gdal keyword in YAB.backendlist
* Add broadcast using Flatten
This enables to use broadcasting with scalars as well.
It will error on AbstractArrays to hint, that the array should be converted to a Pyramid before.
Co-authored-by: Rafael Schouten <[email protected]>
* Add DD.modify for Pyramid
* Add broadcast test
* Add tests
* Add broadcast example to docs
* Remove tif saving tests for now
We can enable them later on main, when we have the interface to add the maximal size of the coarsest level, so that the depth of the pyramid is the same from in memory and from gdal.
* Test tif loading with artificial data
* Fix buildpyramids
* Remove Rasters from deps
* Fix tests
* Allow failure on nightly
---------
Co-authored-by: Rafael Schouten <[email protected]>
Co-authored-by: Richard Gibson <[email protected]>1 parent 64add1b commit 1ce78b4
File tree
10 files changed
+1057
-547
lines changed- .github/workflows
- docs
- src
- src
- test
- data
10 files changed
+1057
-547
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
0 commit comments