forked from DrylandEcology/gridSTDF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udpate typo in attributes file, and update code to new soils database
- Loading branch information
Showing
9 changed files
with
2,844 additions
and
2,781 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# determining the accuracy of GISSM output | ||
# Alice Stears | ||
# 27 August 2024 | ||
|
||
|
||
# load packages ----------------------------------------------------------- | ||
|
||
library(tidyverse) | ||
library(RNetCDF) | ||
library(terra) | ||
|
||
# Load data --------------------------------------------------------------- | ||
|
||
gissm_hist <- terra::rast(x = "./projects/07_TestOutputForFRESC/trimmed_netCDFs/GISSM_yr_gridSTDF_historical_042024.nc") | ||
gissm_pred <- terra::rast(x = "./outputs/20240827/GISSM_yr_gridSTDF_prediction_082024.nc", drivers="NETCDF") | ||
|
||
# get the prediction data as a netCDF | ||
gissm_pred_nc <- open.nc("./outputs/20240827/GISSM_yr_gridSTDF_prediction_082024.nc") | ||
# get the data in the netcdf | ||
test <- var.get.nc(gissm_pred_nc, variable = "probability")#, start = c(194, 435, 1, 1), count = c(10, 1, 30, 2)) | ||
|
||
RNetCDF::print.nc(gissm_pred_nc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters