src/ufo/filters/obsfunctions/SolarZenith.cc
std::vector<bool> identifyRejectedObservations(const ObsFilterData &data) {
  const size_t nlocs = data.nlocs();
  const oops::Variables &simulatedVars = data.obsspace().obsvariables();
  std::vector<bool> rejected(nlocs, true);

  std::vector<int> qcflags(nlocs);
  for (size_t iv = 0; iv < simulatedVars.size(); ++iv) {
    data.get(Variable(simulatedVars[iv] + "@QCflagsData"), qcflags);
    for (size_t iloc = 0; iloc < nlocs; ++iloc)
      if (qcflags[iloc] == QCflags::pass)
        rejected[iloc] = false;
  }

  return rejected;
}
/// Return a vector whose ith element is set to true if and only if observations of all simulated
/// variables at the ith location have been rejected.
Return a vector whose ith element is set to true if and only if observations of all simulated
variables at the ith location have been rejected.
Return a vector whose ith element is set to true if and only if observations of all simulated variables at the ith location have been rejected .
std::vector<bool> identifyRejectedObservations(const ObsFilterData &data) {
  const size_t nlocs = data.nlocs();
  const oops::Variables &simulatedVars = data.obsspace().obsvariables();
  std::vector<bool> rejected(nlocs, true);
  std::vector<int> qcflags(nlocs);
  for (size_t iv = 0; iv < simulatedVars.size(); ++iv) {
    data.get(Variable(simulatedVars[iv] + "@QCflagsData"), qcflags);
    for (size_t iloc = 0; iloc < nlocs; ++iloc)
      if (qcflags[iloc] == QCflags::pass)
        rejected[iloc] = false;
  }
  return rejected;
}
std :: vector < bool > identifyRejectedObservations ( const ObsFilterData & data ) { const size_t nlocs = data . nlocs ( ) ; const oops :: Variables & simulatedVars = data . obsspace ( ) . obsvariables ( ) ; std :: vector < bool > rejected ( nlocs , true ) ; std :: vector < int > qcflags ( nlocs ) ; for ( size_t iv = 0 ; iv < simulatedVars . size ( ) ; ++ iv ) { data . get ( Variable ( simulatedVars [ iv ] + " " ) , qcflags ) ; for ( size_t iloc = 0 ; iloc < nlocs ; ++ iloc ) if ( qcflags [ iloc ] == QCflags :: pass ) rejected [ iloc ] = false ; } return rejected ; }
Return a vector whose ith element is set to true if and only if observations of all simulated
variables at the ith location have been rejected.
Return a vector whose ith element is set to true if and only if observations of all simulated variables at the ith location have been rejected .