Skip to content

Commit

Permalink
fix conda install
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialthoughts committed Jul 26, 2024
1 parent 86945c5 commit 6e80dc3
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 51 deletions.
95 changes: 48 additions & 47 deletions docs/gdal-tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</style>
<style type="text/css" data-origin="pandoc">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
Expand All @@ -74,7 +74,7 @@
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
Expand Down Expand Up @@ -662,12 +662,13 @@ <h3>Windows</h3>
</blockquote>
<p><img src="images/gdal/condawin1.png" width="75%" style="display: block; margin: auto;" /></p>
<ol start="2" style="list-style-type: decimal">
<li>Activate the environment and install the <code>gdal</code> package.
<li>Activate the environment and install the <code>gdal</code> package
along with the jp2 format driver <code>libgdal-jp2openjpeg</code>. .
When prompted to confirm, type <code>y</code> and press
<em>Enter</em>.</li>
</ol>
<pre><code>conda activate gdal
conda install -c conda-forge gdal</code></pre>
conda install -c conda-forge gdal libgdal-jp2openjpeg</code></pre>
<p><img src="images/gdal/condawin2.png" width="75%" style="display: block; margin: auto;" /></p>
<ol start="3" style="list-style-type: decimal">
<li>Once the installation finishes, verify if you are able to run the
Expand All @@ -692,12 +693,12 @@ <h3>Mac/Linux</h3>
<pre><code>conda create --name gdal</code></pre>
<p><img src="images/gdal/condamac1.png" width="75%" style="display: block; margin: auto;" /></p>
<ol start="2" style="list-style-type: decimal">
<li>Activate the environment and install the <code>gdal</code> package.
When prompted to confirm, type <code>y</code> and press
<em>Enter</em>.</li>
<li>Activate the environment and install the <code>gdal</code> package,
along with the jp2 format driver <code>libgdal-jp2openjpeg</code>. When
prompted to confirm, type <code>y</code> and press <em>Enter</em>.</li>
</ol>
<pre><code>conda activate gdal
conda install -c conda-forge gdal</code></pre>
conda install -c conda-forge gdal libgdal-jp2openjpeg</code></pre>
<p><img src="images/gdal/condamac2.png" width="75%" style="display: block; margin: auto;" /></p>
<ol start="3" style="list-style-type: decimal">
<li>Once the installation finishes, verify if you are able to run the
Expand Down Expand Up @@ -785,54 +786,54 @@ <h3>Windows</h3>
<col width="28%" />
</colgroup>
<thead>
<tr class="header">
<tr>
<th align="left"><strong>Command</strong></th>
<th align="left"><strong>Description</strong></th>
<th align="left"><strong>Example</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<tr>
<td align="left"><code>cd</code></td>
<td align="left">Change directory</td>
<td align="left"><code>cd Downloads\gdal-tools</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>cd ..</code></td>
<td align="left">Change to the parent directory</td>
<td align="left"><code>cd ..</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>dir</code></td>
<td align="left">List files in the current directory</td>
<td align="left"><code>dir</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>del</code></td>
<td align="left">Delete a file</td>
<td align="left"><code>del test.txt</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>rmdir</code></td>
<td align="left">Delete a directory</td>
<td align="left"><code>rmdir /s test</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>mkdir</code></td>
<td align="left">Create a directory</td>
<td align="left"><code>mkdir test</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>type</code></td>
<td align="left">Print the contents of a file</td>
<td align="left"><code>type test.txt</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>&gt; output.txt</code></td>
<td align="left">Redirect the output to a file</td>
<td align="left"><code>dir /b &gt; test.txt</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>cls</code></td>
<td align="left">Clear screen</td>
<td align="left"><code>cls</code></td>
Expand All @@ -849,54 +850,54 @@ <h3>Mac/Linux</h3>
<col width="28%" />
</colgroup>
<thead>
<tr class="header">
<tr>
<th align="left"><strong>Command</strong></th>
<th align="left"><strong>Description</strong></th>
<th align="left"><strong>Example</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<tr>
<td align="left"><code>cd</code></td>
<td align="left">Change directory</td>
<td align="left"><code>cd Downloads/gdal-tools</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>cd ..</code></td>
<td align="left">Change to the parent directory</td>
<td align="left"><code>cd ..</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>ls</code></td>
<td align="left">List files in the current directory</td>
<td align="left"><code>ls</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>rm</code></td>
<td align="left">Delete a file</td>
<td align="left"><code>rm test.txt</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>rm -R</code></td>
<td align="left">Delete a directory</td>
<td align="left"><code>rm -R test</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>mkdir</code></td>
<td align="left">Create a directory</td>
<td align="left"><code>mkdir test</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>cat</code></td>
<td align="left">Print the contents of a file</td>
<td align="left"><code>cat test.txt</code></td>
</tr>
<tr class="even">
<tr>
<td align="left"><code>&gt; output.txt</code></td>
<td align="left">Redirect the output to a file</td>
<td align="left"><code>ls &gt; test.txt</code></td>
</tr>
<tr class="odd">
<tr>
<td align="left"><code>clear</code></td>
<td align="left">Clear screen</td>
<td align="left"><code>clear</code></td>
Expand Down Expand Up @@ -1301,29 +1302,29 @@ <h2>1.4 Processing Satellite Imagery</h2>
bands from a single landsat-8 scene.</p>
<table>
<thead>
<tr class="header">
<tr>
<th align="left"><strong>Band Number</strong></th>
<th align="left"><strong>Band Name</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<tr>
<td align="left">B2</td>
<td align="left">Blue</td>
</tr>
<tr class="even">
<tr>
<td align="left">B3</td>
<td align="left">Green</td>
</tr>
<tr class="odd">
<tr>
<td align="left">B4</td>
<td align="left">Red</td>
</tr>
<tr class="even">
<tr>
<td align="left">B5</td>
<td align="left">Near Infrared</td>
</tr>
<tr class="odd">
<tr>
<td align="left">B8</td>
<td align="left">Panchromatic</td>
</tr>
Expand Down Expand Up @@ -1654,39 +1655,39 @@ <h3>1.6.2 Georeferencing with GCPs</h3>
<col width="26%" />
</colgroup>
<thead>
<tr class="header">
<tr>
<th align="left"><strong>pixel (column)</strong></th>
<th align="left"><strong>line (row)</strong></th>
<th align="left"><strong>X (Longitude)</strong></th>
<th align="left"><strong>Y (Latitude)</strong></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<tr>
<td align="left">418</td>
<td align="left">893</td>
<td align="left">70</td>
<td align="left">15</td>
</tr>
<tr class="even">
<tr>
<td align="left">380</td>
<td align="left">2432</td>
<td align="left">70</td>
<td align="left">5</td>
</tr>
<tr class="odd">
<tr>
<td align="left">3453</td>
<td align="left">2434</td>
<td align="left">90</td>
<td align="left">5</td>
</tr>
<tr class="even">
<tr>
<td align="left">3407</td>
<td align="left">895</td>
<td align="left">90</td>
<td align="left">15</td>
</tr>
<tr class="odd">
<tr>
<td align="left">2662</td>
<td align="left">911</td>
<td align="left">85</td>
Expand Down Expand Up @@ -2281,33 +2282,33 @@ <h2>Check Supported Formats and Capabilities</h2>
capabilities.</p>
<table>
<thead>
<tr class="header">
<tr>
<th>Abbreviation</th>
<th>Capabilities</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<tr>
<td>r</td>
<td>read</td>
</tr>
<tr class="even">
<tr>
<td>ro</td>
<td>read only</td>
</tr>
<tr class="odd">
<tr>
<td>w</td>
<td>write (create dataset)</td>
</tr>
<tr class="even">
<tr>
<td>w+</td>
<td>write with (support to update)</td>
</tr>
<tr class="odd">
<tr>
<td>s</td>
<td>supports subdatasets</td>
</tr>
<tr class="even">
<tr>
<td>v</td>
<td>supports virtual access - eg. /vsimem/</td>
</tr>
Expand Down
Binary file modified docs/images/gdal/condamac2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/gdal/condamac3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions gdal-tools.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ conda create --name gdal
knitr::include_graphics('images/gdal/condawin1.png')
```

2. Activate the environment and install the `gdal` package. When prompted to confirm, type `y` and press *Enter*.
2. Activate the environment and install the `gdal` package along with the jp2 format driver `libgdal-jp2openjpeg`. . When prompted to confirm, type `y` and press *Enter*.

```
conda activate gdal
conda install -c conda-forge gdal
conda install -c conda-forge gdal libgdal-jp2openjpeg
```


Expand Down Expand Up @@ -121,11 +121,11 @@ conda create --name gdal
knitr::include_graphics('images/gdal/condamac1.png')
```

2. Activate the environment and install the `gdal` package. When prompted to confirm, type `y` and press *Enter*.
2. Activate the environment and install the `gdal` package, along with the jp2 format driver `libgdal-jp2openjpeg`. When prompted to confirm, type `y` and press *Enter*.

```
conda activate gdal
conda install -c conda-forge gdal
conda install -c conda-forge gdal libgdal-jp2openjpeg
```

```{r echo=FALSE, fig.align='center', out.width='75%'}
Expand Down
Binary file modified images/gdal/condamac2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/gdal/condamac3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6e80dc3

Please sign in to comment.