Python library for processing VIIRS data
Project description
viirs-tools
viirs-tools
is a Python library that provides basic algorithms for retrieving meteorological data from VIIRS (Visible Infrared Imaging Radiometer Suite) satellite shots. This project started as a diploma (or thesis) project, and the primary goals of the viirs-tools
library are threefold:
-
Faster Data Processing: The library aims to make the process of working with VIIRS data much quicker than the standard NASA approach. The goal is to provide near-real-time (NRT) data processing capabilities, allowing researchers and scientists to access and analyze the data in a more timely manner. However, it's important to note that this speed improvement may come at the cost of reduced accuracy, as the library's algorithms may not be as thoroughly tested and validated as the NASA's standard processing pipeline.
-
Easier VIIRS Data Utilization: In addition to the speed improvements, the library is designed to make it easier for researchers and scientists to work with VIIRS data.
-
Flexible Data Handling: One of the key aims of the
viirs-tools
library is to provide users with handy access to the underlying algorithms, allowing them to work with the data in a variety of formats, includingxr.Dataset
,xr.DataArray
, andnp.ndarray
. This flexibility ensures that the library can be seamlessly integrated into a wide range of data processing workflows.
Installation
To install viirs-tools
, you can use pip:
pip install viirs-tools
If you want to use the Assimilator
extra module, which allows you to download data from NASA servers:
pip install viirs-tools[assimilator]
Note that this module functions rely on the cmrfetch package, you need to install and configure it first.
Usage
The viirs-tools
library provides the following core modules and their main functions:
-
CloudMask:
rsnpp_day_img
: Day reflectance/thermal I-bands cloud test. [^1]fire_day_img
,fire_night_img
: Day and night I-bands cloud tests used in the [^2].
-
NightMask:
naive
: Day/night mask, based on the difference between presence of reflectance and thermal data, for both I- and M-bands
-
Water:
water_bodies_day
: Day reflectance tests for water bodies from [^2]
-
LST:
mono_window_i05
,mono_window_m16
,mono_window_m15
: LST retrieval for I05 band, based on the LANDSAT-8 alg [^3]
-
Fires:
active_fires
: Active fire detection from [^2]
-
Utils:
- Just some helpful functions
-
Assimilator submodule:
- Assimilator:
assimilate
: Retrieving data from NASA archives using cmrfetch, with support for handy data collection process management
- Reading
read_npp_viaes_l1
: Reading VIIRS/NPP Imagery Resolution 6-Min L1 Swath SDR 375m product filesread_npp_vmaes_l1
: Reading VIIRS/NPP Moderate Resolution 6-Min L1 Swath SDR and GEO 750m product filesread_npp_cldmsk_l2
: Reading VIIRS/SNPP Cloud Mask 6-Min Swath 750m product files
- ReadingHelpers
- Contains some helper functions for reading files that aren't supported by
SatPy
module (some examples of using them in the previous module)
- Contains some helper functions for reading files that aren't supported by
- Assimilator:
Demo
You can find demo Qt6 app in the viirs-demo
folder. Note that it requires additional packages to be installed installed - rasterio
, matplotlib
, PyQt6
and TensorFlow
. Run viirs-demo.py
to start it. Data for this demo can be found in the demo-data
folder.
Additional tools
In the scripts
folder you can find useful tools for local satellite data analysis, such assimilate.py
script. It was used for gathering data in the demo-data
folder.
References
[^1]: M.Piper, T.Bahr (2015). A RAPID CLOUD MASK ALGORITHM FOR SUOMI NPP VIIRS IMAGERY EDRS.
[^2]: W.Schroeder, P.Oliva, L.Giglio, I.A.Csiszar (2014). The New VIIRS 375 m active fire detection data product: Algorithm description and initial assessment.
[^3]: U.Avdan, G.Jovanovska (2016). Algorithm for Automated Mapping of Land Surface Temperature Using LANDSAT 8 Satellite Data
Project details
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 viirs-tools-1.0.0.tar.gz
.
File metadata
- Download URL: viirs-tools-1.0.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 930b0b8d51f561098121d70f91291dd44c0e78df4f16bb616058cb51b83d29b3 |
|
MD5 | aa07b2e5773841da61b0acf39d129548 |
|
BLAKE2b-256 | 25cee907c5366d2881039c6eda71c895828849c4d4d968eef24e3f6462794a87 |
File details
Details for the file viirs_tools-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: viirs_tools-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61aeeb1b3f9f23f5d7978327d016a8ea5d46dfc81679354256d88f21f91154fd |
|
MD5 | 0365e2f859f759db36f3c22348705ccf |
|
BLAKE2b-256 | d4e400a2bebe7d7ca26bc6c37885870efa7a1296a09de52a3427df4750e3e541 |