# Error: YAML validation failed when assimilate amsua observations

**URL:** <https://forums.jcsda.org/t/error-yaml-validation-failed-when-assimilate-amsua-observations/332>\
**Category:** JEDI\
**Created:** [May 25, 2022, 6:39am UTC](https://forums.jcsda.org/t/error-yaml-validation-failed-when-assimilate-amsua-observations/332 "2022-05-25T06:39:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuxynj](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@liuxynj](https://forums.jcsda.org/u/liuxynj)\
**Post date:** [May 25, 2022, 6:39am UTC](https://forums.jcsda.org/t/error-yaml-validation-failed-when-assimilate-amsua-observations/332/1 "2022-05-25T06:39:57Z")

</div>

Hi, I met problem when adding amsua observations besides traditional ones using mpas-jedi. The error meaages are as follow,  
Exception: Error: YAML validation failed.  
Location: /obs operator  
Invalid value: {“obs options”:{“Sensor\_ID”:“amsua\_metop-a”}}  
Cause: required property ‘name’ not found in object  
Exception: oops::Variational\<MPAS, UFO and IODA observations\> terminating…  
The obs space part in my yaml file is

- obs space:  
\<\<: &amsuaobsspace  
name: AMSUA-METOPA  
obsdatain:  
obsfile: ./amsua\_metop-a\_obs\_2021101200.nc4  
obsdataout:  
obsfile: Data/omboma\_amsua\_metop-a.nc4  
simulated variables: [brightness\_temperature]  
channels: 5,6,9  
obs error:  
covariance model: diagonal  
obs filters:
  - filter: PreQC  
maxvalue: 0  
apply at iterations: 0
  - filter: Background Check  
threshold: 3  
obs operator:  
\<\<: &crtmdry  
obs options:  
\<\<: &crtmopts  
#Sensor\_ID: amsua  
Sensor\_ID: amsua\_metop-a  
get values:  
interpolation type: unstructured  
I am a novice using JEDI. In mpasjedi\_variational test, no satellite sensor observation is used. It seems that satellite observation assimilation has not been ready in mpas-jedi. Is that true right now?

---

<div class="post-metadata">

**Author:** ![shlyaeva](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.jcsda.org/shlyaeva/32/103_2.png) [@shlyaeva](https://forums.jcsda.org/u/shlyaeva)\
**Post date:** [May 25, 2022, 12:20pm UTC](https://forums.jcsda.org/t/error-yaml-validation-failed-when-assimilate-amsua-observations/332/2 "2022-05-25T12:20:17Z")

</div>

Hi!  
This error message indicates that there is an error in the yaml file, particularly that `name` key isn’t found inside `obs operator` section.  
To fix this error, make sure that `obs operator` yaml section includes `name` under it. For CRTM it should be `name: CRTM`, like e.g. [here](https://github.com/JCSDA/mpas-jedi/blob/e0780d1fd295912ee4cfb758854c52b6764d4ab9/test/testinput/3dvar.yaml#L148-L149).  
Note also that the yaml sample you provided above includes [YAML aliases to YAML anchors](https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/) (e.g. `<<: &crtmdry`). If those aliases don’t have correct anchors specified in the YAML above this section, this may contribute to this issue.

---

<div class="post-metadata">

**Author:** ![liuxynj](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@liuxynj](https://forums.jcsda.org/u/liuxynj)\
**Post date:** [May 26, 2022, 1:48am UTC](https://forums.jcsda.org/t/error-yaml-validation-failed-when-assimilate-amsua-observations/332/3 "2022-05-26T01:48:43Z")

</div>

Hi,shlyaeva,  
Following your suggestions, I delete the YAML aliases and add some keys inside the obs operator. The test have passed. Thank you so much for your help.
