Skip to content

Commit

Permalink
nrt small modifcations
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmartinez4 committed Apr 15, 2024
1 parent 03a8ecc commit c3b07db
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 30 deletions.
95 changes: 81 additions & 14 deletions docs/lance-modis-nrt-global-flood-mcdwd-f3.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="author" content="Juan F. Martinez">
<meta name="author" content="Iris Cano">
<meta name="dcterms.date" content="2024-02-02">
<meta name="dcterms.date" content="2024-04-14">

<title>MODIS NRT Global Flood Product</title>
<style>
Expand Down Expand Up @@ -4100,7 +4100,7 @@ <h1 class="title">MODIS NRT Global Flood Product</h1>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">February 2, 2024</p>
<p class="date">April 14, 2024</p>
</div>
</div>

Expand Down Expand Up @@ -4292,7 +4292,7 @@ <h2 class="anchored" data-anchor-id="loading-the-data">Loading the Data</h2>
<div class="sourceCode cell-code" id="cb11"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a>response</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Response [https://nrt3.modaps.eosdis.nasa.gov/api/v2/content/details?products=MCDWD_L3_F3_NRT&amp;archiveSets=61&amp;temporalRanges=2024-102]
Date: 2024-04-15 03:37
Date: 2024-04-15 03:44
Status: 200
Content-Type: application/json;charset=UTF-8
Size: 113 kB</code></pre>
Expand Down Expand Up @@ -4322,16 +4322,16 @@ <h2 class="anchored" data-anchor-id="loading-the-data">Loading the Data</h2>
<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb15-4"><a href="#cb15-4" aria-hidden="true" tabindex="-1"></a>subset_df</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> archiveSets cksum collections dataDay
160 61 826602906 modis-nrt-c6.1 2024-102 = 2024-04-11
downloadsLink
160 https://nrt3.modaps.eosdis.nasa.gov/api/v2/content/archives/MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif
fileId md5sum mtime
160 2200473883 6d7939907f42817d4253ea79dc7c7113 1712891285
name products resourceType
160 MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif MCDWD_L3_F3_NRT File
self size
160 /api/v2/content/details/MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif 780531</code></pre>
<pre><code> archiveSets cksum collections dataDay
38 61 826602906 modis-nrt-c6.1 2024-102 = 2024-04-11
downloadsLink
38 https://nrt3.modaps.eosdis.nasa.gov/api/v2/content/archives/MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif
fileId md5sum mtime
38 2200473883 6d7939907f42817d4253ea79dc7c7113 1712891285
name products resourceType
38 MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif MCDWD_L3_F3_NRT File
self size
38 /api/v2/content/details/MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif 780531</code></pre>
</div>
</div>
<p>If there is only 1 row, select the string ‘downloadsLink’ column:</p>
Expand Down Expand Up @@ -4560,7 +4560,74 @@ <h2 class="anchored" data-anchor-id="zonal-statistics-of-flood-zones">Zonal Stat
<span id="cb34-2"><a href="#cb34-2" aria-hidden="true" tabindex="-1"></a>cdl_sub3 <span class="ot">&lt;-</span> cdl_sub[raster3<span class="sc">==</span><span class="dv">3</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>The <a href="https://www.nass.usda.gov/Research_and_Science/Cropland/sarsfaqs2.php#common.7">CDL FAQ Webpage</a> lists the categorization, including non-agricultural categories which we can remove from the analysis:</p>
<p>Non-Agricultural Categories | Categorization Code | Land cover | |———————|———————–| | “111” | Open water | | “112” | Perennial Ice/snow | | “121” | Developed/Open space | | “122” | Developed/Low Intensity | | “123” | Developed/Med Intensity | | “124” | Developed/High Intensity | | “131” | Barren | | “141” | Deciduous Forest | | “142” | Evergreen Forest | | “143” | Mixed Forest | | “152” | Shrubland | | “176” | Grassland/Pasture | | “190” | Woody Wetlands | | “195” | Herbaceous Wetlands | `</p>
<p>Non-Agricultural Categories</p>
<table class="table">
<thead>
<tr class="header">
<th style="text-align: center;">Categorization Code</th>
<th style="text-align: left;">Land cover</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: center;">“111”</td>
<td style="text-align: left;">Open water</td>
</tr>
<tr class="even">
<td style="text-align: center;">“112”</td>
<td style="text-align: left;">Perennial Ice/snow</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“121”</td>
<td style="text-align: left;">Developed/Open space</td>
</tr>
<tr class="even">
<td style="text-align: center;">“122”</td>
<td style="text-align: left;">Developed/Low Intensity</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“123”</td>
<td style="text-align: left;">Developed/Med Intensity</td>
</tr>
<tr class="even">
<td style="text-align: center;">“124”</td>
<td style="text-align: left;">Developed/High Intensity</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“131”</td>
<td style="text-align: left;">Barren</td>
</tr>
<tr class="even">
<td style="text-align: center;">“141”</td>
<td style="text-align: left;">Deciduous Forest</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“142”</td>
<td style="text-align: left;">Evergreen Forest</td>
</tr>
<tr class="even">
<td style="text-align: center;">“143”</td>
<td style="text-align: left;">Mixed Forest</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“152”</td>
<td style="text-align: left;">Shrubland</td>
</tr>
<tr class="even">
<td style="text-align: center;">“176”</td>
<td style="text-align: left;">Grassland/Pasture</td>
</tr>
<tr class="odd">
<td style="text-align: center;">“190”</td>
<td style="text-align: left;">Woody Wetlands</td>
</tr>
<tr class="even">
<td style="text-align: center;">“195”</td>
<td style="text-align: left;">Herbaceous Wetlands</td>
</tr>
</tbody>
</table>
<p>`</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb35"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb35-1"><a href="#cb35-1" aria-hidden="true" tabindex="-1"></a><span class="co">#list of non-agricultural Categories</span></span>
<span id="cb35-2"><a href="#cb35-2" aria-hidden="true" tabindex="-1"></a>nonag_cat <span class="ot">&lt;-</span> <span class="fu">list</span>(<span class="st">&quot;Perennial Ice/Snow&quot;</span>, <span class="st">&quot;Developed/Open Space&quot;</span>, <span class="st">&quot;Developed/Low Intensity&quot;</span>, <span class="st">&quot;Developed/Med Intensity&quot;</span>,<span class="st">&quot;Developed/High Intensity&quot;</span>, <span class="st">&quot;Barren&quot;</span>, <span class="st">&quot;Deciduous Forest&quot;</span>, <span class="st">&quot;Evergreen Forest&quot;</span>,<span class="st">&quot;Mixed Forest&quot;</span>,<span class="st">&quot;Shrubland&quot;</span>,<span class="st">&quot;Grassland/Pasture&quot;</span>,<span class="st">&quot;Woody Wetlands&quot;</span>, <span class="st">&quot;Herbaceous Wetlands&quot;</span>)</span>
Expand Down
33 changes: 17 additions & 16 deletions lance-modis-nrt-global-flood-mcdwd-f3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "MODIS NRT Global Flood Product"
author:
- "Juan F. Martinez"
- "Iris Cano"
date: "February 2, 2024"
date: "April 14, 2024"
bibliography: nrt-flood-references.bib
---

Expand Down Expand Up @@ -444,22 +444,23 @@ cdl_sub3 <- cdl_sub[raster3==3]
The [CDL FAQ Webpage](https://www.nass.usda.gov/Research_and_Science/Cropland/sarsfaqs2.php#common.7) lists the categorization, including non-agricultural categories which we can remove from the analysis:

Non-Agricultural Categories
| Categorization Code | Land cover |
|---------------------|-----------------------|
| "111" | Open water |
| "112" | Perennial Ice/snow |
| "121" | Developed/Open space |
| "122" | Developed/Low Intensity |
| "123" | Developed/Med Intensity |

| Categorization Code | Land cover |
|:-------------------:|:-------------------------|
| "111" | Open water |
| "112" | Perennial Ice/snow |
| "121" | Developed/Open space |
| "122" | Developed/Low Intensity |
| "123" | Developed/Med Intensity |
| "124" | Developed/High Intensity |
| "131" | Barren |
| "141" | Deciduous Forest |
| "142" | Evergreen Forest |
| "143" | Mixed Forest |
| "152" | Shrubland |
| "176" | Grassland/Pasture |
| "190" | Woody Wetlands |
| "195" | Herbaceous Wetlands |
| "131" | Barren |
| "141" | Deciduous Forest |
| "142" | Evergreen Forest |
| "143" | Mixed Forest |
| "152" | Shrubland |
| "176" | Grassland/Pasture |
| "190" | Woody Wetlands |
| "195" | Herbaceous Wetlands |
`

```{r}
Expand Down

0 comments on commit c3b07db

Please sign in to comment.