forked from AdamWilsonLabEDU/2024-geo511-spatial-data-science-case-studies-geo511_casestudy_template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback #1
Open
github-classroom
wants to merge
9
commits into
feedback
Choose a base branch
from
master
base: feedback
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feedback #1
Commits on Oct 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f4c1433 - Browse repository at this point
Copy the full SHA f4c1433View commit details -
Configuration menu - View commit details
-
Copy full SHA for b85bda7 - Browse repository at this point
Copy the full SHA b85bda7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23520ec - Browse repository at this point
Copy the full SHA 23520ecView commit details
Commits on Oct 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a4307f5 - Browse repository at this point
Copy the full SHA a4307f5View commit details
Commits on Oct 21, 2024
-
# Install packages library(terra) library(spData) library(tidyverse) library(sf) library(ncdf4) # Download CRU Data download.file("https://crudata.uea.ac.uk/cru/data/temperature/absolute.nc","crudata.nc", method = "curl") # read in the data using the rast() function from the terra package tmean=rast("crudata.nc") gdal(drivers = TRUE) # Load the data using rast() function from the terra packagetmean = rast("crudata.nc")# Inspect the tmean objecttmeanplot(tmean) # Inspect the tmean object plot(tmean) head(tmean) # Calculate the maximum temperature for each country tmean_max <- max(tmean) data("world") plot(tmean_max) # Extract maximum temperature of each continent extracted_values <- terra::extract(x = tmean_max, y = world, fun=max, na.rm=T) worldclim <- bind_cols(world,extracted_values) plot(world$geom) # use ggplot() and geom_sf() to plot ggplot() + geom_sf(data = worldclim, aes(fill = max)) + scale_fill_viridis_c(name="Maximum\nTemperature (C)") + theme(legend.position = 'bottom') # Find the hottest country in each continent hottest_continent <- worldclim %>% group_by(continent) %>% arrange(desc(max), .by_group = TRUE) %>% top_n(1) ggplot() + geom_sf(data = world) + geom_sf(data = hottest_continent , aes(fill = max)) + scale_fill_viridis_c(name="Maximum\nTemperature (C)")
Configuration menu - View commit details
-
Copy full SHA for c393946 - Browse repository at this point
Copy the full SHA c393946View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26144aa - Browse repository at this point
Copy the full SHA 26144aaView commit details
Commits on Nov 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab8581a - Browse repository at this point
Copy the full SHA ab8581aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d62d8c - Browse repository at this point
Copy the full SHA 8d62d8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 42eeb60 - Browse repository at this point
Copy the full SHA 42eeb60View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.