# Path: wradlib/util.py
# def maximum_intensity_projection(*args, **kwargs):
#     def __init__(self, name):
#     def __getattr__(self, name):
# def import_optional(module):
# def _shape_to_size(shape):
# def from_to(tstart, tend, tdelta):
# def _idvalid(data, isinvalid=None, minval=None, maxval=None):
# def meshgrid_n(*arrs):
# def gridaspoints(*arrs):
# def issequence(x):
# def trapezoid(data, x1, x2, x3, x4):
# def filter_window_polar(img, wsize, fun, rscale, random=False):
# def prob_round(x, prec=0):
# def filter_window_cartesian(img, wsize, fun, scale, **kwargs):
# def roll2d_polar(img, shift=1, axis=0):
#     def __repr__(self):
#     def utcoffset(self, dtime):
#     def tzname(self, dtime):
#     def dst(self, dtime):
# def half_power_radius(r, bwhalf):
# def get_raster_origin(coords):
# def find_bbox_indices(coords, bbox):
# def has_geos():
# def get_wradlib_data_path():
# def get_wradlib_data_file(relfile):
# def calculate_polynomial(data, w):
# def medfilt_along_axis(x, n, axis=-1):
# def gradient_along_axis(x):
# def gradient_from_smoothed(x, n=5):
# def center_to_edge(centers):
# def _pad_array(data, pad, mode="reflect", **kwargs):
# def _rolling_dim(data, window):
# def _linregress_1d(rhs, method="lstsq"):
# def _nan_lstsq(y, x):
# def _nan_matrix_inv(y, x):
# def _matrix_inv(x, y):
# def _nan_cov(x, y):
# def _cov(x, y):
# def _lanczos_differentiator(winlen):
# def derivate(data, winlen=7, method="lanczos_conv", skipna=False, **kwargs):
# def despeckle(data, n=3, copy=False):
# def show_versions(file=None):
# def _open_file(name):
# def has_import(module):
# class OptionalModuleStub:
# class UTC(dt.tzinfo):


import os
import numpy as np
from wradlib import util
#!/usr/bin/env python
# Copyright (c) 2011-2020, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.


"""
Digital Elevation Model Data I/O
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Provide surface/terrain elevation information from SRTM data

.. autosummary::
   :nosignatures:
   :toctree: generated/

   {}
"""
__all__ = ["download_srtm", "get_srtm"]
__doc__ = __doc__.format("\n   ".join(__all__))




gdal = util.import_optional("osgeo.gdal")

# Path: wradlib/util.py
# def maximum_intensity_projection(*args, **kwargs):
#     def __init__(self, name):
#     def __getattr__(self, name):
# def import_optional(module):
# def _shape_to_size(shape):
# def from_to(tstart, tend, tdelta):
# def _idvalid(data, isinvalid=None, minval=None, maxval=None):
# def meshgrid_n(*arrs):
# def gridaspoints(*arrs):
# def issequence(x):
# def trapezoid(data, x1, x2, x3, x4):
# def filter_window_polar(img, wsize, fun, rscale, random=False):
# def prob_round(x, prec=0):
# def filter_window_cartesian(img, wsize, fun, scale, **kwargs):
# def roll2d_polar(img, shift=1, axis=0):
#     def __repr__(self):
#     def utcoffset(self, dtime):
#     def tzname(self, dtime):
#     def dst(self, dtime):
# def half_power_radius(r, bwhalf):
# def get_raster_origin(coords):
# def find_bbox_indices(coords, bbox):
# def has_geos():
# def get_wradlib_data_path():
# def get_wradlib_data_file(relfile):
# def calculate_polynomial(data, w):
# def medfilt_along_axis(x, n, axis=-1):
# def gradient_along_axis(x):
# def gradient_from_smoothed(x, n=5):
# def center_to_edge(centers):
# def _pad_array(data, pad, mode="reflect", **kwargs):
# def _rolling_dim(data, window):
# def _linregress_1d(rhs, method="lstsq"):
# def _nan_lstsq(y, x):
# def _nan_matrix_inv(y, x):
# def _matrix_inv(x, y):
# def _nan_cov(x, y):
# def _cov(x, y):
# def _lanczos_differentiator(winlen):
# def derivate(data, winlen=7, method="lanczos_conv", skipna=False, **kwargs):
# def despeckle(data, n=3, copy=False):
# def show_versions(file=None):
# def _open_file(name):
# def has_import(module):
# class OptionalModuleStub:
# class UTC(dt.tzinfo):


# Path: wradlib/io/dem.py
import os
import numpy as np
from wradlib import util

#!/usr/bin/env python
# Copyright (c) 2011-2020, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.


"""
Digital Elevation Model Data I/O
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Provide surface/terrain elevation information from SRTM data

.. autosummary::
   :nosignatures:
   :toctree: generated/

   {}
"""
__all__ = ["download_srtm", "get_srtm"]
__doc__ = __doc__.format("\n   ".join(__all__))




gdal = util.import_optional("osgeo.gdal")

requests = util.import_optional("requests")