UXARRAY / uxarray

Xarray-styled package for reading and directly operating on unstructured grid datasets following UGRID conventions
https://uxarray.readthedocs.io/
Apache License 2.0
139 stars 30 forks source link

DRAFT: E3SM UXarray and Dask Examples #836

Open rytam2 opened 5 days ago

rytam2 commented 5 days ago

Closes #822

Overview

Expected Usage

import uxarray as ux

grid_path = "/path/to/grid.nc"
data_path = "/path/to/data.nc"

uxds = ux.open_dataset(grid_path, data_path)

# this is how you use this function
some_output = uxds.some_function()

# this is another way to use this function
other_output = uxds.some_function(some_param = True)

PR Checklist

General

Testing

Documentation

Examples

review-notebook-app[bot] commented 5 days ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

review-notebook-app[bot] commented 21 hours ago

View / edit / reply to this conversation on ReviewNB

philipc2 commented on 2024-07-08T16:41:20Z ----------------------------------------------------------------

Maybe we could change the title to something that better reflects the content of the notebook?

"Analysis of E3SMv2 Model Output"


review-notebook-app[bot] commented 21 hours ago

View / edit / reply to this conversation on ReviewNB

philipc2 commented on 2024-07-08T16:41:21Z ----------------------------------------------------------------

Overview

This workflow example showcases how to use UXarray to analyze the unstructured grid output from the Energy Exascale Earth System Model (E3SM) model directly without needing to perform any regridding operations.


review-notebook-app[bot] commented 21 hours ago

View / edit / reply to this conversation on ReviewNB

philipc2 commented on 2024-07-08T16:41:22Z ----------------------------------------------------------------

Line #22.    warnings.filterwarnings("ignore")

We want to have this warning filter be the first thing we execute so that none of the warnings show up.


review-notebook-app[bot] commented 21 hours ago

View / edit / reply to this conversation on ReviewNB

philipc2 commented on 2024-07-08T16:41:23Z ----------------------------------------------------------------

This is great!


review-notebook-app[bot] commented 21 hours ago

View / edit / reply to this conversation on ReviewNB

philipc2 commented on 2024-07-08T16:41:24Z ----------------------------------------------------------------

The latex appears to be broken in the rendered documentation.

https://uxarray--836.org.readthedocs.build/en/836/examples/e3sm-calc-workflow.html#calculating-cloud-radiative-effect-netcre-with-uxarray

You want to use the following syntax instead (for example)

{math}4{\pi}{r^2}


_rytam2 commented on 2024-07-08T22:16:31Z_ ----------------------------------------------------------------

Hi Philip, thanks for the comment! For the syntax, do you mean I'll do the following:

$$
{SWCRE = FSNT-FSNTC}
$$

Or do you mean adding {math} before the SWCRE...FSNTC equation, and have $$ removed?

_philipc2 commented on 2024-07-09T06:22:00Z_ ----------------------------------------------------------------

Correct, it should look like {math}{SWCRE = FSNT - FSNTC}