lkugler / RTTOV-WRF

Simulate SEVIRI satellite channels from WRF output
MIT License
15 stars 6 forks source link

Regarding WRF input issues #1

Closed kam3545 closed 2 years ago

kam3545 commented 2 years ago

Hi, The code is not working with the WRF model outputs when values are not realistic like negative or undefine values of cloud, ice, cloud fraction, TSK, etc. What should be the undefine values in these cases that need to add in rttov_wrf.py?
Thanks

lkugler commented 2 years ago

Cloud variables are essential for the output of RTTOV, i.e. cloud-affected brightness temperatures and reflectance values. If you don't have them, see that you get them or ask why they are invalid. As a last resort, you can assume values depending on your assumption (e.g. no clouds: zero CFRAC, etc) Is this helpful?

kam3545 commented 2 years ago

@lkugler, Thanks for your response. May be I was not clear last time. I have all the required parameters from the WRF forecasts. BUT in the WRF model, values of required parameters are undefined for some locations. Due to this, I found run time error in code. My query is regarding this issue. Can I use/define some check to avoid this run-time error.

Thanks Prashant

lkugler commented 2 years ago

It is good to get an error when using invalid undefined input variables, because otherwise you would not notice that your input is wrong. Right?