Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

EarthEnv landcover + WorldClim 2.1 + CHELSA V1 #21

Merged
merged 73 commits into from
Jul 17, 2020
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
1e176c0
Test with landcover
tpoisot Apr 10, 2020
cbd0c9d
fix call to internal function
tpoisot Apr 10, 2020
6dc39d6
use UInt8 for the landcover data
tpoisot Apr 10, 2020
687a987
move to worldclim 2.1 from Jan. 2020
tpoisot Apr 10, 2020
7b31cb7
fix the path for bioclim 2.1
tpoisot Apr 10, 2020
7d34e55
What IS the deal with geotiff?
tpoisot Apr 11, 2020
768d0fc
pass tests as an array of pairs
tpoisot Apr 12, 2020
0200fd3
BREAKING CHANGE internal missing values are nothing, not NaN
tpoisot Apr 12, 2020
f0f9ffb
updated in progress
tpoisot Apr 12, 2020
6677da7
the landcover files are gigantic on my machine...
tpoisot Apr 12, 2020
b845b19
fix generated functions
tpoisot Apr 12, 2020
75824ff
landcover test
tpoisot Apr 20, 2020
e778a45
fix coarsen
tpoisot Apr 20, 2020
a56573e
no landcover test
tpoisot Jul 9, 2020
887ec14
add landcover documentation entry
tpoisot Jul 9, 2020
e532f2f
update the coarsen test example
tpoisot Jul 9, 2020
120517c
up test
tpoisot Jul 9, 2020
b56d82b
cleanup
tpoisot Jul 9, 2020
12c14aa
trying to move to ArchGDAL
tpoisot Jul 10, 2020
6907ca4
replace GDAL by ArchGDAL
tpoisot Jul 10, 2020
53e79c5
fix generated functions
tpoisot Jul 10, 2020
a62cbf8
add Statistics to the dependencies
tpoisot Jul 10, 2020
9182249
add Statistics to the project
tpoisot Jul 10, 2020
8ee8ee1
need to figure out the coarsen return type
tpoisot Jul 10, 2020
adccda6
return type of coarsen fixed
tpoisot Jul 11, 2020
1d66d44
fix the coarsen issue for some types
tpoisot Jul 11, 2020
083c145
update GBIF test to reflect nothing
tpoisot Jul 11, 2020
eac2a0f
add CHELSA dataset
tpoisot Jul 11, 2020
e0d6350
doc update
tpoisot Jul 11, 2020
a032e4e
get rid of magma in example
tpoisot Jul 11, 2020
98cec91
deal with some rounding issues in the tests
tpoisot Jul 11, 2020
ce1df21
sliding window
tpoisot Jul 11, 2020
fc9fafc
broadcast
tpoisot Jul 11, 2020
879efdf
start working on reading only part of the file
tpoisot Jul 11, 2020
6f6b32e
only load parts of the data (#23)
tpoisot Jul 12, 2020
7591311
example with landcover data
tpoisot Jul 12, 2020
49a6acd
update plot test to see the chelsa results
tpoisot Jul 12, 2020
7870462
fix plot test of chelsa data
tpoisot Jul 12, 2020
092ec14
doc still need fixing
tpoisot Jul 12, 2020
44f6049
add a landcover plot test
tpoisot Jul 12, 2020
ec358c7
remove a clim in test that leaded to data loss
tpoisot Jul 12, 2020
e6306de
add comparison with worldclim when clipping
tpoisot Jul 12, 2020
62a173c
BROKEN/WIP version (gotta go parenting)
tpoisot Jul 12, 2020
697af04
slight complication of the dataset code but it's now really flexible
tpoisot Jul 13, 2020
ad72e25
update with the correct range for bioclim and earthenv (#24)
tpoisot Jul 13, 2020
387dd93
fix the bounds for earthenv
tpoisot Jul 13, 2020
4f4902d
fix plot testing
tpoisot Jul 13, 2020
15493bc
update latitudes and longitudes limits for types
tpoisot Jul 13, 2020
3c06c6e
Closes #24
tpoisot Jul 13, 2020
23fa45d
documentation update
tpoisot Jul 13, 2020
8418cc4
example fix
tpoisot Jul 13, 2020
619f062
update doc examples
tpoisot Jul 13, 2020
13cbf0f
more tests
tpoisot Jul 13, 2020
ec96ee2
update examples
tpoisot Jul 13, 2020
9adf83e
update doc for new operations
tpoisot Jul 13, 2020
658814f
update test
tpoisot Jul 13, 2020
319c6c0
update the examples
tpoisot Jul 13, 2020
0fb9d7b
code for consensus
tpoisot Jul 14, 2020
d646b1e
consensus example
tpoisot Jul 14, 2020
fc81db9
add some text to the example
tpoisot Jul 14, 2020
dec989e
add end
tpoisot Jul 14, 2020
c342ea9
fix the bug where layers had inverted dimensions
tpoisot Jul 15, 2020
27ce2be
fix test bug
tpoisot Jul 15, 2020
addaeaf
remove Makefile
tpoisot Jul 15, 2020
93bd81b
fix doc example
tpoisot Jul 15, 2020
6de9cc1
fix import code in demo
tpoisot Jul 15, 2020
5cb9c3a
demo update
tpoisot Jul 15, 2020
97ce4b8
Update import.md
tpoisot Jul 15, 2020
d5fa5de
update file import example
tpoisot Jul 16, 2020
b36edeb
update shannon function
tpoisot Jul 16, 2020
b3ddbc4
fix similar function
gabrieldansereau Jul 16, 2020
0ec87b9
update folder
tpoisot Jul 16, 2020
8b3e1a2
Merge remote-tracking branch 'origin/feature/landcover' into feature/…
tpoisot Jul 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/overloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ the use of `copy`, manual update, and `convert`.
function Base.similar(layer::T) where {T <: SimpleSDMLayer}
emptygrid = similar(layer.grid)
for i in eachindex(emptygrid)
emptygrid[i] = isnothing(layer.grid[i]) ? nothing : zero(eltype(layer.grid))
emptygrid[i] = isnothing(layer.grid[i]) ? nothing : zero(eltype(layer.grid[i]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar() didn't work without this for climate layers & all. eltype(temperature.grid) is always Union{Nothing, Float32}, which has no method for zero()

end
return SimpleSDMResponse(emptygrid, layer.left, layer.right, layer.bottom, layer.top)
end
Expand Down