UFO
locations_f.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2020 UCAR
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #ifndef UFO_LOCATIONS_F_H_
9 #define UFO_LOCATIONS_F_H_
10 
11 #include <vector>
12 
13 #include "ufo/Locations.h"
14 
15 // -----------------------------------------------------------------------------
16 // These functions provide a Fortran-callable interface to Locations
17 // -----------------------------------------------------------------------------
18 namespace ufo {
19 
20 extern "C" {
21  std::size_t locations_get_nlocs_f(const Locations &);
22  void locations_get_lons_f(const Locations &, const std::size_t &, double *);
23  void locations_get_lats_f(const Locations &, const std::size_t &, double *);
24  void locations_get_timemask_f(const Locations &, const util::DateTime &,
25  const util::DateTime &, const std::size_t &, bool *);
26 }
27 
28 } // namespace ufo
29 
30 #endif // UFO_LOCATIONS_F_H_
Definition: RunCRTM.h:27
void locations_get_lats_f(const Locations &locs, const std::size_t &nlocs, double *lats)
Definition: locations_f.cc:29
void locations_get_timemask_f(const Locations &locs, const util::DateTime &t1, const util::DateTime &t2, const std::size_t &nlocs, bool *mask)
Definition: locations_f.cc:36
void locations_get_lons_f(const Locations &locs, const std::size_t &nlocs, double *lons)
Definition: locations_f.cc:22
std::size_t locations_get_nlocs_f(const Locations &locs)
Definition: locations_f.cc:18