Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonny Schäfer
radolan
Commits
dd9ce6a6
Commit
dd9ce6a6
authored
Nov 13, 2017
by
Jonny Schäfer
Browse files
Only draw grid if its type was identified
parent
1fa92e18
Changes
1
Show whitespace changes
Inline
Side-by-side
radolan2png/radolan2png.go
View file @
dd9ce6a6
...
...
@@ -5,11 +5,11 @@ package main
import
(
"fmt"
"gitlab.cs.fau.de/since/radolan"
"image/color"
"image/png"
"log"
"os"
"gitlab.cs.fau.de/since/radolan"
)
var
(
...
...
@@ -51,6 +51,7 @@ func convert(in, out string) {
img
:=
comp
.
Image
(
heatmap
)
// draw borders
if
comp
.
HasProjection
{
for
_
,
b
:=
range
border
{
// convert border points to data indices
x
,
y
:=
comp
.
Translate
(
b
[
0
],
b
[
1
])
...
...
@@ -68,6 +69,7 @@ func convert(in, out string) {
}
}
}
}
// create output file
outfile
,
err
:=
os
.
Create
(
out
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment