32 #include "ufo/locations_interface.f"
40 type(c_ptr),
intent(in) :: ptr
61 real(c_double),
intent(inout) :: lons(:)
63 integer(c_size_t) :: length
76 real(c_double),
intent(inout) :: lats(:)
78 integer(c_size_t) :: length
92 type(datetime),
intent(in) :: t1, t2
93 logical(c_bool),
intent(inout) :: mask(:)
95 integer(c_size_t) :: length
96 type(c_ptr) :: c_t1, c_t2
99 call f_c_datetime(t1, c_t1)
100 call f_c_datetime(t2, c_t2)
Define interface for C++ ufo::Locations code called from Fortran.
Fortran interface to ufo::Locations.
subroutine get_lons(this, lons)
Get longitudes from the Locations object.
subroutine get_lats(this, lats)
Get latitudes from the Locations object.
subroutine get_timemask(this, t1, t2, mask)
Get time mask (obs that are between t1 & t2) from the Locations object.
type(ufo_locations) function ctor_from_ptr(ptr)
Saves pointer to locations.
integer function nlocs(this)
Return the number of observational locations in this Locations object.