Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmartinez4 committed Apr 15, 2024
1 parent c3b07db commit 4d417ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions docs/lance-modis-nrt-global-flood-mcdwd-f3.html
Original file line number Diff line number Diff line change
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:44
Date: 2024-04-15 03:47
Status: 200
Content-Type: application/json;charset=UTF-8
Size: 113 kB</code></pre>
Expand Down Expand Up @@ -4323,15 +4323,15 @@ <h2 class="anchored" data-anchor-id="loading-the-data">Loading the Data</h2>
<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
38 61 826602906 modis-nrt-c6.1 2024-102 = 2024-04-11
15 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
15 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
15 2200473883 6d7939907f42817d4253ea79dc7c7113 1712891285
name products resourceType
38 MCDWD_L3_F3_NRT.A2024102.h05v05.061.tif MCDWD_L3_F3_NRT File
15 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>
15 /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 @@ -4557,7 +4557,7 @@ <h2 class="anchored" data-anchor-id="zonal-statistics-of-flood-zones">Zonal Stat
<p>Now that we have only the flooded areas from the NRT Flood data, we can subset the CDL data.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb34"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb34-1"><a href="#cb34-1" aria-hidden="true" tabindex="-1"></a><span class="co">#subset the CDL raster where unusual flooding occurred</span></span>
<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>
<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</p>
Expand Down
4 changes: 2 additions & 2 deletions lance-modis-nrt-global-flood-mcdwd-f3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ breaks3 <- c(0,3)
plot(raster3, breaks=breaks3, col="red",downsample=20)
```

Now that we have only the flooded areas from the NRT Flood data, we can subset the CDL data.
Now that we have only the flooded areas from the NRT Flood data, we can subset the CDL data.
```{r}
#subset the CDL raster where unusual flooding occurred
cdl_sub3 <- cdl_sub[raster3==3]
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:

Expand Down

0 comments on commit 4d417ce

Please sign in to comment.