semvec/pypi-packages huggingface dataset:
sathybrid 0.2.0
A Python package to fusion LR and HR imagery
Requires Python: <4.0,>=3.9

# sathybrid
A Python package to fusion LR and HR imagery


## Installation
```bash
pip install sathybrid
```

## Usage

```python
import sathybrid
import pathlib


# Select the HR image
PATH = pathlib.Path("/home/cesar/demo/NA5120_E1186N0724/")
HRfile = PATH / "naip" / "m_3812243_nw_10_060_20220524.tif"

# Find the most similar LR image
data_stats = sathybrid.utils.find_similar_lr(
    hr_file=HRfile,
    lr_folder=PATH / "s2",
    hr_bands=[1, 2, 3],
    hr_normalization=255,
    lr_bands=[3, 2, 1],
    lr_normalization=10_000,
    downsampling_method="lanczos3",
    method="fft_l1",
)

# Select the best LR image
LRfile = PATH / "s2" / (data_stats.iloc[0]["lr_img"] + ".tif")

# Define the output path
OUTfile = PATH / "fusion.tif"

# Fusion
sathybrid.image_fusion(
    hr_file=HRfile,
    lr_file=LRfile,
    output_file=OUTfile,
    hr_bands=[1, 2, 3],
    hr_normalization=255,
    lr_bands=[3, 2, 1],
    lr_normalization=10_000,
    upsampling_method="lanczos3",
    fourier=True,
    fourier_params={"method": "ideal", "order": 6, "sharpness": 3},
    scale_factor=8,
    denoise=True,
)    
```
pdf-unannotate 0.99.9
Command line script to easily remove annotations from PDFs.
Requires Python: >=3
Keywords: pdf, PDF, PyPDF2, annotation

# pdf-unannotate

`pdf-unannotate` facilitates easily removing annotations from PDFs using `PyPDF2`.

## Usage

After installing using `pip`, you can run `pdf-unannotate` as a command. It takes a single glob expression as an argument, and it will remove annotations from all PDFs matching the glob.

If you need to include spaces in a file name, make sure to escape them by using single quotes. If you do not escape the glob expression using single quotes, make sure to escape any `*` in the glob expression with a backslash, since otherwise they will be expanded by the shell before pdf-unannotate gets them.

- `regex`: (optional) only PDFs with filenames matching `regex` will have annotations removed.
- (`pattern`): (required, not named) a glob expression that matches PDFs to remove annotations from. Only files ending in `.pdf` that match the glob will be included. If a glob expression is insufficient to filter to just the scripts you want, you should use the `regex` argument.

## Description

`pdf-unannotate` finds all `.pdf` files matching `pattern` (and `regex`, if provided). If PDFs are found, it removes annotations from them one-by-one using PyPDF2.