Skip to content

Commit

Permalink
deploy: 98bfc94
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marshall committed Feb 4, 2024
1 parent 2d2981a commit 20b91ef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
22 changes: 17 additions & 5 deletions _sources/asf_inspect.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5461,7 +5461,7 @@
"id": "f59f9f3c-0b20-4584-a1bc-a784b1451972",
"metadata": {},
"source": [
"Interesting, it looks like there's only really data for the 0, 2, 4, 8 and 11 elements of the list of duplicates."
"Interesting, it looks like there's only really data for the 0, 2, 4, 7 and 9 elements of the list of duplicates."
]
},
{
Expand All @@ -5474,12 +5474,12 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 1,
"id": "80493ec3-b2f2-40ba-a903-5398afef6dc1",
"metadata": {},
"outputs": [],
"source": [
"drop_ls = [1,3,5,6,7,9,10]"
"drop_ls = [1,3,5,6,8,10,11]"
]
},
{
Expand All @@ -5492,10 +5492,22 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 2,
"id": "3f7bfff9-18f9-421c-a957-9f44c2b69dd6",
"metadata": {},
"outputs": [],
"outputs": [
{
"ename": "NameError",
"evalue": "name 'asf_duplicates' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[2], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m drop_product_id_ls \u001b[38;5;241m=\u001b[39m \u001b[43masf_duplicates\u001b[49m\u001b[38;5;241m.\u001b[39misel(acq_date \u001b[38;5;241m=\u001b[39m drop_ls)\u001b[38;5;241m.\u001b[39mproduct_id\u001b[38;5;241m.\u001b[39mdata\n",
"\u001b[0;31mNameError\u001b[0m: name 'asf_duplicates' is not defined"
]
}
],
"source": [
"drop_product_id_ls = asf_duplicates.isel(acq_date = drop_ls).product_id.data"
]
Expand Down
14 changes: 12 additions & 2 deletions asf_inspect.html
Original file line number Diff line number Diff line change
Expand Up @@ -5407,11 +5407,11 @@ <h2>Handling duplicate time steps<a class="headerlink" href="#handling-duplicate
<img alt="_images/b492d51a741c337a519b6994db779840e8895698ce934fbe6153905cacb7dc97.png" src="_images/b492d51a741c337a519b6994db779840e8895698ce934fbe6153905cacb7dc97.png" />
</div>
</div>
<p>Interesting, it looks like there’s only really data for the 0, 2, 4, 8 and 11 elements of the list of duplicates.</p>
<p>Interesting, it looks like there’s only really data for the 0, 2, 4, 7 and 9 elements of the list of duplicates.</p>
<p>To drop these, we need to extract the product ID of each duplicate we’d like to remove, since this is the only variable that is unique among the duplicates.</p>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">drop_ls</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">5</span><span class="p">,</span><span class="mi">6</span><span class="p">,</span><span class="mi">7</span><span class="p">,</span><span class="mi">9</span><span class="p">,</span><span class="mi">10</span><span class="p">]</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">drop_ls</span> <span class="o">=</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">5</span><span class="p">,</span><span class="mi">6</span><span class="p">,</span><span class="mi">8</span><span class="p">,</span><span class="mi">10</span><span class="p">,</span><span class="mi">11</span><span class="p">]</span>
</pre></div>
</div>
</div>
Expand All @@ -5423,6 +5423,16 @@ <h2>Handling duplicate time steps<a class="headerlink" href="#handling-duplicate
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">NameError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">line</span> <span class="mi">1</span>
<span class="ne">----&gt; </span><span class="mi">1</span> <span class="n">drop_product_id_ls</span> <span class="o">=</span> <span class="n">asf_duplicates</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">acq_date</span> <span class="o">=</span> <span class="n">drop_ls</span><span class="p">)</span><span class="o">.</span><span class="n">product_id</span><span class="o">.</span><span class="n">data</span>

<span class="ne">NameError</span>: name &#39;asf_duplicates&#39; is not defined
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 20b91ef

Please sign in to comment.