Debian Codegraph @

geotiepoints/_modis_utils.pxd

raw
1 # cython: language_level=3, boundscheck=False, cdivision=True, wraparound=False, initializedcheck=False, nonecheck=False
2 cimport numpy as np
3
4 ctypedef fused floating:
5 np.float32_t
6 np.float64_t
7
8 cdef void lonlat2xyz(
9 floating[:, ::1] lons,
10 floating[:, ::1] lats,
11 floating[:, :, ::1] xyz,
12 ) noexcept nogil
13
14 cdef void xyz2lonlat(
15 floating[:, :, ::1] xyz,
16 floating[:, ::1] lons,
17 floating[:, ::1] lats,
18 bint low_lat_z=*,
19 floating thr=*,
20 ) noexcept nogil
21
22 cdef floating rad2deg(floating x) noexcept nogil
23 cdef floating deg2rad(floating x) noexcept nogil