Skip to content

Commit 5528030

Browse files
authored
Merge pull request #53 from nasa/ghg_tutorial
After workshop notebook updates and web-book prep
2 parents d12e4b5 + 24bd73b commit 5528030

12 files changed

+121
-348
lines changed

CHANGE_LOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66
_________________________________________________________________________
77

8+
## 2024-03-22
9+
10+
> ### Added
11+
>
12+
> - `geojson` with plume bounding box for `Visualizing Methane Plume Timeseries` notebook
13+
14+
> ### Changed
15+
>
16+
> - Updates to instructions in `Visualizing Methane Plume Timeseries` notebook
17+
> - Remove horizontal lines from notebooks for web-book creation
18+
819
## 2024-03-13
920

1021
> ### Added
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "FeatureCollection",
3+
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
4+
"features": [
5+
{ "type": "Feature", "properties": { "name": "plume_bbox" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 36.1075296, 31.8092048 ], [ 36.2805017, 31.8092048 ], [ 36.2805017, 32.1274953 ], [ 36.1075296, 32.1274953 ], [ 36.1075296, 31.8092048 ] ] ] } }
6+
]
7+
}

python/how-tos/How_to_Convert_to_ENVI.ipynb

+2-14
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"source": [
77
"# How To: Convert EMIT .nc to .envi\n",
88
"\n",
9-
"---\n",
10-
"\n",
119
"There are currently 2 similar methods to convert the EMIT netCDF4 files to `.envi` format. Note these only support L1B Radiance, L1B Obs, L2A Reflectance, L2A Reflectance Uncertainty, or L2A Mask to .envi. They do not yet support the L2B Mineral or L2B Mineral Uncertainty products.\n",
1210
"1. The `write_envi` function in EMIT tools. This function is still being developed but will currently:\n",
1311
" - Write a GLT output to use for orthocorrection later \n",
@@ -23,17 +21,13 @@
2321
"\n",
2422
"**Learning Objectives**\n",
2523
"+ How to use the `write_envi` function from `emit_tools` module to convert an EMIT netCDF4 to a `.envi` file.\n",
26-
"+ How to use the `reformat.py` function from the `emit-utils` repository to convert an EMIT netCDF4 to a `.envi` file.\n",
27-
"\n",
28-
"---"
24+
"+ How to use the `reformat.py` function from the `emit-utils` repository to convert an EMIT netCDF4 to a `.envi` file."
2925
]
3026
},
3127
{
3228
"cell_type": "markdown",
3329
"metadata": {},
3430
"source": [
35-
"---\n",
36-
"\n",
3731
"## Setup\n",
3832
"\n",
3933
"Import packages"
@@ -150,8 +144,6 @@
150144
"cell_type": "markdown",
151145
"metadata": {},
152146
"source": [
153-
"---\n",
154-
"\n",
155147
"## Method 1: Using `write_envi` from the `emit_tools` module.\n",
156148
"\n",
157149
"Import the necessary packages for this method. "
@@ -756,8 +748,6 @@
756748
"cell_type": "markdown",
757749
"metadata": {},
758750
"source": [
759-
"---\n",
760-
"\n",
761751
"## Method 2: Using reformat.py from emit-utils\n",
762752
"\n",
763753
"### 2.1 Clone and Install emit-utils\n",
@@ -886,8 +876,6 @@
886876
"cell_type": "markdown",
887877
"metadata": {},
888878
"source": [
889-
"---\n",
890-
"\n",
891879
"## Contact Info: \n",
892880
"\n",
893881
"Email: [email protected] \n",
@@ -916,7 +904,7 @@
916904
"name": "python",
917905
"nbconvert_exporter": "python",
918906
"pygments_lexer": "ipython3",
919-
"version": "3.11.4"
907+
"version": "3.10.13"
920908
},
921909
"vscode": {
922910
"interpreter": {

python/how-tos/How_to_Direct_S3_Access.ipynb

+2-10
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
"\n",
2424
"**Learning Objectives** \n",
2525
"+ How to use Direct S3 Access to EMIT Data\n",
26-
"+ How to add this functionality to any notebook from this repository\n",
27-
"\n",
28-
"---"
26+
"+ How to add this functionality to any notebook from this repository"
2927
]
3028
},
3129
{
@@ -63,8 +61,6 @@
6361
"cell_type": "markdown",
6462
"metadata": {},
6563
"source": [
66-
"---\n",
67-
"\n",
6864
"## Overview of s3 Access\n",
6965
"\n",
7066
"NASA Earthdata Cloud data in S3 can be directly accessed via temporary credentials; this access is limited to requests made within the US West (Oregon) (code: us-west-2) AWS region. Direct S3 access is achieved by passing NASA supplied temporary credentials (token) to AWS so we can interact with S3 objects from applicable Earthdata Cloud buckets. Your NASA Earthdata login credentials can easily be managed using the `earthaccess` library. We can create the necessary `.netrc` file that stores the Earthdata Login credentials locally with the following code cell. Enter your username and password if prompted, these will be used to sign into NASA Earthdata and retrieve the necessary temporary credentials allowing you to utilize s3 access."
@@ -246,8 +242,6 @@
246242
"cell_type": "markdown",
247243
"metadata": {},
248244
"source": [
249-
"--- \n",
250-
"\n",
251245
"## S3 Access for any Notebook in this Repository\n",
252246
"\n",
253247
"Add the two code blocks below to any how-to or tutorial notebook, by replacing the block that sets the local filepath(s) as `fp` with the two blocks below. The first block imports the additional packages required and retrieves temporary s3 credentials. The second uses `s3fs` to open the desired s3 URL and create an object readable by `xarray`."
@@ -299,8 +293,6 @@
299293
"cell_type": "markdown",
300294
"metadata": {},
301295
"source": [
302-
"---\n",
303-
"\n",
304296
"## Contact Info: \n",
305297
"\n",
306298
"Email: [email protected] \n",
@@ -329,7 +321,7 @@
329321
"name": "python",
330322
"nbconvert_exporter": "python",
331323
"pygments_lexer": "ipython3",
332-
"version": "3.9.16"
324+
"version": "3.10.13"
333325
},
334326
"vscode": {
335327
"interpreter": {

python/how-tos/How_to_Extract_Area.ipynb

-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
"cell_type": "markdown",
2828
"metadata": {},
2929
"source": [
30-
"---\n",
31-
"\n",
3230
"Import the required Python libraries."
3331
]
3432
},
@@ -248,8 +246,6 @@
248246
"cell_type": "markdown",
249247
"metadata": {},
250248
"source": [
251-
"---\n",
252-
"\n",
253249
"## Contact Info: \n",
254250
"\n",
255251
"Email: [email protected] \n",

python/how-tos/How_to_Extract_Points.ipynb

-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
"cell_type": "markdown",
2727
"metadata": {},
2828
"source": [
29-
"---\n",
30-
"\n",
3129
"Import the required Python libraries."
3230
]
3331
},
@@ -297,8 +295,6 @@
297295
"cell_type": "markdown",
298296
"metadata": {},
299297
"source": [
300-
"---\n",
301-
"\n",
302298
"## Contact Info: \n",
303299
"\n",
304300
"Email: [email protected] \n",

python/how-tos/How_to_Orthorectify.ipynb

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"source": [
88
"# How To: Orthorectify EMIT Data\n",
99
"\n",
10-
"---\n",
11-
">**Warning: This notebook uses a lot of memory**\n",
10+
">**Warning: This notebook uses a lot of memory, if using 2i2c, you will need a 29.7 GB, 3.75 CPU instance.**\n",
1211
"\n",
1312
"EMIT Data is provided in non-orthorectified format to reduce data size. The `location` group contains latitude and longitude values of each pixel as well as a geometric lookup table (GLT) that can be used to orthocorrect the imagery. The GLT is an array that provides relative downtrack and crosstrack reference locations from the raw scene to facilitate fast projection of the dataset.\n",
1413
"\n",
@@ -31,8 +30,6 @@
3130
"cell_type": "markdown",
3231
"metadata": {},
3332
"source": [
34-
"---\n",
35-
"\n",
3633
"## 1. Using emit_xarray to Orthorectify\n",
3734
"\n",
3835
"Import the required Python libraries."
@@ -447,8 +444,6 @@
447444
"cell_type": "markdown",
448445
"metadata": {},
449446
"source": [
450-
"---\n",
451-
"\n",
452447
"## Contact Info: \n",
453448
"\n",
454449
"Email: [email protected] \n",
@@ -477,7 +472,7 @@
477472
"name": "python",
478473
"nbconvert_exporter": "python",
479474
"pygments_lexer": "ipython3",
480-
"version": "3.11.4"
475+
"version": "3.10.13"
481476
},
482477
"vscode": {
483478
"interpreter": {

0 commit comments

Comments
 (0)