Himawari-8/9 downloader and file query SDK for FTP and S3.
Project description
himawari-downloader
himawari-downloader is a Python SDK and CLI for querying and downloading Himawari-8/9 data from FTP and S3.
Features
- Unified
HimawariDownloaderAPI - Query modes:
find,latest,closest,previous,next - Download modes:
links,timestamps,dates,range - FTP support for
netcdfandhsd - FTP NetCDF remote bbox and variable subset download
- S3 file query and raw download
- Optional proxy support for FTP and S3
Installation
Base install:
pip install himawari-downloader
Install S3 support:
pip install "himawari-downloader[s3]"
Install FTP NetCDF subset support:
pip install "himawari-downloader[ftp-netcdf]"
Install everything:
pip install "himawari-downloader[all]"
For local development:
pip install -e ".[dev]"
Python usage
Basic FTP HSD download:
from himawari_downloader import DownloadParams, HimawariDownloader, QueryParams
client = HimawariDownloader(ftp_user="your_uid", ftp_password="your_password")
query = QueryParams(
source="ftp",
satellite="H09",
product_level="L1B",
product="Rad",
sector="FLDK",
mode="dates",
data_format="hsd",
dates=("2025-03-19",),
bands=("B07", "B14"),
)
result = client.download(query, DownloadParams(out_dir="data/out"))
print(result.saved_paths)
FTP NetCDF subset example:
from himawari_downloader import DownloadParams, HimawariDownloader, NetcdfSubset, QueryParams
client = HimawariDownloader(ftp_user="your_uid", ftp_password="your_password")
query = QueryParams(
source="ftp",
satellite="H09",
product_level="L2",
product="NetCDF",
sector="FLDK",
mode="links",
data_format="netcdf",
remote_files=("/jma/netcdf/202503/19/NC_H09_20250319_0010_R21_FLDK.02401_02401.nc",),
)
result = client.download(
query,
DownloadParams(
out_dir="data/out",
netcdf_subset=NetcdfSubset(
bbox_lat=(40.75, 34.44),
bbox_lon=(110.27, 114.59),
target_vars=("tbb_07",),
),
),
)
Proxy example:
from himawari_downloader import DownloadParams, ProxyConfig
params = DownloadParams(
out_dir="data/out",
proxy=ProxyConfig(
url="http://127.0.0.1:7890",
source_overrides={"s3": "http://127.0.0.1:7890"},
),
)
CLI
himawari-download find \
--source ftp \
--satellite H09 \
--product-level L1B \
--product Rad \
--sector FLDK \
--mode dates \
--data-format hsd \
--dates 2025-03-19
Test
python -m pytest -q
Build
python -m build
python -m twine check dist/*
Release
GitHub repository:
https://github.com/P-Coke/himawari-downloader
PyPI publishing is configured through GitHub Actions trusted publishing.
To release:
- Push changes to
main - Create and push a version tag like
v0.1.0 - GitHub Actions will build and publish to PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file himawari_downloader-0.1.0.tar.gz.
File metadata
- Download URL: himawari_downloader-0.1.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cc3c84ce23e7a1e981833c0ad8c36f0190cbb5a3a14e687f081da906a05f6d0
|
|
| MD5 |
c85ba476cc16251d1b22f0fd267f4719
|
|
| BLAKE2b-256 |
8aa0b922d49beb4a70f6b1c28b464817923eeca8f444324def5b2d9408c30f67
|
Provenance
The following attestation bundles were made for himawari_downloader-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on P-Coke/himawari-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
himawari_downloader-0.1.0.tar.gz -
Subject digest:
4cc3c84ce23e7a1e981833c0ad8c36f0190cbb5a3a14e687f081da906a05f6d0 - Sigstore transparency entry: 1066261359
- Sigstore integration time:
-
Permalink:
P-Coke/himawari-downloader@76ebaddb5bc2c529619c7a8005ec942db5429035 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/P-Coke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@76ebaddb5bc2c529619c7a8005ec942db5429035 -
Trigger Event:
push
-
Statement type:
File details
Details for the file himawari_downloader-0.1.0-py3-none-any.whl.
File metadata
- Download URL: himawari_downloader-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6933673b13c1eef35323ffab44f0ec0fbabc402688d3cb1713b7975fd340282
|
|
| MD5 |
0797d4ef1115649f57b7a5ea3314d3a9
|
|
| BLAKE2b-256 |
0fa86e071ecb64011d5ee5b57155706f5beeb9e16a4467811a789f3bb450448c
|
Provenance
The following attestation bundles were made for himawari_downloader-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on P-Coke/himawari-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
himawari_downloader-0.1.0-py3-none-any.whl -
Subject digest:
d6933673b13c1eef35323ffab44f0ec0fbabc402688d3cb1713b7975fd340282 - Sigstore transparency entry: 1066261440
- Sigstore integration time:
-
Permalink:
P-Coke/himawari-downloader@76ebaddb5bc2c529619c7a8005ec942db5429035 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/P-Coke
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@76ebaddb5bc2c529619c7a8005ec942db5429035 -
Trigger Event:
push
-
Statement type: