Skip to content

Commit

Permalink
#1943 Use seeps_p1_thresh for SEEPS QC for p1 value
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Nov 15, 2022
1 parent 45c9b03 commit 78edfc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
17 changes: 5 additions & 12 deletions src/libcode/vx_statistics/pair_data_point.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ void PairDataPoint::clear() {
for (int idx=0; idx<seeps_mpr.size(); idx++) {
if (seeps_mpr[idx]) delete seeps_mpr[idx];
}
do_seeps_qc = false;
seeps_mpr.clear();
seeps.clear();

Expand Down Expand Up @@ -181,14 +180,8 @@ bool PairDataPoint::add_point_pair(const char *sid, double lat, double lon,

////////////////////////////////////////////////////////////////////////

bool PairDataPoint::get_seeps_qc() {
return do_seeps_qc;
}

////////////////////////////////////////////////////////////////////////

void PairDataPoint::set_seeps_qc(bool do_qc) {
do_seeps_qc = do_qc;
void PairDataPoint::set_seeps_thresh(const SingleThresh &p1_thresh) {
seeps_climo->set_p1_thresh(p1_thresh);
}

////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -300,7 +293,7 @@ SeepsScore *PairDataPoint::compute_seeps(const char *sid, double f,
int sid_no = atoi(sid);
if (sid_no) {
unix_to_mdyhms(ut, month, day, year, hour, minute, second);
seeps = seeps_climo->get_seeps_score(sid_no, f, o, month, hour, do_seeps_qc);
seeps = seeps_climo->get_seeps_score(sid_no, f, o, month, hour);
if (mlog.verbosity_level() >= seeps_debug_level
&& seeps && !is_eq(seeps->score, bad_data_double)
&& !is_eq(seeps->score, 0) && seeps_record_count < 10) {
Expand Down Expand Up @@ -1477,11 +1470,11 @@ void VxPairDataPoint::set_obs_perc_value(int percentile) {

////////////////////////////////////////////////////////////////////////

void VxPairDataPoint::set_seeps_qc(bool do_qc) {
void VxPairDataPoint::set_seeps_thresh(const SingleThresh &p1_thresh) {
for(int i=0; i < n_msg_typ; i++){
for(int j=0; j < n_mask; j++){
for(int k=0; k < n_interp; k++){
pd[i][j][k].set_seeps_qc(do_qc);
pd[i][j][k].set_seeps_thresh(p1_thresh);
}
}
}
Expand Down
10 changes: 3 additions & 7 deletions src/libcode/vx_statistics/pair_data_point.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class PairDataPoint : public PairBase {
void init_from_scratch();
void assign(const PairDataPoint &);

bool do_seeps_qc;
SeepsClimo *seeps_climo;
SeepsClimo *seeps_climo;
public:

PairDataPoint();
Expand All @@ -59,8 +58,7 @@ class PairDataPoint : public PairBase {
bool add_point_pair(const char *, double, double, double, double,
unixtime, double, double, double, double,
const char *, double, double, double);
bool get_seeps_qc();
void set_seeps_qc(bool do_qc);
void set_seeps_thresh(const SingleThresh &p1_thresh);
void set_seeps_score(SeepsScore *, int index=-1);

void set_point_pair(int, const char *, double, double, double, double,
Expand Down Expand Up @@ -229,7 +227,7 @@ class VxPairDataPoint {

void set_mpr_thresh(const StringArray &, const ThreshArray &);

void set_seeps_thresh(const StringArray &, const ThreshArray &);
void set_seeps_thresh(const SingleThresh &p1_thresh);

void set_climo_cdf_info_ptr(const ClimoCDFInfo *);

Expand All @@ -255,8 +253,6 @@ class VxPairDataPoint {

void set_obs_perc_value(int percentile);

void set_seeps_qc(bool do_qc);

void print_obs_summary();

void calc_obs_summary();
Expand Down

0 comments on commit 78edfc0

Please sign in to comment.