-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
48 lines (38 loc) · 1.19 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os
# Numpy sneakily uses multiple threads sometimes. I don't want that.
os.environ['MKL_NUM_THREADS'] = '1'
os.environ['NUMEXPR_NUM_THREADS'] = '1'
os.environ['OMP_NUM_THREADS'] = '1'
os.environ['MPI_NUM_THREADS'] = '1'
os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ['VECLIB_MAXIMUM_THREADS'] = '1'
# Due to shitty tkinter errors.
# import matplotlib.pyplot as plt
# plt.switch_backend('agg')
from .cyth import (
fill_dists_one_pt,
fill_wts_and_sum,
get_mults_sum,
sel_equidist_refs,
fill_dists_2d_mat,
fill_vg_var_arr,
OrdinaryKriging,
SimpleKriging,
ExternalDriftKriging_MD,
get_nd_dists)
from .variograms import FitVariograms, Variogram
from .interp import SpInterpMain
from .extract import (
ExtractPolygons,
ExtractPoints,
ExtractNetCDFCoords,
ExtractNetCDFValues,
ExtractGTiffCoords,
ExtractGTiffValues,
GeomAndCrdsItsctIdxs,
ReOrderIdxs,
Extract)
from .vgclus import ClusteredVariograms
from .crds import CrdsReProjNC
from .rsmp import ResampleRasToRas, ResampleRasToRasClss, ResampleNCFToRas
from .misc import get_theo_vg_vals, show_formatted_elapsed_time, ret_mp_idxs