Skip to content

Commit d74f8da

Browse files
authored
Merge pull request #96 from nsidc/update-snowex-access
Update snowex access 1. Replaced old code with earthaccess, xarray and rioxarray workflows 2. Removed use of external scripts 3. Modified search for ASO and MODIS to use spatial extent and temporal range of SnowEx GPR 4. Add new plotting for MODIS data 5. Removed use of SNOTEL for buffer and used GPR extent instead.
2 parents b008367 + 3571341 commit d74f8da

12 files changed

+14125
-3281
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,13 @@ package-lock.json
4949
geckodriver.log
5050
*.iml
5151

52+
# For SnowEx_ASO_MODIS_Snow
53+
notebooks/SnowEx_ASO_MODIS_Snow/download
54+
55+
# Shape files
56+
*.cpg
57+
*.dbf
58+
*.prj
59+
*.shp
60+
*.shx
61+
-896 KB
Binary file not shown.
Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
# Snow Depth and Snow Cover Data Exploration
22

3-
## Summary
3+
## Overview
44

5-
This tutorial demonstrates how to access and compare coincident snow data from the National Snow and Ice Data Center Distributed Active Archive Center (NSIDC DAAC) across in-situ, airborne, and satellite platforms from NASA's SnowEx, ASO, and MODIS data sets, respectively.
5+
This tutorial demonstrates how to access and compare coincident snow data from in-situ Ground Pentrating Radar (GPR) measurements, and airborne and satellite platforms from NASA's SnowEx, ASO, and MODIS data sets. All data are available from the NASA National Snow and Ice Data Center Distributed Active Archive Center (NSIDC DAAC).
66

7-
## Key Learning Objectives
7+
## What you will learn in this tutorial
88

9-
1. Learn about the coverage, resolution, and structure of snow data sets from NASA's SnowEx, ASO, and MODIS data sets.
9+
In this tutorial you will learn:
1010

11-
2. Learn how to find and download spatiotemporally coincident data across in-situ, airborne, and satellite observations.
11+
1. what snow data and information is available from NSIDC and the resources available to search and access this data;
12+
2. how to search and access spatiotemporally coincident data across in-situ, airborne, and satellite observations.
13+
3. how to read SnowEx GPR data into a Geopandas GeoDataFrame;
14+
4. how to read ASO snow depth data from GeoTIFF files using xarray;
15+
5. how to read MODIS Snow Cover data from HDF-EOS files using xarray;
16+
6. how to subset gridded data using a bounding box;
17+
5. how to extract and visualize raster values at point locations;
18+
6. how to save output as shapefile.
1219

13-
3. Learn how to read data into Python from CSV and GeoTIFF formats.
20+
## Setup
1421

15-
4. Learn how to subset data based on a buffered area.
22+
We recommend creating a virtual environment to run this notebook. This can be with `mamba` or `conda`. We recommend `mamba`.
1623

17-
5. Learn how to extract and visualize raster values at point locations.
24+
```
25+
mamba env update -f environment/environment.yml
26+
```
27+
28+
This will create an environment called `nsidc-tutorials-snowex`. You can activate the environment with the command:
29+
30+
```
31+
mamba activate nsidc-tutorials-snowex
32+
```
33+
34+
You will now have a virtual environment with all the required packages. You can start a `jupyter lab` with
35+
36+
```
37+
jupyter lab
38+
```

notebooks/SnowEx_ASO_MODIS_Snow/Snow-tutorial.ipynb

Lines changed: 0 additions & 791 deletions
This file was deleted.

notebooks/SnowEx_ASO_MODIS_Snow/Snow-tutorial_rendered.ipynb

Lines changed: 0 additions & 1812 deletions
This file was deleted.
File renamed without changes.

notebooks/SnowEx_ASO_MODIS_Snow/environment/environment.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
name: nsidc-tutorials
1+
name: nsidc-tutorials-snowex
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.9
6-
- pangeo-notebook
7-
- xarray
5+
- python=3.12
6+
7+
- jupyterlab
8+
- jupyter_contrib_nbextensions
9+
810
- earthaccess
9-
- matplotlib-base
10-
- shapely
11-
- geopandas
11+
12+
- xarray
13+
- rioxarray
14+
- dask
15+
- bottleneck
1216
- h5py
13-
- pyresample
14-
- fiona
15-
- descartes
16-
- rasterio
17+
- libgdal-hdf4
18+
19+
- geopandas
20+
21+
- matplotlib
1722
- cartopy
1823
platforms:
1924
- linux-64
444 KB
Loading
141 KB
Loading

0 commit comments

Comments
 (0)