File: _modis_utils.pxd

package info (click to toggle)
python-geotiepoints 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,824 kB
  • sloc: python: 3,124; makefile: 111; sh: 15
file content (23 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# cython: language_level=3, boundscheck=False, cdivision=True, wraparound=False, initializedcheck=False, nonecheck=False
cimport numpy as np

ctypedef fused floating:
    np.float32_t
    np.float64_t

cdef void lonlat2xyz(
        floating[:, ::1] lons,
        floating[:, ::1] lats,
        floating[:, :, ::1] xyz,
) noexcept nogil

cdef void xyz2lonlat(
        floating[:, :, ::1] xyz,
        floating[:, ::1] lons,
        floating[:, ::1] lats,
        bint low_lat_z=*,
        floating thr=*,
) noexcept nogil

cdef floating rad2deg(floating x) noexcept nogil
cdef floating deg2rad(floating x) noexcept nogil