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] | |
| name = "mapping-313" | |
| version = "0.1.0" | |
| description = "Catch-all mapping env migrated from conda/mamba" | |
| channels = ["conda-forge"] | |
| platforms = ["osx-64"] | |
| [dependencies] | |
| python = "3.13.*" | |
| h5netcdf = "*" |
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
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "tile-mate", | |
| # "tyro", | |
| # ] | |
| # /// | |
| """Create a water mask in EPSG:4326 using `esa_world_cover_2021` imagery. | |
| Examples |
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
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "numpy", | |
| # "pyproj", | |
| # "rioxarray", | |
| # "tyro", | |
| # ] | |
| # /// | |
| """Stand-alone plate-motion utilities and CLI. |
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
| #!/usr/bin/env python | |
| import argparse | |
| import multiprocessing | |
| import warnings | |
| import xarray as xr | |
| from dask import compute, delayed | |
| from dask.distributed import Client | |
| from obstore.store import S3Store |
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
| #!/bin/bash | |
| set -eo pipefail | |
| # Go to https://conda-forge.org/download/ and download mamba the installer | |
| mamba create -n opera-utils-env pip scipy opera-utils | |
| # (will be unnecessary once version rolls into conda-forge from pypi) | |
| mamba run -n opera-utils-env pip install "opera-utils[disp]>=0.23.3" | |
| # Small machine: use only 4 workers | |
| # Large: can use more |
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
| #!/usr/bin/bash | |
| set -e | |
| # uv can be set up with: | |
| # curl -LsSf https://astral.sh/uv/install.sh | sh | |
| # Credientials must be set as AWS_* env vars, or with ~/.netrc, or with EARTHDATA_USERNAME and EARTHDATA_PASSWORD | |
| uvx --with "rasterio,opera-utils[disp]>=0.23.1" \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env python | |
| # /// script | |
| # dependencies = ["pillow", "numpy", "networkx", "scikit-image", "tyro"] | |
| # /// | |
| from pathlib import Path | |
| import networkx as nx | |
| import numpy as np | |
| import tyro | |
| from numpy.typing import ArrayLike |
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
| #!/usr/bin/env python | |
| # /// script | |
| # dependencies = ["requests", "tqdm"] | |
| # /// | |
| """Download Sentinel-1 SAFE files from Copernicus Dataspace.""" | |
| import sys | |
| from netrc import netrc | |
| from pathlib import Path |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder