# Variational rv/rh in BUMP

**URL:** <https://forums.jcsda.org/t/variational-rv-rh-in-bump/273>\
**Category:** JEDI\
**Created:** [February 6, 2022, 1:47pm UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273 "2022-02-06T13:47:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ytangnoaa](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ytangnoaa/32/58_2.png) [@ytangnoaa](https://forums.jcsda.org/u/ytangnoaa)\
**Post date:** [February 6, 2022, 1:47pm UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273/1 "2022-02-06T13:47:15Z")

</div>

Current BUMP seems only support constant length scale for 3D-Var, or one value for RH or RV over the whole domain. Is there any way to have region-dependence B-matrix in BUMP, including urban/rural difference etc? Thanks

---

<div class="post-metadata">

**Author:** ![benjaminmenetrier](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/benjaminmenetrier/32/9_2.png) [@benjaminmenetrier](https://forums.jcsda.org/u/benjaminmenetrier)\
**Post date:** [February 7, 2022, 12:39pm UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273/2 "2022-02-07T12:39:18Z")

</div>

Hi @ytangnoaa. Absolutely, the current implementation supports two streams for input rh/rv:

- In the `bump` section of the yaml file, you can specify a value per variable or a value per variable and level for `rh` and `rv` (example [here](https://github.com/JCSDA-internal/fv3-jedi/blob/94cfe8521d3b86d97e31068fd1d74c68f47dccd1/test/testinput/bumpparameters_nicas_gfs_aero.yaml#L29)).
- In the `input` section of the yaml file, you can provide paths of files containing values of `rh` and `rv`, for instance [here](https://github.com/JCSDA-internal/fv3-jedi/blob/94cfe8521d3b86d97e31068fd1d74c68f47dccd1/test/testinput/staticb_nicas_gfs.yaml#L52). These files have the same format as other files containing a model state (thus, they are model-specific). They can be produced in a previous diagnostic step with BUMP (example [here](https://github.com/JCSDA-internal/fv3-jedi/blob/94cfe8521d3b86d97e31068fd1d74c68f47dccd1/test/testinput/staticb_cor_gfs.yaml#L56)), or created manually with any other software.

---

<div class="post-metadata">

**Author:** ![ytangnoaa](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ytangnoaa/32/58_2.png) [@ytangnoaa](https://forums.jcsda.org/u/ytangnoaa)\
**Post date:** [February 7, 2022, 8:29pm UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273/3 "2022-02-07T20:29:22Z")

</div>

Thank you for this information. These yaml files are in the FV3-JEDI testinput folder. However, the ctest file does not include them, and the required model files are not there. How can I download and try it?

---

<div class="post-metadata">

**Author:** ![benjaminmenetrier](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/benjaminmenetrier/32/9_2.png) [@benjaminmenetrier](https://forums.jcsda.org/u/benjaminmenetrier)\
**Post date:** [February 8, 2022, 6:54am UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273/4 "2022-02-08T06:54:55Z")

</div>

The `staticb_[...]` tests are included in the tier 2 of FV3-JEDI tests (more expensive ones). To run them, you need to set the environment variable:

```auto
export FV3JEDI_TEST_TIER=2

```

and then rebuild your bundle (simply do a `touch` on a `CMakeLists.txt` file and recompile). You should see the new tests when running `ctest -N`.

---

<div class="post-metadata">

**Author:** ![ytangnoaa](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/ytangnoaa/32/58_2.png) [@ytangnoaa](https://forums.jcsda.org/u/ytangnoaa)\
**Post date:** [March 3, 2022, 2:51pm UTC](https://forums.jcsda.org/t/variational-rv-rh-in-bump/273/5 "2022-03-03T14:51:11Z")

</div>

Thank you. It outputs the _nicas\_norm_ file based on [https://github.com/JCSDA-internal/fv3-jedi/blob/94cfe8521d3b86d97e31068fd1d74c68f47dccd1/test/testinput/staticb\_nicas\_gfs.yaml#L52](https://github.com/JCSDA-internal/fv3-jedi/blob/94cfe8521d3b86d97e31068fd1d74c68f47dccd1/test/testinput/staticb_nicas_gfs.yaml#L52)

How can I apply this _nicas\_norm_ file in 3D-Var DA?
