makeAccelerationFile: make a depth-dependent tracer acceleration input file for...

Description Usage Arguments Details Value Examples

View source: R/makeAccelerationFile.R

Description

Make a depth-dependent tracer acceleration input file for POP2. This file, can then be used as input for the startd CESM tracer acceleration

Usage

1

Arguments

supDF

data.frame with fields z (depth [m]), and a (acceleration factor) to be ussed as support data for the smoothed depth-dependent interpolation

fname

CHARACTER, variable name

Details

The function creates a smoothed depth-dependent acceleration file. Factors further than the depth bounds indicated in supDF, take the corresponding bound acceleration factors. Default values is approaches the profile evaluated in Danabasoglu (2004). Note that Danabasoglu (2004) indicates that it is better to do a momentum-based acceleration in CESM than depth-dependent acceleration.

Value

An ASCII file with an acceleration factor for each of the 60 ocean model layers in CESM-POP2.

Examples

1
2
3
  supDF <- data.frame(z=c(0,1000,2000,3000,4000,5500),
                      a=c(1,1,   5,   10,  20  ,20))
  acc <- makeAccelerationFile(supDF)

garciapintado/rdafCESM documentation built on July 18, 2019, 4:41 p.m.