Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Replacing jp2 references in the tutorial (#84) #170

Merged
merged 1 commit into from May 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions geedocs/answer/2760298.html
Expand Up @@ -69,11 +69,11 @@ <h3>To create a Google Maps raster background:</h3>
</li>
<li>Create the blue background tiles:
<ul>
<li>Create the A1 tile for the ocean in the right size and in the Google Maps shade of blue. The NASA <code>.jp2</code> geospatial image file is already the right size, so you can just edit its color layers to create a tile with the Google Maps RGB value of 153,179,204:<br/>
<li>Create the A1 tile for the ocean in the right size and in the Google Maps shade of blue. The NASA <code>.tif</code> geospatial image file is already the right size, so you can just edit its color layers to create a tile with the Google Maps RGB value of 153,179,204:<br/>
<br/>
<code>gdal_translate -b 1 -scale 0 255 153 153 world-topo-bathy-200407-3x21600x21600-A1.jp2 red.tif<br/>
gdal_translate -b 1 -scale 0 255 179 179 world-topo-bathy-200407-3x21600x21600-A1.jp2 green.tif<br/>
gdal_translate -b 1 -scale 0 255 204 204 world-topo-bathy-200407-3x21600x21600-A1.jp2 blue.tif</code><br/>
<code>gdal_translate -b 1 -scale 0 255 153 153 world-topo-bathy-200407-3x21600x21600-A1.tif red.tif<br/>
gdal_translate -b 1 -scale 0 255 179 179 world-topo-bathy-200407-3x21600x21600-A1.tif green.tif<br/>
gdal_translate -b 1 -scale 0 255 204 204 world-topo-bathy-200407-3x21600x21600-A1.tif blue.tif</code><br/>
 </li>
<li>Merge the layers to form a 3-band <code>.tif</code> file called <code>GoogleBlueA1.tif:</code><br/>
<br/>
Expand Down
10 changes: 5 additions & 5 deletions geedocs/answer/4412443.html
Expand Up @@ -81,7 +81,7 @@ <h3><a name="ExpImgRes"></a>Explore Imagery Source Files</h3>
<h4>To explore imagery source files:</h4>
<ol class="spaced-list">
<li>Click the <strong>Open</strong> icon: <img alt="Open Icon" src="../art/fusion/tutorial/iconOpenFile.png"/>.</li>
<li>Select <code>/opt/google/share/tutorials/fusion/Imagery/usgsLanSat.jp2</code> and click <strong>Open</strong>.
<li>Select <code>/opt/google/share/tutorials/fusion/Imagery/usgsLanSat.tif</code> and click <strong>Open</strong>.
<p>The image name appears in the Preview List pane. This is called a <em>layer</em> (an individual source file or resource).</p>
<img alt="Layer in the Preview List" src="../art/fusion/tutorial/previewList.png"/></li>
<li>Select the layer's checkbox.
Expand Down Expand Up @@ -128,7 +128,7 @@ <h4>To define an imagery resource:</h4>
<li>Click <strong>Add</strong>.
<p>The Open Source dialog opens to the <code>/opt/google/share/tutorials/fusion/Imagery</code> folder.</p>
<img alt="Open Source Dialog " src="../art/fusion/tutorial/imageryOpen-BM.png"/></li>
<li>Select the <code>bluemarble_4km.jp2</code> file, and click <strong>Open</strong>.</li>
<li>Select the <code>bluemarble_4km.tif</code> file, and click <strong>Open</strong>.</li>
<li>Select <strong>File &gt; Save</strong> and navigate to the <code>/ASSET_ROOT/Resources/Imagery</code> folder you created in the previous chapter.</li>
<li>Enter the name <strong>BlueMarble</strong> for the resource, and click <strong>Save</strong>.</li>
</ol>
Expand Down Expand Up @@ -184,7 +184,7 @@ <h3><a name="DefBuildRemImgRes"></a>Define and Build the Remaining Imagery Resou
<td><strong>Auto Mask</strong><br/>
<strong>Tolerance</strong>: 2<br/>
Default for all other mask values.</td>
<td><code>usgsLanSat.jp2</code></td>
<td><code>usgsLanSat.tif</code></td>
</tr>
<tr>
<td><strong>i3_15Meter_20041010</strong></td>
Expand Down Expand Up @@ -280,7 +280,7 @@ <h4>To define a terrain resource:</h4>
<li>Set the acquisition date to today’s date in year-month-day format by clicking each section of the date and enter the values.</li>
<li>Select <strong>USGS Terrain </strong>from the Provider drop-down list.</li>
<li>Set the Mask Type (under Mask Options) to <strong>Have Mask</strong>.
<p>The mask file for your import must be located in the same folder as the source file, and the file name must match the name of the source file with <code>-mask</code> appended. For example, in the tutorial files provided, the source file is called <code>gtopo30_4km.jp2</code>, and its mask file is named <code>gtopo30_4km-mask.tif</code>. Google Earth Enterprise Fusion automatically applies the mask file by reference to the source file.</p>
<p>The mask file for your import must be located in the same folder as the source file, and the file name must match the name of the source file with <code>-mask</code> appended. For example, in the tutorial files provided, the source file is called <code>gtopo30_4km.tif</code>, and its mask file is named <code>gtopo30_4km-mask.tif</code>. Google Earth Enterprise Fusion automatically applies the mask file by reference to the source file.</p>
<div class="note">
<p><strong>Note:</strong> You can use the <strong>Have Mask</strong> option for resources that contain one source file only.</p>
</div>
Expand All @@ -289,7 +289,7 @@ <h4>To define a terrain resource:</h4>
<li>Click <strong>Add</strong>.
<p>The Open Source dialog opens to the <code>/opt/google/share/tutorials/fusion/Terrain</code> folder.</p>
</li>
<li>Select <strong>gtopo30_4km.jp2</strong>, and click <strong>Open</strong>.
<li>Select <strong>gtopo30_4km.tif</strong>, and click <strong>Open</strong>.
<p><img alt="Open Terrain Resource" src="../art/fusion/tutorial/terrainResOpen1.png"/></p>
<p>The selected file appears on the Source File(s) list.</p>
</li>
Expand Down
6 changes: 3 additions & 3 deletions geedocs/answer/4412458.html
Expand Up @@ -52,7 +52,7 @@ <h2>Building a Historical Imagery Project</h2>
historical imagery browsing.</td>
<td>NASA Imagery</td>
<td><strong>No Mask</strong></td>
<td><code>bluemarble_4km.jp2</code></td>
<td><code>bluemarble_4km.tif</code></td>
</tr>
<tr>
<td><strong>SFBayAreaLanSat_20021010</strong></td>
Expand All @@ -61,7 +61,7 @@ <h2>Building a Historical Imagery Project</h2>
<td><strong>Auto Mask</strong><br/>
<strong>Tolerance</strong>: 2<br/>
Default for all other mask values.</td>
<td><code>usgsLanSat.jp2</code></td>
<td><code>usgsLanSat.tif</code></td>
</tr>
<tr>
<td><strong>i3_15Meter_20041010</strong></td>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h2>Building a Historical Imagery Project</h2>
<p><img alt="Historical Image From Oct 10 2006" src="../art/fusion/tutorial/EC_Historical2.png"/></p>
<div class="footer">
<p class="BackToTop"><a href="#top_of_file">Back to top</a>

<hr />
</p>
<p class="copyright">&copy;2015 Google</p>
Expand Down
6 changes: 3 additions & 3 deletions geedocs/answer/4412690.html
Expand Up @@ -39,9 +39,9 @@ <h2>Sample Data Files</h2>
<li><a href="#Vector">Vector</a></li>
</ul>
<hr><h2><a name="Imagery"></a>Imagery</h2>
<pre>bluemarble_4km.jp2
<pre>bluemarble_4km.tif
i3SF15-meter.tif
usgsLanSat.jp2
usgsLanSat.tif
usgsSFHiRes.tif

<strong>SF_grayscale</strong>
Expand Down Expand Up @@ -84,7 +84,7 @@ <h2>Sample Data Files</h2>
o37122f4sw_1.tfw</span>
</pre>
<hr><h2><a name="Terrain"></a>Terrain</h2>
<pre>gtopo30_4km.jp2
<pre>gtopo30_4km.tif
gtopo30_4km-mask.tif
SF_terrain.tif</pre>
<hr><h2><a name="Vector"></a>Vector</h2>
Expand Down
20 changes: 10 additions & 10 deletions geedocs/answer/4525555.html
Expand Up @@ -265,7 +265,7 @@ <h2><a id="h.wlmas2-m402u4" name="h.wlmas2-m402u4"></a>gepolymaskgen command usa
</li>
<li><strong>Specify the output mask</strong>
<ul class="spaced-list">
<li><strong><code>--output_mask</code></strong>: the folder path location and filename <code>gepolymaskgen</code> is to write the finished mask file. The completed mask file to import with GEE Fusion Pro must have the same filename as the source file with a <code>-mask.tif</code> extension. For example, if the source file is <code>brazil-squareimage-nofill.jp2</code> the mask file must be named <code>brazil-squareimage-nofill-mask.tif</code>. Only one <code>--output_mask</code> may be specified per <code>gepolymaskgen </code>operation.</li>
<li><strong><code>--output_mask</code></strong>: the folder path location and filename <code>gepolymaskgen</code> is to write the finished mask file. The completed mask file to import with GEE Fusion Pro must have the same filename as the source file with a <code>-mask.tif</code> extension. For example, if the source file is <code>brazil-squareimage-nofill.tif</code> the mask file must be named <code>brazil-squareimage-nofill-mask.tif</code>. Only one <code>--output_mask</code> may be specified per <code>gepolymaskgen </code>operation.</li>
</ul>
<p>As an example, this <code>gepolymaskgen</code> invocation will create a zero-feather mask file that edge-matches source data:</p>
<p><code>gepolymaskgen --feather 0 --feather_border 0 --base_image brazil-squareimage-nofill.khvr --invert --output_mask brazil-squareimage-nofill-mask.tif</code></p>
Expand Down Expand Up @@ -814,10 +814,10 @@ <h4>Merged mask built with gepolymaskgen with feathered edge and internal image
<hr/>
<h3><a id="h.6wiupq-gddwoq" name="h.6wiupq-gddwoq"></a>Case 5: Building custom masks with both gemaskgen and gepolymaskgen</h3>
<p>There are special cases where the capabilities of both <code>gemaskgen</code> and <code>gepolymaskgen</code> are needed to build a custom mask file for an image resource. The SFBayAreaLansat imagery from the Google Earth Enterprise Fusion Pro Tutorial is a good example (screenshot below).</p>
<h4>Screenshot of the usgsLanSat.jp2 source file imported into Fusion Pro viewed with no mask. Note the areas of fill data surrounding the imagery: </h4>
<p><img alt="usgsLanSat.jp2 in Fusion pro with no mask" src="../art/custom_masks/image19.jpg"/></p>
<h4>Screenshot of the usgsLanSat.jp2 imagery after being imported into Fusion Pro with a mask automatically computed:</h4>
<p><img alt="usgsLanSat.jp2 in Fusion pro with a mask" src="../art/custom_masks/image15.jpg"/></p>
<h4>Screenshot of the usgsLanSat.tif source file imported into Fusion Pro viewed with no mask. Note the areas of fill data surrounding the imagery: </h4>
<p><img alt="usgsLanSat.tif in Fusion pro with no mask" src="../art/custom_masks/image19.jpg"/></p>
<h4>Screenshot of the usgsLanSat.tif imagery after being imported into Fusion Pro with a mask automatically computed:</h4>
<p><img alt="usgsLanSat.tif in Fusion pro with a mask" src="../art/custom_masks/image15.jpg"/></p>
<h4>Screenshot of the imported SFBayAreaLanSat image resource in Fusion after the custom mask is created:</h4>
<p><img alt="SFBayAreaLanSat image in fusion with custom mask" src="../art/custom_masks/image12.jpg"/></p>
<p>Here, the Fusion Pro automask function is needed to build a mask for the source imagery to mask all Fill Data; however, the imagery also includes imagery for the water which should be, ideally, masked to the coastline. Both <code>gemaskgen</code> and <code>gepolymaskgen</code> will be needed to accomplish this type of masking situation to build a mask hiding fill data within the image and then creating a coastline mask. This example is a special case since the source imagery must be imported into Fusion format first, then the custom mask will be generated from the output of the imagery resource build process. This example will also utilize information found in Appendixes <a href="#h.h6hjk6-u3u8xg">B</a>, <a href="#h.o23346-tgkrx4">C</a> and <a href="#h.p9e53m-jf2wqc">D</a> for locating masks built with <code>gemaskgen</code>. </p>
Expand Down Expand Up @@ -935,7 +935,7 @@ <h3><a id="h.482jhk-rn8tuq" name="h.482jhk-rn8tuq"></a>Example 1: Enable havemas
<ol class="spaced-list">
<li>Move the custom mask file to the same folder as the source file for the image.</li>
<li>Rename the custom mask file to be the same filename as the source image file with a <code>-mask.tif</code> extension.<br/>
<p> For example: If the <code>/gevol/src/imagery/example.jp2</code> is the source file, then the custom mask must be </p>
<p> For example: If the <code>/gevol/src/imagery/example.tif</code> is the source file, then the custom mask must be </p>
<p><code>/gevol/src/imagery/example-mask.tif</code></p>
</li>
<li>Load the Fusion GUI Asset Manager:
Expand All @@ -955,7 +955,7 @@ <h3><a id="h.4ca70y-vkbi43" name="h.4ca70y-vkbi43"></a>Example 2: Enable havemas
<li>Move the custom mask file to the same folder as the source file for the image.</li>
<li>Rename the custom mask file to be the same filename as the source image file with a <code>-mask.tif</code> extension.
<p> For example if the:</p>
<p> <code>/gevol/src/imagery/example.jp2</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example.tif</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example-mask.tif</code></p>
</li>
<li>On the command line, enter:
Expand All @@ -973,7 +973,7 @@ <h3><a id="h.mzywb6-etqfmz" name="h.mzywb6-etqfmz"></a>Example 3: Enable havemas
<li>Move the custom mask file to the same folder as the source file for the image.</li>
<li>Rename the custom mask file to be the same filename as the source image file with a <code>-mask.tif</code> extension.
<p>For example if the: </p>
<p> <code>/gevol/src/imagery/example.jp2</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example.tif</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example-mask.tif</code></p>
</li>
<li>Load the Fusion GUI Asset Manager:
Expand All @@ -993,7 +993,7 @@ <h3><a id="h.utxsvs-euyjjd" name="h.utxsvs-euyjjd"></a>Example 4: Enable havemas
<li>Move the custom mask file to the same folder as the source file for the image.</li>
<li>Rename the custom mask file to be the same filename as the source image file with a <code>-mask.tif</code> extension.
<p>For example if the: </p>
<p> <code>/gevol/src/imagery/example.jp2</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example.tif</code> is the source file, then the custom mask must be: </p>
<p> <code>/gevol/src/imagery/example-mask.tif</code></p>
</li>
<li>On the command line, enter:
Expand Down Expand Up @@ -1124,7 +1124,7 @@ <h4>SFBayAreaLanSat image resource with automasking only:</h4>
<li>Brush out the entire San Francisco Bay to remove the bay coastline mask
<p><img alt="bay coastline mark removed" src="../art/custom_masks/image04.jpg"/></p>
</li>
<li>Save the updated mask file to the same folder location as the <code>usgsLanSat.jp2</code> source image file for the SFBayAreaLanSat image resource<code> - /opt/google/share/tutorials/fusion/Imagery</code></li>
<li>Save the updated mask file to the same folder location as the <code>usgsLanSat.tif</code> source image file for the SFBayAreaLanSat image resource<code> - /opt/google/share/tutorials/fusion/Imagery</code></li>
<br/>
<li>Modify the SFBayAreaLanSat image resource to enable the <code>HaveMask</code> mask mode.
<p>Please see <a href="#h.wwsxau-f5geku">Appendix A</a>, Examples <a href="#h.mzywb6-etqfmz">3</a> and <a href="#h.utxsvs-euyjjd">4</a> for further details.</p>
Expand Down
6 changes: 3 additions & 3 deletions geedocs/answer/6062318.html
Expand Up @@ -60,12 +60,12 @@ <h2>Example Usage</h2>
<p>This end-to-end example uses <code>gevirtualraster</code> to create a new Fusion resource from a set of 800+ contiguous imagery resources (jpeg2000) with consistent pixel size, projection, etc.</p>
<ol class="spaced-list">
<li>List the jpeg2000 files that are to be used for the virtual mosaic:
<p><code>$ ls -l *.jp2 | wc -l</code></p>
<p><code>$ ls -l *.tif | wc -l</code></p>
<p>863</p>
</li>
</ol>
<li>Create a virtual raster file, specifiying the fill value to be used for the mosaic (<code>0,0,0 = black</code>), the name of the file to be generated (<code>my_virtualmosaic_20140624_1.khvr</code>), and include all of the <code>.jp2</code> files in the current folder as input.
<p><code>$ gevirtualraster --fill 0,0,0 --tolerance 3 -o my_virtualmosaic_20140624_1.khvr *.jp2</code></p>
<li>Create a virtual raster file, specifiying the fill value to be used for the mosaic (<code>0,0,0 = black</code>), the name of the file to be generated (<code>my_virtualmosaic_20140624_1.khvr</code>), and include all of the <code>.tif</code> files in the current folder as input.
<p><code>$ gevirtualraster --fill 0,0,0 --tolerance 3 -o my_virtualmosaic_20140624_1.khvr *.tif</code></p>
</li>
<li>Import the virtual raster imagery file into Fusion, specifying the resource type, the virtual raster file to import and the output resource file, <code>$ my_virtualmosaic_20140624.kip</code>.
<p><code>gerasterimport --imagery my_virtualmosaic_20140624_1.khvr -o my_virtualmosaic_20140624.kip</code></p>
Expand Down