Use an apply family function and the function you made in #4 to process multiple files.
A script that is capable of processing data from multiple variables / models / experiments / ensemble members
A csv file that stores the results of the global weight mean
Purpose
This is going to be the script that eventually we are going to submit as an sbatch job to pic. This script it going is what is going to process a section of the CMIP6 files you downloaded on pic.
Tips
You are going to use one of the apply family functions read up on the R documentation about the different options (lapply, mapply, apply, ect.) and decide which one to use.
Before you use the apply family function to call #4 you are going to want to develop some code that selects a certain set of CMIP data (temperature for the historical concentration driven run for all models / ensemble members). This section of code is going to be useful for when we create the index (#6).
When you use the apply function to process data from multiple models using #4 do not do a large list of them, do 2 or 3 models!!
Objective
Use an apply family function and the function you made in #4 to process multiple files.
Purpose
This is going to be the script that eventually we are going to submit as an
sbatch
job to pic. This script it going is what is going to process a section of the CMIP6 files you downloaded on pic.Tips
apply
family functions read up on the R documentation about the different options (lapply
,mapply
,apply
, ect.) and decide which one to use.