-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add metrics calculation app #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
02f670c
draft
dfulu a97724c
refactor tests
dfulu 428aed1
Merge branch 'main' into add_metrics_app
dfulu e322670
update READMEs and clean
dfulu 5521045
clean up names and entry points
dfulu 91e9482
change to uv for dependency control
dfulu d8071e5
update fsspec
dfulu 543e9e2
linting
dfulu 6f36c75
Update src/cloudcasting_inference/README.md
dfulu bda9c40
review comments
dfulu 72e9db6
update README
dfulu 405bc04
remove init
dfulu 3000d49
fix tests
dfulu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # cloudcasting-inference | ||
|
|
||
| This package is used to run inference on the model. This model takes previous frames of EUMETSAT | ||
| satellite images and forecasts the future frames to come. | ||
|
|
||
| The repo associated with training the models run here is https://github.com/openclimatefix/sat_pred | ||
|
|
||
| The model checkpoints are hosted at: | ||
| https://huggingface.co/openclimatefix/cloudcasting_uk | ||
|
|
||
| ## Environment Variables | ||
|
|
||
| The following environment variables are used in the app: | ||
|
|
||
| - `SATELLITE_ZARR_PATH`: The path to the satellite data in Zarr format. | ||
| - `PREDICTION_SAVE_DIRECTORY`: The directory where predictions will be saved. | ||
|
|
||
| ### Optional Environment Variables | ||
|
|
||
| - `SATELLITE_15_ZARR_PATH`: The path to the 15 minute satellite data in Zarr format. If | ||
| this is not set then the `SATELLITE_ZARR_PATH` is used by `.zarr` is repalced with `_15.zarr` | ||
|
|
||
| ## Example usage | ||
|
|
||
| ### Running the app locally | ||
|
|
||
| It is possible to run the app locally by setting the required environment variables listed at the | ||
| top of the [inference app](src/cloudcasting_inference/app.py), these should point to the relevant | ||
| paths for loading satellite data and saving predicitons. | ||
dfulu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| You can then run the app using `uv run cloudcasting-inference`.s | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # cloudcasting-metrics | ||
|
|
||
| This package is used to score the predictions made by the cloudcasting model and save the scores to | ||
| a zarr store at the location `METRIC_ZARR_PATH`. By default, the scoring is run for all init-times | ||
| made the day before running. | ||
|
|
||
| ## Environment Variables | ||
|
|
||
| The following environment variables are used in the app: | ||
|
|
||
| - `SATELLITE_ICECHUNK_ARCHIVE`: The path to the satellite archive in icechunk formast | ||
| - `PREDICTION_SAVE_DIRECTORY`: The directory where the cloudcasting predictions are saved. | ||
| i.e. set to the same as `PREDICTION_SAVE_DIRECTORY` in `cloudcasting_inference`. | ||
| - `METRIC_ZARR_PATH`: Where to save metrics zarr |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.