Skip to content

Commit

Permalink
docs: testing new details formatting in new CRS post
Browse files Browse the repository at this point in the history
  • Loading branch information
annaramji committed Sep 13, 2024
1 parent ee02a45 commit b45f10e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions content/news/projecting_spatial_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ We can use `summary(fish)` for a basic statistical summary of the map's values:
summary(fish)
```

<summary>Output:</summary>

```console
commercial_landings_2017
Expand Down Expand Up @@ -241,6 +242,10 @@ terra::global(fish, "sum", na.rm = TRUE)
#> 86.3 million tonnes
```

<summary>
Output:
</summary>

```console
sum
<dbl>
Expand Down Expand Up @@ -376,8 +381,7 @@ cell_area_moll <- terra::cellSize(fish_moll)

print(cell_area_moll)
```

<details>
<details open>
<summary>
Output (Mollweide cell area summary)
</summary>
Expand Down Expand Up @@ -421,14 +425,16 @@ These changes are interesting, but not unexpected for this kind of transformatio
terra::global(fish_moll, "sum", na.rm = TRUE)
# 389.3 million
```

<center>Global summation of values (tonnes) in Mollweide projection of commercial landings data</center>
<details open>
<summary>
Global summation of values (tonnes) in Mollweide projection of commercial landings data
</summary>

```console
sum
commercial_landings_2017 389271065
```

</details>

389 million tonnes is a much higher value than the ~87 million value calculated with the raw data!!! Reprojecting the data impacted the values to a significant degree.

Expand Down

0 comments on commit b45f10e

Please sign in to comment.