Skip to content

Commit

Permalink
Deploy preview for PR 66 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorkowski committed Oct 1, 2024
1 parent aa5b713 commit 89728de
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
30 changes: 15 additions & 15 deletions pr-preview/pr-66/API/particula/data/loader/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10373,7 +10373,7 @@ <h4 id="signature_2">Signature<a class="headerlink" href="#signature_2" title="P
<div class="highlight"><pre><span></span><code><span class="k">def</span> <span class="nf">filter_list</span><span class="p">(</span><span class="n">data</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="n">char_counts</span><span class="p">:</span> <span class="nb">dict</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="general_data_formatter">general_data_formatter<a class="headerlink" href="#general_data_formatter" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L409">Show source in loader.py:409</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L412">Show source in loader.py:412</a></p>
<p>Format and sample data to extract time and data streams.</p>
<h4 id="arguments_3">Arguments<a class="headerlink" href="#arguments_3" title="Permanent link">&para;</a></h4>
<ul>
Expand Down Expand Up @@ -10412,7 +10412,7 @@ <h4 id="signature_3">Signature<a class="headerlink" href="#signature_3" title="P
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="get_files_in_folder_with_size">get_files_in_folder_with_size<a class="headerlink" href="#get_files_in_folder_with_size" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L625">Show source in loader.py:625</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L628">Show source in loader.py:628</a></p>
<p>Returns a list of files in the specified folder and subfolder that
match the given filename pattern and have a size greater than the
specified minimum size.</p>
Expand All @@ -10436,7 +10436,7 @@ <h4 id="signature_4">Signature<a class="headerlink" href="#signature_4" title="P
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">],</span> <span class="n">List</span><span class="p">[</span><span class="nb">int</span><span class="p">]]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="keyword_to_index">keyword_to_index<a class="headerlink" href="#keyword_to_index" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L471">Show source in loader.py:471</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L474">Show source in loader.py:474</a></p>
<p>Convert a keyword representing a column position in the header to
its index.</p>
<p>This function processes a keyword that can either be an integer index
Expand All @@ -10462,7 +10462,7 @@ <h4 id="signature_5">Signature<a class="headerlink" href="#signature_5" title="P
<div class="highlight"><pre><span></span><code><span class="k">def</span> <span class="nf">keyword_to_index</span><span class="p">(</span><span class="n">keyword</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">int</span><span class="p">],</span> <span class="n">header</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="nb">str</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="load_lake">load_lake<a class="headerlink" href="#load_lake" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L906">Show source in loader.py:906</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L909">Show source in loader.py:909</a></p>
<p>Load a lake object by loading individual streams from separate pickle files.</p>
<h4 id="arguments_6">Arguments<a class="headerlink" href="#arguments_6" title="Permanent link">&para;</a></h4>
<ul>
Expand All @@ -10484,7 +10484,7 @@ <h4 id="see-also">See also<a class="headerlink" href="#see-also" title="Permanen
<li><a href="../lake/#lake">Lake</a></li>
</ul>
<h2 id="load_stream">load_stream<a class="headerlink" href="#load_stream" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L795">Show source in loader.py:795</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L798">Show source in loader.py:798</a></p>
<p>Load stream object from a pickle file.</p>
<h2 id="args">Args<a class="headerlink" href="#args" title="Permanent link">&para;</a></h2>
<p>path : str
Expand All @@ -10506,7 +10506,7 @@ <h4 id="see-also_1">See also<a class="headerlink" href="#see-also_1" title="Perm
<li><a href="../stream/#stream">Stream</a></li>
</ul>
<h2 id="netcdf_data_1d_load">netcdf_data_1d_load<a class="headerlink" href="#netcdf_data_1d_load" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1017">Show source in loader.py:1017</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1020">Show source in loader.py:1020</a></p>
<p>Given a netCDF file path and settings, returns a tuple containing the
epoch time, header, and data as a numpy array. We do apply the mask to the
data, and fill the masked values with nan.</p>
Expand All @@ -10526,7 +10526,7 @@ <h4 id="signature_8">Signature<a class="headerlink" href="#signature_8" title="P
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="nb">list</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="netcdf_data_2d_load">netcdf_data_2d_load<a class="headerlink" href="#netcdf_data_2d_load" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1073">Show source in loader.py:1073</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1076">Show source in loader.py:1076</a></p>
<p>Given a netCDF file path and settings, returns a tuple containing the
epoch time, header, and data as a numpy array. We do apply the mask to the
data, and fill the masked values with nan.</p>
Expand All @@ -10546,7 +10546,7 @@ <h4 id="signature_9">Signature<a class="headerlink" href="#signature_9" title="P
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="nb">list</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="netcdf_get_epoch_time">netcdf_get_epoch_time<a class="headerlink" href="#netcdf_get_epoch_time" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L991">Show source in loader.py:991</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L994">Show source in loader.py:994</a></p>
<p>Given a netCDF file path and settings, returns an array of epoch times in
seconds as a float.</p>
<p>Currently only uses ARM 1.2 netCDF files (base_time + time_offset)</p>
Expand All @@ -10563,7 +10563,7 @@ <h4 id="signature_10">Signature<a class="headerlink" href="#signature_10" title=
<div class="highlight"><pre><span></span><code><span class="k">def</span> <span class="nf">netcdf_get_epoch_time</span><span class="p">(</span><span class="n">file_path</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">settings</span><span class="p">:</span> <span class="nb">dict</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="netcdf_info_print">netcdf_info_print<a class="headerlink" href="#netcdf_info_print" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1122">Show source in loader.py:1122</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L1125">Show source in loader.py:1125</a></p>
<p>Prints information about a netCDF file. Useful for generating settings
dictionaries.</p>
<h4 id="arguments_10">Arguments<a class="headerlink" href="#arguments_10" title="Permanent link">&para;</a></h4>
Expand All @@ -10580,7 +10580,7 @@ <h4 id="signature_11">Signature<a class="headerlink" href="#signature_11" title=
<div class="highlight"><pre><span></span><code><span class="k">def</span> <span class="nf">netcdf_info_print</span><span class="p">(</span><span class="n">file_path</span><span class="p">,</span> <span class="n">file_return</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span> <span class="o">...</span>
</code></pre></div>
<h2 id="non_standard_date_location">non_standard_date_location<a class="headerlink" href="#non_standard_date_location" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L597">Show source in loader.py:597</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L600">Show source in loader.py:600</a></p>
<p>Extracts the date from a non-standard location in the data.</p>
<h4 id="arguments_11">Arguments<a class="headerlink" href="#arguments_11" title="Permanent link">&para;</a></h4>
<ul>
Expand Down Expand Up @@ -10636,7 +10636,7 @@ <h4 id="signature_13">Signature<a class="headerlink" href="#signature_13" title=
<span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">float</span><span class="p">:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="sample_data">sample_data<a class="headerlink" href="#sample_data" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L250">Show source in loader.py:250</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L253">Show source in loader.py:253</a></p>
<p>Extract time and data streams from input data.</p>
<h4 id="arguments_13">Arguments<a class="headerlink" href="#arguments_13" title="Permanent link">&para;</a></h4>
<ul>
Expand Down Expand Up @@ -10676,7 +10676,7 @@ <h4 id="signature_14">Signature<a class="headerlink" href="#signature_14" title=
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Tuple</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">]:</span> <span class="o">...</span>
</code></pre></div>
<h2 id="save_lake">save_lake<a class="headerlink" href="#save_lake" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L834">Show source in loader.py:834</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L837">Show source in loader.py:837</a></p>
<p>Save each stream in the lake as separate pickle files.</p>
<h4 id="arguments_14">Arguments<a class="headerlink" href="#arguments_14" title="Permanent link">&para;</a></h4>
<ul>
Expand All @@ -10695,7 +10695,7 @@ <h4 id="see-also_2">See also<a class="headerlink" href="#see-also_2" title="Perm
<li><a href="../lake/#lake">Lake</a></li>
</ul>
<h2 id="save_stream">save_stream<a class="headerlink" href="#save_stream" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L746">Show source in loader.py:746</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L749">Show source in loader.py:749</a></p>
<p>Save stream object as a pickle file.</p>
<h2 id="args_1">Args<a class="headerlink" href="#args_1" title="Permanent link">&para;</a></h2>
<p>stream : Stream
Expand All @@ -10714,7 +10714,7 @@ <h4 id="see-also_3">See also<a class="headerlink" href="#see-also_3" title="Perm
<li><a href="../stream/#stream">Stream</a></li>
</ul>
<h2 id="save_stream_to_csv">save_stream_to_csv<a class="headerlink" href="#save_stream_to_csv" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L673">Show source in loader.py:673</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L676">Show source in loader.py:676</a></p>
<p>Save stream object as a CSV file, with an option to include formatted time.</p>
<h4 id="arguments_15">Arguments<a class="headerlink" href="#arguments_15" title="Permanent link">&para;</a></h4>
<p>stream : Stream
Expand Down Expand Up @@ -10745,7 +10745,7 @@ <h4 id="see-also_4">See also<a class="headerlink" href="#see-also_4" title="Perm
<li><a href="../stream/#stream">Stream</a></li>
</ul>
<h2 id="sizer_data_formatter">sizer_data_formatter<a class="headerlink" href="#sizer_data_formatter" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L508">Show source in loader.py:508</a></p>
<p><a href="https://github.com/Gorkowski/particula/blob/main/particula/data/loader.py#L511">Show source in loader.py:511</a></p>
<p>Format data from a particle sizer into structured arrays.</p>
<h4 id="arguments_16">Arguments<a class="headerlink" href="#arguments_16" title="Permanent link">&para;</a></h4>
<ul>
Expand Down
Loading

0 comments on commit 89728de

Please sign in to comment.