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

Feature #2278 qm_docs #2364

Merged
merged 10 commits into from
Dec 5, 2022
Prev Previous commit
Next Next commit
#2278 Initialize pbl_qm after computing and saving PBL
Howard Soh committed Dec 2, 2022
commit 06977f9e80bee040e04bff1490f3e3360d6b48ee
7 changes: 1 addition & 6 deletions src/tools/other/pb2nc/pb2nc.cc
Original file line number Diff line number Diff line change
@@ -1003,7 +1003,6 @@ void process_pbfile(int i_pb) {
float cape_qm = bad_data_float;

// To compute PBL
int pbl_level = 0;
int pbl_code = -1;
float pbl_p, pbl_h;
float pbl_qm = bad_data_float;
@@ -1352,10 +1351,6 @@ void process_pbfile(int i_pb) {
}

do_pbl = cal_pbl && 0 == strcmp("ADPUPA", hdr_typ);
if (do_pbl) {
pbl_level = 0;
pbl_qm = bad_data_float;
}

// Search through the vertical levels
for(lv=0, n_hdr_obs = 0; lv<buf_nlev; lv++) {
@@ -1894,7 +1889,6 @@ void process_pbfile(int i_pb) {
}

if (do_pbl) {
pbl_level = 0;
is_same_header = (prev_hdr_vld_ut == hdr_vld_ut)
&& is_eq(prev_hdr_lat, hdr_lat)
&& is_eq(prev_hdr_lon, hdr_lon)
@@ -1915,6 +1909,7 @@ void process_pbfile(int i_pb) {
pqtzuv_list.clear();
pqtzuv_map_tq.clear();
pqtzuv_map_uv.clear();
pbl_qm = bad_data_float;
}
//is_same_header = false;
prev_hdr_vld_ut = hdr_vld_ut;