src/ufo/Locations.cc
Locations::Locations(const eckit::Configuration & conf,
                     const eckit::mpi::Comm & comm) {
  const eckit::LocalConfiguration obsconf(conf, "obs space");
  const util::DateTime bgn = util::DateTime(conf.getString("window begin"));
  const util::DateTime end = util::DateTime(conf.getString("window end"));
  ioda::ObsTopLevelParameters obsparams;
  obsparams.validateAndDeserialize(obsconf);

  ioda::ObsSpace obspace(obsparams, comm, bgn, end, oops::mpi::myself());
  const size_t nlocs = obspace.nlocs();
  dist_ = obspace.distribution();

  lats_.resize(nlocs);
  lons_.resize(nlocs);
  times_.resize(nlocs);

  obspace.get_db("MetaData", "latitude", lats_);
  obspace.get_db("MetaData", "longitude", lons_);
  obspace.get_db("MetaData", "datetime", times_);
}
// -------------------------------------------------------------------------------------------------
/*! UFO Locations Constructor with Configuration
 *
 * \details This constructor can be used to generate user-specified
 * and/or random locations for use with interpolation or other tests
 *
 * To generate random locations, the relevant parameters specified in
 * **StateTest.Locations** section of the config file are:
 *
 * * **lats** user-specified latitudes (degrees)
 * * **lons** user-specified longitudes (degrees)
 * * **Nrandom** number of random locations desired
 * * **random_seed** (optional) random seed for reproducibility of results
 *
 * \date May, 2018 Created (M. Miesch, JCSDA)
 *
 * \sa ufo::ufo_locs_create() ufo::ufo_loc_test() test::testStateInterpolation()
 *
 */
UFO Locations Constructor with Configuration
\details This constructor can be used to generate user-specified
and/or random locations for use with interpolation or other tests

To generate random locations, the relevant parameters specified in
StateTest.Locations** section of the config file are.



\date May, 2018 Created (M. Miesch, JCSDA)


UFO Locations Constructor with Configuration \ details This constructor can be used to generate user - specified and / or random locations for use with interpolation or other tests To generate random locations the relevant parameters specified in StateTest . Locations ** section of the config file are . \ date May 2018 Created ( M . Miesch JCSDA )
Locations::Locations(const eckit::Configuration & conf,
                     const eckit::mpi::Comm & comm) {
  const eckit::LocalConfiguration obsconf(conf, "obs space");
  const util::DateTime bgn = util::DateTime(conf.getString("window begin"));
  const util::DateTime end = util::DateTime(conf.getString("window end"));
  ioda::ObsTopLevelParameters obsparams;
  obsparams.validateAndDeserialize(obsconf);
  ioda::ObsSpace obspace(obsparams, comm, bgn, end, oops::mpi::myself());
  const size_t nlocs = obspace.nlocs();
  dist_ = obspace.distribution();
  lats_.resize(nlocs);
  lons_.resize(nlocs);
  times_.resize(nlocs);
  obspace.get_db("MetaData", "latitude", lats_);
  obspace.get_db("MetaData", "longitude", lons_);
  obspace.get_db("MetaData", "datetime", times_);
}
Locations :: Locations ( const eckit :: Configuration & conf , const eckit :: mpi :: Comm & comm ) { const eckit :: LocalConfiguration obsconf ( conf , " " ) ; const util :: DateTime bgn = util :: DateTime ( conf . getString ( " " ) ) ; const util :: DateTime end = util :: DateTime ( conf . getString ( " " ) ) ; ioda :: ObsTopLevelParameters obsparams ; obsparams . validateAndDeserialize ( obsconf ) ; ioda :: ObsSpace obspace ( obsparams , comm , bgn , end , oops :: mpi :: myself ( ) ) ; const size_t nlocs = obspace . nlocs ( ) ; dist_ = obspace . distribution ( ) ; lats_ . resize ( nlocs ) ; lons_ . resize ( nlocs ) ; times_ . resize ( nlocs ) ; obspace . get_db ( " " , " " , lats_ ) ; obspace . get_db ( " " , " " , lons_ ) ; obspace . get_db ( " " , " " , times_ ) ; }
UFO Locations Constructor with Configuration
 \details This constructor can be used to generate user-specified
 and/or random locations for use with interpolation or other tests
UFO Locations Constructor with Configuration \ details This constructor can be used to generate user - specified and / or random locations for use with interpolation or other tests