Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using "ObsFilterData" in GMI_GPM bias correction #23

Closed
gmao-jjin3 opened this issue Apr 27, 2022 · 0 comments
Closed

Using "ObsFilterData" in GMI_GPM bias correction #23

gmao-jjin3 opened this issue Apr 27, 2022 · 0 comments

Comments

@gmao-jjin3
Copy link

gmao-jjin3 commented Apr 27, 2022

I am adding cloud_liquid_water as a bias correction predictor for GMI/GPM. The cloud is a mean cloud amount value of retrieved from observations and simulations. These two retrievals are compared to determine whether this mean cloud predictor should be used for data at the observed location. In other words, this predictor is not used for all GMI observations. Therefore, these two clouds, not the mean value, are needed. In order to make source codes and configurations simple, I tend to use the "CLWRetMW " function in a new subroutine in "CloudLiquidWater.h":

static void clwDerivative_gmi(const ObsFilterData &,
std::vector &);

Here is a section of my configuration in my yaml file. :

obs bias:
input file: Data/ufo/testinput_tier_1/gsi.x0044j.bc.gmi_gpm.2020-12-14T21:00:00Z.satbias.nc4
variational bc:
predictors:
- name: constant
- name: lapse_rate
order: 2
tlapse: &gmitlap Data/ufo/testinput_tier_1/gsi.x0044j.bc.gmi_gpm.2020-12-14T21:00:00Z.tlapse.txt
- name: lapse_rate
tlapse: *gmitlap
- name: emissivity
- name: cloud_liquid_water
satellite: GPM
options:
clwret_ch37v: 6
clwret_ch37h: 7
clwret_types: [ObsValue, HofX]
...
.

My changes are added in the attached CloudLiquidWater.h and CloudLiquidWater.cc (renamed as *txt). Here is the error message when I tried to build UFO:
[ 37%] Building CXX object ufo/src/ufo/CMakeFiles/ufo.dir/predictors/CloudLiquidWater.cc.o
/discover/nobackup/jjin3/jedi/fv3-bundle/ufo/src/ufo/predictors/CloudLiquidWater.cc(182): error: type name is not allowed
CloudLiquidWater::clwDerivative_gmi( ObsFilterData,
^
/discover/nobackup/jjin3/jedi/fv3-bundle/ufo/src/ufo/predictors/CloudLiquidWater.cc(242): error: declaration is incompatible with "void ufo::CloudLiquidWater::clwDerivative_gmi(const ufo::ObsFilterData &, std::vector<float, std::allocator> &)" (declared at line 80 of "/discover/nobackup/jjin3/jedi/fv3-bundle/ufo/src/ufo/predictors/CloudLiquidWater.h")
void CloudLiquidWater::clwDerivative_gmi(const ObsFilterData & in,
^
compilation aborted for /discover/nobackup/jjin3/jedi/fv3-bundle/ufo/src/ufo/predictors/CloudLiquidWater.cc (code 2)
ufo/src/ufo/CMakeFiles/ufo.dir/build.make:730: recipe for target 'ufo/src/ufo/CMakeFiles/ufo.dir/predictors/CloudLiquidWater.cc.o' failed
make[2]: *** [ufo/src/ufo/CMakeFiles/ufo.dir/predictors/CloudLiquidWater.cc.o] Error 2
CMakeFiles/Makefile2:15843: recipe for target 'ufo/src/ufo/CMakeFiles/ufo.dir/all' failed
make[1]: *** [ufo/src/ufo/CMakeFiles/ufo.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2


Is there any suggestions to solve this problem? Thanks.

gmi_qc_filters.yaml.txt
CloudLiquidWater.h.txt
CloudLiquidWater.cc.txt
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant