|
|
This is a package containing bash and R code that produces smoother fields from original ones. This has been needed in the past to produce smoother restart fields when the ocean model couldn't cope with too strong gradients. |
|
|
\ No newline at end of file |
|
|
# Objective
|
|
|
|
|
|
|
|
|
This is a package containing bash and R code that produces smoother fields from original ones. This has been needed in the past to produce smoother restart fields when the ocean model couldn't cope with too strong gradients.
|
|
|
|
|
|
* [[http://ic3.cat/wikicfu/index.php/Tools/Smoothing#Applying_smoothing_to_GLORYS_ocean_restart_files|Applying smoothing to GLORYS ocean restart files]]
|
|
|
|
|
|
|
|
|
# Description
|
|
|
|
|
|
## List of functions
|
|
|
|
|
|
* run_smoothing.bash
|
|
|
* smooth_fields.R
|
|
|
* replace_variables.bash
|
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
# Use
|
|
|
|
|
|
The smoothing package consists of bash and R code that runs in the following order:
|
|
|
|
|
|
1) The running parameters are set in the bash-script *run_smoothing.bash*. This script launches steps 2 and 3.
|
|
|
|
|
|
2) *smooth_fields.R* produces smooth fields from the input fields specified by the variables list *varlist* in step 1).
|
|
|
|
|
|
Important note:
|
|
|
|
|
|
At this moment, the smoothing is implemented in **Loop A**, which corresponds to a coastal region with the continent on the west.
|
|
|
The smoothing is performed from the open ocean towards the coast, to bring smoother information into the smaller scales.
|
|
|
If smoothing needs to be applied in a coastal region with a different orientation, a different loop will need to be written and a switch implemented.
|
|
|
(contact isabel.andreu-burillo (at) ic3.cat)
|
|
|
|
|
|
3) *replace_variables.bash* replaces the fields in a file by the corresponding smoothed fields, obtained in step 2).
|
|
|
|
|
|
## Instructions for running:
|
|
|
|
|
|
For an ORCA1L46 setup, and two start-dates, the script has run on moore in an interactive queue specifying:
|
|
|
``` bash
|
|
|
qrsh -l h_vmem=20G,s_rt=02:00:00,h_rt=02:00:00
|
|
|
``` |