Translate the sequence of commands that process monthly gridded netcdf into a data frame of annual global values into a function.
A function that processes gridded monthly to weighted global annual mean data for a dingle model / variable / scenario / ensemble member
Proof that the function worked
Purpose
This function is going to be the main function that we use to process the CMIP netcdfs from monthly gridded data to annual monthly data. This function will be used to process the sets of netcdf files (40 files or more).
Tips
Here are some things that you are going to want to think about you are working on designing this function.
What arguments are we going to want this function to have? What needs to change pending on the netcdf that is being processed? What things do not need to be changed and can be hard coded in?
You are going to want to use a combination of R and CDO so this is function should contain a system2 call.
Debugging CDO errors can be a pain, what sorts of things will break a CDO pipeline? What can we do to provide informational error messages? Or prevent errors from being thrown?
Objective
Translate the sequence of commands that process monthly gridded netcdf into a data frame of annual global values into a function.
Purpose
This function is going to be the main function that we use to process the CMIP netcdfs from monthly gridded data to annual monthly data. This function will be used to process the sets of netcdf files (40 files or more).
Tips
Here are some things that you are going to want to think about you are working on designing this function.
system2
call.