Metadata-Version: 2.4
Name: planetary_datasets
Version: 0.0.22
Summary: Datasets for ML models for planetary use-cases (e.g. solar mapping, land use, forecasting)
Home-page: https://github.com/jacobbieker/planetary-datasets
Author: Jacob Bieker
Author-email: jacob@bieker.tech
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: odc-stac
Requires-Dist: planetary_computer
Requires-Dist: pystac-client
Requires-Dist: dask[distributed]
Requires-Dist: fsspec
Requires-Dist: geojson
Requires-Dist: shapely
Requires-Dist: geopandas
Requires-Dist: pyproj
Requires-Dist: rasterio
Requires-Dist: xarray
Requires-Dist: pyproj
Requires-Dist: lxml
Requires-Dist: s3fs
Requires-Dist: gcsfs
Requires-Dist: adlfs
Requires-Dist: zarr
Requires-Dist: datasets
Requires-Dist: cfgrib
Requires-Dist: h5py
Requires-Dist: pybufrkit
Requires-Dist: meteostat
Requires-Dist: structlog
Requires-Dist: ocf-blosc2
Requires-Dist: huggingface-hub
Requires-Dist: cfgrib
Requires-Dist: h5netcdf
Requires-Dist: psutil
Requires-Dist: wetterdienst
Requires-Dist: isd
Requires-Dist: icechunk
Requires-Dist: loguru
Requires-Dist: requests
Requires-Dist: python-dotenv
Requires-Dist: pymetdecoder>=0.2.2
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Planetary Datasets
Open source dataset loading and creation from Planetary Computer, GCP, and AWS. Built to support reproducible training of weather, energy, and mapping models.

This repository's goal is to make it easier to gather and use global and regional geospatial datasets for machine learning. It should provide
a fairly simple way of getting data, converting it to Xarray, combining it with other datasets, and saving it to disk for training and inference. 
A lot of the data sources are from the [Planetary Computer](https://planetarycomputer.microsoft.com/), but we also include data not available there from
Google Cloud and AWS, or converted from other sources and uploaded to Hugging Face.

## Examples

To get started, here are a few examples of using this library to fetch preprocessed datasets that are similar to ones used for training Google's MetNet regional forecasting model, and GraphCast global forecasting model.

## Installation

```bash
pip install planetary-datasets
```

## Usage

### Processing data

To preprocess data (i.e. native to Zarr), one option is the Planetary Computer.
To do that, you need to install `kbatch` and then, after signing in, run the following:

```bash
kbatch job submit -f pc/eumetsat-0deg.yaml
```

This will create a job that downloads EUMETSAT 0-Deg imagery, convert to zarr, and upload to Hugging Face.
You will need to set the EUMETSAT API key and secret, and Hugging Face token for it to work.

### Saving Processed data

### Using the datasets

## Citing

If you find this library useful, it would be great if you could cite the repo! There is the cite button on the side. Or you can use the below.

```
@software{Bieker_Planetary_Datasets_2023,
author = {Bieker, Jacob},
month = feb,
title = {{Planetary Datasets}},
url = {https://github.com/jacobbieker/planetary-datasets},
year = {2023}
}
```

## License
