Skip to content

Commit

Permalink
using Dates in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Jan 21, 2025
1 parent aa2fd19 commit d4b2487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/methods/mosaic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If your mosaic has has apparent line errors, increase the `atol` value.
Here we cut out Australia and Africa from a stack, and join them with `mosaic`.
```jldoctest
using Rasters, RasterDataSources, NaturalEarth, DataFrames
using Rasters, RasterDataSources, NaturalEarth, DataFrames, Dates
countries = naturalearth("admin_0_countries", 110) |> DataFrame
climate = RasterStack(WorldClim{Climate}, (:tmin, :tmax, :prec, :wind); month=July)
country_climates = map(("Norway", "Denmark", "Sweden")) do name
Expand Down Expand Up @@ -139,7 +139,7 @@ Combine `regions` in `Raster` or `RasterStack` `x` using the function `f`.
Cut out scandinavian countries and plot:
```jldoctest
using Rasters, RasterDataSources, NaturalEarth, DataFrames
using Rasters, RasterDataSources, NaturalEarth, DataFrames, Dates
# Get climate data form worldclim
climate = RasterStack(WorldClim{Climate}, (:tmin, :tmax, :prec, :wind); month=July)
# And country borders from natural earth
Expand Down

0 comments on commit d4b2487

Please sign in to comment.