Skip to content

Commit c715dc8

Browse files
authored
Merge branch 'main' into asinghvi17-patch-7
2 parents abc3d02 + 95437ed commit c715dc8

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
# Rasters
2-
2+
<img src="docs/src/assets/logo.png" align="right" width="30%"></img>
33
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/rafaqz/Rasters.jl/blob/main/LICENSE)
44
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://rafaqz.github.io/Rasters.jl/stable)
55
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://rafaqz.github.io/Rasters.jl/dev)
66
[![CI](https://github.com/rafaqz/Rasters.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/rafaqz/Rasters.jl/actions/workflows/ci.yml)
77
[![Codecov](https://codecov.io/gh/rafaqz/Rasters.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/rafaqz/Rasters.jl)
8-
[![Aqua.jl Quality Assurance](https://img.shields.io/badge/Aquajl-%F0%9F%8C%A2-aqua.svg)](https://github.com/JuliaTesting/Aqua.jl)
9-
[![Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/Rasters&label=Downloads)](https://pkgs.genieframework.com?packages=Rasters)
10-
11-
<img src="/docs/src/assets/logo.png" align="right" width="30%"></img>
8+
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
9+
[![Downloads](https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Fjuliapkgstats.com%2Fapi%2Fv1%2Fmonthly_downloads%2FRasters&query=total_requests&suffix=%2Fmonth&label=Downloads)](https://juliapkgstats.com/pkg/Rasters)
1210

13-
[Rasters.jl](https://rafaqz.github.io/Rasters.jl/dev) defines common types and methods for reading, writing and
14-
manipulating rasterized spatial data.
11+
[Rasters.jl](https://rafaqz.github.io/Rasters.jl/dev) is a powerful Julia package for working with spatial raster data. It provides a unified interface for reading, writing, and manipulating raster data. The package extends [DimensionalData.jl](https://rafaqz.github.io/DimensionalData.jl/dev/) to enable intuitive spatial indexing and manipulation of raster data.
1512

16-
These currently include raster arrays like GeoTIFF and NetCDF, R grd files,
17-
multi-layered stacks, and multi-file series of arrays and stacks.
13+
Key features:
14+
- Support for multiple raster formats (e.g. GeoTIFF, NetCDF, GRD)
15+
- Support for multi-layered stacks and multi-file series of arrays
16+
- Lazy loading of large datasets
17+
- Intuitive spatial indexing with named dimensions (X, Y, Time)
18+
- Efficient handling of multi-layered stacks and time series
19+
- Built-in support for coordinate reference systems (CRS)
20+
- High-performance operations optimized for spatial data
1821

1922
# Quick start
23+
2024
Install the package by typing:
2125

2226
```julia
@@ -31,7 +35,7 @@ using Rasters
3135

3236
Using `Rasters` to read GeoTiff or NetCDF files will output something similar to the
3337
following toy examples. This is possible because Rasters.jl extends
34-
[DimensionalData.jl](https://github.com/rafaqz/DimensionalData.jl) so that
38+
[DimensionalData.jl](https://rafaqz.github.io/DimensionalData.jl/dev/) so that
3539
spatial data can be indexed using named dimensions like `X`, `Y` and `Ti` (time)
3640
and e.g. spatial coordinates.
3741

@@ -41,7 +45,7 @@ lon, lat = X(25:1:30), Y(25:1:30)
4145
ti = Ti(DateTime(2001):Month(1):DateTime(2002))
4246
ras = Raster(rand(lon, lat, ti)) # this generates random numbers with the dimensions given
4347
```
44-
```
48+
```julia
4549
6×6×13 Raster{Float64,3} with dimensions:
4650
X Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
4751
Y Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
@@ -64,7 +68,7 @@ Rasters reduces its dependencies to keep the `using` time low.
6468
But, it means you have to manually load packages you need for each
6569
backend or additional functionality.
6670

67-
For example, to use the GDAL backend, and download RasterDataSources files, you now need to do:
71+
For example, to use the GDAL backend, and download RasterDataSources files, you need to do:
6872

6973
```julia
7074
using Rasters, ArchGDAL, RasterDataSources
@@ -80,7 +84,7 @@ Sources and packages needed:
8084
Other functionality in extensions:
8185
- Raster data downloads, like `Worldclim{Climate}`: `using RasterDataSources`
8286
- Makie plots: `using GLMakie` (opengl interactive) or `using CairoMakie` (print) etc.
83-
- Coordinate transformations for gdal rasters: `using CoordinateTransformations`
87+
- Coordinate transformations for GDAL rasters: `using CoordinateTransformations`
8488

8589
## Getting the `lookup` array from dimensions
8690

@@ -100,7 +104,7 @@ Selecting a time slice by `index` is done via
100104
```julia
101105
ras[Ti(1)]
102106
```
103-
```
107+
```julia
104108
6×6 Raster{Float64,2} with dimensions:
105109
X Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
106110
Y Sampled{Int64} 25:1:30 ForwardOrdered Regular Points
@@ -120,7 +124,7 @@ values: 25 26 27 28 29 30
120124
```julia
121125
ras[Ti=1]
122126
```
123-
```
127+
```julia
124128
6×6 Raster{Float64,2} with dimensions:
125129
X Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
126130
Y Sampled{Int64} 25:1:30 ForwardOrdered Regular Points
@@ -142,7 +146,7 @@ or and interval of indices using the syntax `=a:b` or `(a:b)`
142146
```julia
143147
ras[Ti(1:10)]
144148
```
145-
```
149+
```julia
146150
6×6×10 Raster{Float64,3} with dimensions:
147151
X Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
148152
Y Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
@@ -165,7 +169,7 @@ values: [:, :, 1]
165169
```julia
166170
ras[Ti=At(DateTime(2001))]
167171
```
168-
```
172+
```julia
169173
6×6 Raster{Float64,2} with dimensions:
170174
X Sampled{Int64} 25:1:30 ForwardOrdered Regular Points,
171175
Y Sampled{Int64} 25:1:30 ForwardOrdered Regular Points

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ using Documenter, Rasters, Plots, Logging, Statistics, Dates,
33
import Makie, CairoMakie
44
using DocumenterVitepress
55
using Rasters.LookupArrays, Rasters.Dimensions
6+
import Shapefile, DataFrames, NaturalEarth # to avoid precompilation in doctests
67

78
# Don't output huge svgs for Makie plots
89
CairoMakie.activate!(type = "png")
@@ -45,7 +46,7 @@ makedocs(
4546
),
4647
source = "src",
4748
build = "build",
48-
warnonly=true,
49+
warnonly=false,
4950
)
5051

5152
# Enable logging to console again

0 commit comments

Comments
 (0)