Skip to content

Provides classes to handle satellite datasets. Allows process, regrid and visualize satellite data.

License

Notifications You must be signed in to change notification settings

SanParraguez/kintunwenu

Repository files navigation


GitHub release (latest by date including pre-releases) GitHub last commit GitHub license GitHub downloads

Provides classes to handle satellite datasets. Allows process, regrid and visualize satellite data.

Features

  • Easy to add new product routines
  • Vectorized gridding routine

Supported products

  • TROPOMI WFMD CH4 v1.8
  • TROPOMI L2 NO2

Basic usage

In your local directory just clone this repo

git clone [email protected]:SanParraguez/kintunwenu.git

If needed, you can also install the provided environment

conda env create --name ktw --file kintunwenu/bin/environment.yml
conda activate ktw

Gridding class

import numpy as np
import kintunwenu as ktw
from pyproj import CRS

# create grid
lons = np.linspace(-20,  15, 61)
lats = np.linspace(-50, -25, 61)

# create geodetic object for distance measurements
geod = CRS.from_string('+proj=eck4 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs').get_geod(),

# path to my product file
path_to_file = "my/path/to/netcdf/file.nc"

# initialize gridder
gridder = ktw.GridCrafter(
    grid_lons=lons,
    grid_lats=lats,
    min_fill=0.5,
    qa_filter=0.75,
    geod=geod,
)

# grid
product = gridder(path_to_file)

How to contribute

I'm still not sure, so any suggestion will be welcomed!

ToDo

  • Write proper README

Dependencies

Contributors

  • Santiago Parraguez Cerda

About

Provides classes to handle satellite datasets. Allows process, regrid and visualize satellite data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages