Skip to content

cemc-oper/cedarkit-comp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cedarkit-comp

GitHub Release PyPI - Version GitHub License GitHub Action Workflow Status

A calculation tool for meteorological data.

Install

Install using pip:

pip install cedarkit-comp

Or download the latest source code from GitHub and install manually.

Getting started

Load data from file:

from reki.format.grib.eccode import load_field_from_file

file_path = "/some/path/to/grib2/file"
field_h_500 = load_field_from_file(
    file_path,
    parameter="gh",
    level_type="pl",
    level=500
) / 10.

Smooth using smth9:

from cedarkit.comp.smooth import smth9
from cedarkit.comp.util import apply_to_xarray_values

field_h_500 = apply_to_xarray_values(
    field_h_500, 
    lambda x: smth9(x, 0.5, 0.25, False)
)

LICENSE

Copyright © 2024, developers at cemc-oper.

cedarkit-comp is licensed under Apache License V2.0

About

A meteorological computation tool for CEMC/CMA.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages