Skip to content

Commit

Permalink
updating wsim-gldas acquisition with lit review
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmartinez4 committed Apr 6, 2024
1 parent 211065b commit effb92e
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 48 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ TOPSTSCHOOL-module-1-water.Rproj
composite_1mo.nc
composite_12mo.nc
gpw_v4_population_count_rev11_2020_15_min.tif
.DS_Store
.DS_Store
map_plot.png
125 changes: 81 additions & 44 deletions docs/wsim-gldas-acquisition.html

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions wsim-gldas-acquisition.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,22 @@ stars::write_mdim(wsim_gldas_anoms_tex, "wsim_gldas_tex.nc")

The size of the pre-processed dataset is 1.6 MB compared to the original dataset of 1.7 GB. This is much more manageable in cloud environments, workshops, and git platforms.

If you want to share an image (png?) of the plot that you created you can save it to your computer. Here is the command…
If you want to share an image of the plot that you created you can save it to your computer as a .png file. You can open the `png()` device, producing the plot, and closing the device with `dev.off()`:

```{r}
# Save the map plot as a PNG file
png("map_plot.png", width = 800, height = 600) # Specify file name and dimensions
# Specify file name and dimensions
png("map_plot.png", width = 4, height = 4, units="in", res=300)
wsim_gldas_anoms_tex |>
dplyr::slice(index = 15, along = "time") |>
plot(reset = FALSE, breaks = c(0, -5, -10, -20, -30, -50))
plot(sf::st_geometry(texas),
add = TRUE,
lwd = 3,
fill = NA,
border = 'purple')
dev.off() # Close the PNG device
#close png() device
dev.off()
```
Once you run this code you can find the file in the file location… This allows you to share your findings.

Expand Down
2 changes: 2 additions & 0 deletions wsim-gldas-references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ @misc{Zhou2016
}
@misc{NOAA2019,
author= {NOAA},
title = {Water Cycle},
year = {2019},
date = {February 1},
Expand All @@ -101,6 +102,7 @@ @misc{NOAA2019
}

@misc{NOAA2023,
author= {NOAA},
title = {What are El Nino and La Nina?},
year = {2023},
date = {August 24},
Expand Down

0 comments on commit effb92e

Please sign in to comment.