Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 5d8a0ed

Browse files
committed
draft of next website
1 parent 3071c7a commit 5d8a0ed

41 files changed

Lines changed: 4201 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

TileComputationObserver.xhtml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml"
4+
xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
6+
<head>
7+
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
8+
<title>${docTitle}</title>
9+
<style type="text/css">
10+
p, td, li {
11+
font-size: x-small;
12+
line-height: 140%;
13+
font-family: Helvetica, Arial, sans-serif;
14+
letter-spacing: 0.1em;
15+
word-spacing: 0.3em;
16+
}
17+
</style>
18+
</head>
19+
20+
<body>
21+
22+
<h1>${docTitle}</h1>
23+
24+
<!--
25+
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object>
26+
<?import namespace="svg" urn="http://www.w3.org/2000/svg" implementation="#AdobeSVG"?>
27+
-->
28+
29+
<table>
30+
<tr>
31+
<th>ID</th>
32+
<th>Dup</th>
33+
<th>Product</th>
34+
<th>Operator</th>
35+
<th>Band</th>
36+
<th>Image</th>
37+
<th>TileX</th>
38+
<th>TileY</th>
39+
<th>Start(s)</th>
40+
<th>Duration(s)</th>
41+
<th>Thread</th>
42+
<th>Chart (${totalTime} s)</th>
43+
</tr>
44+
</table>
45+
46+
</body>
47+
48+
</html>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package org.esa.beam;
2+
3+
import com.bc.ceres.core.ProgressMonitor;
4+
import org.esa.beam.framework.dataio.ProductIO;
5+
import org.esa.beam.framework.datamodel.Band;
6+
import org.esa.beam.framework.datamodel.ImageInfo;
7+
import org.esa.beam.framework.datamodel.Product;
8+
import org.esa.beam.util.ProductUtils;
9+
10+
import javax.imageio.ImageIO;
11+
import java.awt.image.BufferedImage;
12+
import java.io.File;
13+
import java.io.IOException;
14+
15+
/**
16+
* @author Marco Peters
17+
*/
18+
public class ImageExportMain {
19+
20+
public static void main(String[] args) {
21+
22+
String[] rgbBandNames = new String[3];
23+
rgbBandNames[0] = "radiance_3";
24+
rgbBandNames[1] = "radiance_2";
25+
rgbBandNames[2] = "radiance_1";
26+
27+
try {
28+
Product inputProduct = ProductIO.readProduct(args[0]);
29+
// Product inputProduct = ProductIO.readProduct("G:\\EOData\\ALOS\\AVNIR2\\AV2_MMC_FR__0000091001\\VOL-ALAV2A038712630-O1B2G_U");
30+
System.out.println(inputProduct);
31+
Band[] produtBands = inputProduct.getBands();
32+
Band[] rgbBands = new Band[3];
33+
34+
int n = 0;
35+
for (Band band : produtBands) {
36+
37+
if (band.getName().equals(rgbBandNames[0])) {
38+
rgbBands[0] = band;
39+
} else if (band.getName().equals(rgbBandNames[1])) {
40+
rgbBands[1] = band;
41+
} else if (band.getName().equals(rgbBandNames[2])) {
42+
rgbBands[2] = band;
43+
}
44+
45+
n = n + 1;
46+
}
47+
48+
ImageInfo outImageInfo = ProductUtils.createImageInfo(rgbBands, true, ProgressMonitor.NULL);
49+
BufferedImage outImage = ProductUtils.createRgbImage(rgbBands, outImageInfo, ProgressMonitor.NULL);
50+
51+
final File outputFile = new File(inputProduct.getName() + ".png");
52+
ImageIO.write(outImage, "PNG", outputFile);
53+
54+
} catch (IOException e) {
55+
System.err.println("Error: " + e.getMessage());
56+
}
57+
}
58+
59+
}

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site/
2+
.sass-cache/

docs/LICENSE.txt

Lines changed: 63 additions & 0 deletions
Large diffs are not rendered by default.

docs/README.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This is a Jekyll web page template, named Linear (http://themes.jekyllrc.org/linear).
2+
3+
4+
Run jekyll in on linux in docs folder:
5+
6+
> jekyll serve
7+
8+
This will build the pages and start-up a webserver which hosts the page.

docs/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: BEAM
2+
description: BEAM Project Website
3+
paginate: 10

docs/_includes/nav.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div id="nav-wrapper">
2+
<!-- Nav -->
3+
<nav id="nav">
4+
<ul>
5+
{% assign current = page.url | downcase | split: '/' %}
6+
<li {% if current[1] == 'index.html' %}class='current'{% endif %}><a href="/index.html">Home</a></li>
7+
<li {% if current[1] == 'about.html' %}class='current'{% endif %}><a href="/about.html">About</a></li>
8+
<li {% if current[1] == 'download.html' %}class='current'{% endif %}><a href="/download.html">Download</a></li>
9+
</ul>
10+
</nav>
11+
</div>

docs/_includes/sidebar.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
<!-- Sidebar -->
3+
<div id="sidebar" class="4u">
4+
<section>
5+
<header>
6+
<h2>Etiam malesuada</h2>
7+
</header>
8+
<div class="row">
9+
<section class="6u">
10+
<ul class="default">
11+
<li><a href="#">Donec facilisis tempor</a></li>
12+
<li><a href="#">Nulla convallis cursus</a></li>
13+
<li><a href="#">Integer congue euismod</a></li>
14+
<li><a href="#">Venenatis vulputate</a></li>
15+
<li><a href="#">Morbi ligula volutpat</a></li>
16+
</ul>
17+
</section>
18+
<section class="6u">
19+
<ul class="default">
20+
<li><a href="#">Donec facilisis tempor</a></li>
21+
<li><a href="#">Nulla convallis cursus</a></li>
22+
<li><a href="#">Integer congue euismod</a></li>
23+
<li><a href="#">Venenatis vulputate</a></li>
24+
<li><a href="#">Morbi ligula volutpat</a></li>
25+
</ul>
26+
</section>
27+
</div>
28+
</section>
29+
<section>
30+
<header>
31+
<h2>Recent Blog Posts</h2>
32+
</header>
33+
<ul class="style">
34+
{% for post in site.posts offset: 0 limit: 2 %}
35+
<li>
36+
<p class="posted">{{ post.date | date_to_string }} | (10 ) Comments</p>
37+
<p><a href="{{ site.prefix }}{{ post.url }}">{{ post.excerpt | remove: '<p>' | remove: '</p>' }}</a></p>
38+
</li>
39+
{% endfor %}
40+
</ul>
41+
</section>
42+
</div>
43+

docs/_layouts/default.html

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<!DOCTYPE HTML>
2+
<!--
3+
Linear by TEMPLATED
4+
templated.co @templatedco
5+
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
6+
-->
7+
<html>
8+
<head>
9+
<title>ESA BEAM</title>
10+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
11+
<meta name="description" content="Project page fo ESA BEAM" />
12+
<meta name="keywords" content="ESA BEAM Remote Sensing" />
13+
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,700,500,900' rel='stylesheet' type='text/css'>
14+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
15+
<script src="/assets/js/skel.min.js"></script>
16+
<script src="/assets/js/skel-panels.min.js"></script>
17+
<script src="/assets/js/init.js"></script>
18+
<noscript>
19+
<link rel="stylesheet" href="/assets/css/skel-noscript.css" />
20+
<link rel="stylesheet" href="/assets/css/style.css" />
21+
<link rel="stylesheet" href="/assets/css/style-desktop.css" />
22+
</noscript>
23+
</head>
24+
<body>
25+
26+
<!-- Header -->
27+
<div id="header">
28+
{% include nav.html %}
29+
<div class="container">
30+
31+
<!-- Logo -->
32+
<div id="logo">
33+
<h1><a href="#">BEAM</a></h1>
34+
<span class="tag">Earth Observation Toolbox and Development Platform</span>
35+
</div>
36+
</div>
37+
</div>
38+
<!-- Header -->
39+
{{ content }}
40+
41+
<!-- Tweet -->
42+
<div id="tweet">
43+
<div class="container">
44+
<section>
45+
<blockquote>&ldquo;We are looking back on 12 years of pleasure and fun developing SNAP.&rdquo;</blockquote>
46+
</section>
47+
</div>
48+
</div>
49+
50+
51+
<!-- Footer -->
52+
<div id="footer">
53+
<div class="container">
54+
<section>
55+
<header>
56+
<h2>Get in touch</h2>
57+
</header>
58+
<ul class="contact">
59+
<li><a href="mailto:beam@brockmann-consult.de" class="fa fa-envelope"><span>Mail</span></a><br>Mail</li>
60+
<li class="active"><a href="http://forum.step.esa.int" class="fa fa-bullhorn"><span>SNAP Forum</span></a><br>SNAP Forum</li>
61+
</ul>
62+
</section>
63+
</div>
64+
</div>
65+
66+
<!-- Copyright -->
67+
<div id="copyright">
68+
<div class="container">
69+
This web page is based on:<br>
70+
Jekyll Template: <a href="http://themes.jekyllrc.org/linear">Linear</a> desgined by <a href="http://templated.co">TEMPLATED</a>
71+
Images: <a href="http://unsplash.com">Unsplash</a>
72+
</div>
73+
</div>
74+
75+
</body>
76+
</html>

docs/_layouts/post.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
---
4+
<!-- Main -->
5+
<div id="main">
6+
<div id="content" class="container">
7+
<div class="row">
8+
<section class="8u -2u">
9+
<a href="{{ site.prefix }}{{ page.url }}" class="image full"><img src="/assets/{{ page.featured }}" alt=""></a>
10+
<header>
11+
<h2>{{ page.title }}</h2>
12+
</header>
13+
{{ page.content }}
14+
</section>
15+
</div>
16+
</div>
17+
</div>

0 commit comments

Comments
 (0)