The modules available in this package are designed to capture and proccess satellite data from Copernicus
Project description
Satellite Weather Downloader
Xarray | Copernicus |
---|---|
SWD is a system for downloading, transforming and analysing Copernicus weather data using Xarray. It consists in two major apps, satellite_downloader
and satellite_weather
. downloader
is responsible for extracting NetCDF4 files from Copernicus API, and the weather
implements Xarray extensions for transforming and visualizing the files.
Installation
The app is available on PYPI, you can use the package without deploying the containers with the command in your shell:
$ pip install satellite-weather-downloader
Requirements
For downloading data from Copernicus API, it is required an account. The credentials for your account can be found in Copernicus' User Page, in the API key
section. User UID and API Key will be needed in order to request data. Paste them when asked in satellite_downloader
connection methods.
Notes
Python Versions = [3.10, 3.11]
Version 1.X includes only methods for Brazil's data format and cities.
Creating requests via Interactive shell
Since SWT version 1.5, it is possible to create dynamic requests using the interactive python shell or via method call:
from satellite_downloader import request
file = request.ERA5_reanalysis(
filename = 'my_dataset_file'
# Any ERA5 Reanalysis option can be passed in the method
)
NOTE: This feature is still in experimental versions, please submit an issue if you find any bug.
Usage of copebr
extension
import satellite_downloader
import satellite_weather
file = satellite_downloader.download_br_netcdf('2023-01-01', '2023-01-07')
br_dataset = satellite_weather.load_dataset(file)
rio_dataset = br_dataset.copebr.ds_from_geocode(3304557) # Rio de Janeiro's geocode
rio_dataframe = rio_dataset.to_dataframe()
It is also possible to create a dataframe directly from the National-wide dataset:
br_dataset.copebr.to_dataframe(3304557)
All Xarray methods are extended when using the copebr
extension:
rio_dataset.precip_med.to_array()
rio_dataset.temp_med.plot()
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
File details
Details for the file satellite_weather_downloader-1.5.2.tar.gz
.
File metadata
- Download URL: satellite_weather_downloader-1.5.2.tar.gz
- Upload date:
- Size: 155.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565c9616ea96de1751f40468a4c7a79c0a1b208983c909e42c03f7fe214ada39 |
|
MD5 | 1300d6878e5dae20be3fcd5f3846ed91 |
|
BLAKE2b-256 | b7e2b30028d3ea548308d0900107e5128936b4de656354137af6d6072800538a |
File details
Details for the file satellite_weather_downloader-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: satellite_weather_downloader-1.5.2-py3-none-any.whl
- Upload date:
- Size: 166.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.0 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bef7fe15ca65a40cfe036ded3dd4c99e8411b21c9f3c35eb46c593c9cc24b81 |
|
MD5 | 0f2eabbdfe758ebff518b5dce0b2d40e |
|
BLAKE2b-256 | d41eed28a6bb9beb816ddb72f76cdf42abcff447b7513f03e4245ec06348af41 |