semvec/pypi-packages huggingface dataset:
little-helpers 0.0.6
little helper functions
Requires Python: >=3.6

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![build workflow](https://github.com/AlexanderSouthan/little_helpers/actions/workflows/main.yml/badge.svg)](https://github.com/AlexanderSouthan/little_helpers/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/AlexanderSouthan/little_helpers/branch/main/graph/badge.svg?token=W7O1I2YKGO)](https://codecov.io/gh/AlexanderSouthan/little_helpers)

# little_helpers
Some helpful functions that keep being used in various of my repositories, install via:
```
pip install little_helpers
```

## array_tools.py
* y_at_y: Find values in y_values that belongs to the values in x_values clostest to x.
* closest_index: Find the index of a value in array x_values that is clostest to x.
* segment_xy_values: Segment the x_values and y_values according to segment borders.

## math_functions.py
* langmuir_isotherm: Calculate the q_e values of a simple Langmuir isotherm.
* langmuir_isotherm_hydrogel: Calculate the adsotpion inside a hydrogel based on a Langmuir model taking the swelling into account.
* langmuir_comp: Calculate the q_e values of a Langmuir isotherm taking into account competetive adsorption of two species.
* triangle: Calculate a triangle function.
* gaussian: Calculate one or a superposition of Gaussian normal distributions.
* boxcar: Calculate a boxcar function.
* boxcar_convolution: Calculate the convolution of a boxcar function with another function.
* piecewise_polynomial: Calculate the y values of a piecewise polynomial.
* flory_rehner: Calculate 1/M_c according to the Flory-Rehner equation.
* Herschel_Bulkley: Calculate the stress according tot he Herschel-Bulkley model.
* cum_dist_normal: Cumulative distribution function for the normal distribution.
* cum_dist_normal_with_rise: Superposition of cum_dist_normal and a linear function through the origin.

## num_derive.py
A simple method to calculate the derivative of discrete data.

## statsmodel_wrapper.py
A universal sklearn-style wrapper for statsmodels regressors.
stactools-cop-dem 0.4.1
stactools package for Copernicus Digital Elevation Model
Keywords: stactools,pystac,catalog,STAC,Copernicus,dem,elevation,raster

# stactools-cop-dem

- Name: cop-dem
- Package: `stactools.cop_dem`
- PyPI: https://pypi.org/project/stactools-cop-dem/
- Owner: @justinfisk
- Dataset homepages:
  - https://copernicus-dem-30m.s3.amazonaws.com/readme.html
  - https://portal.opentopography.org/datasetMetadata?otCollectionID=OT.032021.4326.1
- STAC extensions used:
  - [proj](https://github.com/stac-extensions/projection/)
  - [item-assets](https://github.com/stac-extensions/item-assets)
  - [raster](https://github.com/stac-extensions/raster)
- Extra fields: none

The Copernicus DEM is a Digital Surface Model (DSM) which represents the surface of the Earth including buildings, infrastructure and vegetation. We provide two instances of Copernicus DEM named GLO-30 Public and GLO-90. GLO-90 provides worldwide coverage at 90 meters. GLO-30 Public provides limited worldwide coverage at 30 meters because a small subset of tiles covering specific countries are not yet released to the public by the Copernicus Programme. Note that in both cases ocean areas do not have tiles, there one can assume height values equal to zero. Data is provided as Cloud Optimized GeoTIFFs.

(from https://copernicus-dem-30m.s3.amazonaws.com/readme.html )

## Examples

### STAC objects

- [Item](examples/Copernicus_DSM_COG_30_N53_00_W115_00_DEM.json)
- [Collection](examples/cop-dem-glo-30.json)

### Command-line usage

Description of the command line functions

```bash
stac cop-dem create-item Copernicus_DSM_COG_30_N53_00_W115_00_DEM.tif Copernicus_DSM_COG_30_N53_00_W115_00_DEM.json
```

```bash
stac cop-dem create-collection glo-30 . --host AWS
```

Use `stac cop-dem --help` to see all subcommands and options.