This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import partial | |
from textwrap import fill | |
from scipy.stats import norm, uniform, skewnorm, gaussian_kde, triang | |
from numpy import ( | |
array, linspace, quantile, histogram, atleast_2d, mean, std, add | |
) | |
from numpy.lib.stride_tricks import sliding_window_view | |
from matplotlib.pyplot import subplots, show, rc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Project an sf/sfc object to a generic projected coordinate system | |
#' @param x an sf or sfc object | |
#' @param proj a character vector. The projection to use. One of "laea", "aeqd", | |
#' "utm", "pconic", or "eqdc". | |
#' @param ellps a character vector. The ellipsoid to use. Select from | |
#' `sf_proj_info(type = "ellps")`. | |
#' @param opts a character vector. Additional proj options to pass to the | |
#' proj string. see details for more information. | |
#' @return an sf or sfc object | |
#' @details For further info about the available "generic" projects see: |
OlderNewer