19 #include "ioda/ObsDataVector.h"
20 #include "oops/util/IntSetParser.h"
26 static ObsFunctionMaker<ChannelUseflagCheckRad>
38 std::copy(channelset.begin(), channelset.end(), std::back_inserter(
channels_));
43 ASSERT(useflag.size() ==
channels_.size());
66 for (
size_t ichan = 0; ichan < nchans; ++ichan) {
67 for (
size_t iloc = 0; iloc <
nlocs; ++iloc) {
68 out[ichan][iloc] = useflag[ichan];
const ufo::Variables & requiredVariables() const
geovals required to compute the function
ChannelUseflagCheckRadParameters options_
~ChannelUseflagCheckRad()
std::vector< int > channels_
void compute(const ObsFilterData &, ioda::ObsDataVector< float > &) const
compute the result of the function
ChannelUseflagCheckRad(const eckit::LocalConfiguration &)
oops::RequiredParameter< std::vector< int > > useflagChannel
Useflag (-1: not used; 0: monitoring; 1: used) for each channel in channelList.
oops::RequiredParameter< std::string > channelList
List of channels available for assimilation.
ObsFilterData provides access to all data related to an ObsFilter.
size_t nlocs() const
Returns the number of locations in the associated ObsSpace.
integer function nlocs(this)
Return the number of observational locations in this Locations object.
static ObsFunctionMaker< ChannelUseflagCheckRad > makerChannelUseflagCheckRad_("ChannelUseflagCheckRad")