Spaces:
Sleeping
Sleeping
File size: 634 Bytes
0118a3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
```{r}
library(overture)
source("utils.R")
source("inat-ranges.R")
aoi <- get_division("California")
# gdf <- get_h3_aoi(aoi)
#inat <- duckdbfs::open_dataset("s3://public-inat/hex")
rank <- "class"
taxon <- "Aves"
inat <- duckdbfs::open_dataset("s3://public-inat/taxon") |> filter(.data[[rank]] == taxon)
duckdbfs::open_dataset("s3://public-inat/taxon") |> dplyr::filter(scientificName == "Canis lupus") |> duckdbfs::to_sf()
class(gdf)
overture:::map(gdf)
# filter(.data[[rank]] == taxon) |>
# select(taxon_id) |>
```
```{r}
inat_range <- inat |> filter(rank == !!taxon)
print(head(inat_range))
``` |