ecmwf / earthkit-data

A format-agnostic Python interface for geospatial data
Apache License 2.0
57 stars 17 forks source link

Enable to use forcings without providing a source #495

Closed sandorkertesz closed 1 month ago

sandorkertesz commented 1 month ago

With this PR it is possible to create "forcings" providing latitudes and longitudes only:

import earthkit.data as ekd
ds = ekd.from_source( "forcings", 
        latitudes=latitudes, 
        longitudes=longitudes, 
        date=date, 
        param=param)

The kwargs can also be "latitude" and "longitude".

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 95.65217% with 4 lines in your changes missing coverage. Please review.

Project coverage is 90.76%. Comparing base (a2804c0) to head (0b26d64).

Files with missing lines Patch % Lines
tests/forcings/forcings_fixtures.py 80.00% 1 Missing and 1 partial :warning:
tests/forcings/test_forcings_proc.py 88.88% 1 Missing :warning:
tests/forcings/test_forcings_slice.py 94.44% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #495 +/- ## =========================================== + Coverage 90.73% 90.76% +0.03% =========================================== Files 144 144 Lines 9896 9956 +60 Branches 473 476 +3 =========================================== + Hits 8979 9037 +58 - Misses 761 762 +1 - Partials 156 157 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.