Skip to content

Commit

Permalink
add xarray info
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Dec 7, 2023
1 parent ce9c13a commit 1300ff3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@
"\n",
"The tutorial uses `python` and requires the following packages:\n",
"- `earthaccess`, which enables Earthdata Login authentication and retrieves AWS credentials; enables collection and granule searches; and S3 access;\n",
"- `xarray`, used to load data;\n",
"- `xarray`, used to load N-dimensional data with labeled axes;\n",
"- `hvplot`, used to visualize land ice height data.\n",
"\n",
"We are going to import the whole `earthaccess` package.\n",
"\n",
"We will also import the whole `xarray` package but use a standard short name `xr`, using the `import <package> as <short_name>` syntax. We could use anything for a short name but `xr` is an accepted standard that most `xarray` users are familiar with.\n",
"\n",
"[`xarray`](https://docs.xarray.dev/en/stable/) is a powerful library for working with multi-dimensional data using labeled indices (analogous to Pandas for tabular data). A few great tutorials for learning Xarray are [here](https://nasa-openscapes.github.io/2021-Cloud-Hackathon/tutorials/03_Xarray.html) and [here](https://tutorial.xarray.dev/intro.html).\n",
"\n",
"We only need the `xarray` module from `hvplot` so we import that using the `import <package>.<module>` syntax."
]
},
Expand Down

0 comments on commit 1300ff3

Please sign in to comment.