Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
cb01ab71
Commit
cb01ab71
authored
Mar 20, 2019
by
Sergio Adrian Gongora Euan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugs fixed in L2ASCL
parent
b1ab42ec
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
26 deletions
+18
-26
scldata.css
reports/static/reports/css/scldata.css
+8
-1
L2ASCL_data.html
reports/templates/L2ASCL_data.html
+7
-20
sclData.html
reports/templates/sclData.html
+2
-5
views.py
reports/views.py
+1
-0
No files found.
reports/static/reports/css/scldata.css
View file @
cb01ab71
...
@@ -105,7 +105,7 @@ body
...
@@ -105,7 +105,7 @@ body
opacity
:
1
;
opacity
:
1
;
}
}
#
minimap
{
.
minimap
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
margin
:
0
;
margin
:
0
;
...
@@ -113,6 +113,13 @@ body
...
@@ -113,6 +113,13 @@ body
position
:
fixed
;
position
:
fixed
;
}
}
.minimaptabs
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
padding
:
0
;
}
#reportPage
{
#reportPage
{
height
:
940px
!important
;
height
:
940px
!important
;
}
}
...
...
reports/templates/L2ASCL_data.html
View file @
cb01ab71
...
@@ -302,17 +302,9 @@
...
@@ -302,17 +302,9 @@
width=
"375"
width=
"375"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_unclassified.png"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_unclassified.png"
style=
"position: absolute; top: 0; z-index:1;"
>
style=
"position: absolute; top: 0; z-index:1;"
>
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_cloud
_medium_probability"
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_cloud
s"
width=
"375"
width=
"375"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_cloud_medium_probability.png"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_clouds.png"
style=
"position: absolute; top: 0; z-index:1;"
>
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_cloud_high_probability"
width=
"375"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_cloud_high_probability.png"
style=
"position: absolute; top: 0; z-index:1;"
>
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_thin_cirrus"
width=
"375"
height=
"400px"
src=
"../../static/reports/tmpImages/repsat_test_dev/{{ SCL_PATH }}{{ dafaultLabel }}_SCL_60m_thin_cirrus.png"
style=
"position: absolute; top: 0; z-index:1;"
>
style=
"position: absolute; top: 0; z-index:1;"
>
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_snow"
<img
onclick=
"window.open(this.src)"
class=
"img-responsive"
id=
"scl_snow"
width=
"375"
width=
"375"
...
@@ -332,7 +324,7 @@
...
@@ -332,7 +324,7 @@
<h3
class=
"box-title"
>
Map
</h3>
<h3
class=
"box-title"
>
Map
</h3>
</div>
</div>
<div
class=
"box-body"
style=
"max-height: 550px;"
>
<div
class=
"box-body"
style=
"max-height: 550px;"
>
<div
id=
"minimap"
style=
"height: 550
px"
></div>
<div
id=
"minimap"
class=
"minimaptabs"
style=
"height: 547
px"
></div>
</div>
</div>
<!-- /.box-body -->
<!-- /.box-body -->
</div>
</div>
...
@@ -431,14 +423,8 @@
...
@@ -431,14 +423,8 @@
SCLlayers
.
splice
(
SCLlayers
.
indexOf
(
layer
),
1
);
SCLlayers
.
splice
(
SCLlayers
.
indexOf
(
layer
),
1
);
document
.
getElementById
(
"scl_"
+
layer
).
src
=
""
document
.
getElementById
(
"scl_"
+
layer
).
src
=
""
}
}
//if (index > 1) {
// Do the original logic
//console.log("wooooo")
//defaultLegendClickHandler(e, legendItem);
defaultLegendClickHandler
.
call
(
this
,
e
,
legendItem
);
defaultLegendClickHandler
.
call
(
this
,
e
,
legendItem
);
//} else {
// console.log("holaaaa")
//}
};
};
var
label
;
var
label
;
...
@@ -454,6 +440,7 @@
...
@@ -454,6 +440,7 @@
let
endDate
=
"{{ endDate }}"
;
let
endDate
=
"{{ endDate }}"
;
let
clouds
=
"{{ clouds }}"
;
let
clouds
=
"{{ clouds }}"
;
let
oldLabel
=
"{{defaultDataSet}}"
;
let
oldLabel
=
"{{defaultDataSet}}"
;
let
labels
=
{{
labels
}};
var
config
=
{{
graphData
}}
var
config
=
{{
graphData
}}
config
.
options
=
{
config
.
options
=
{
responsive
:
true
,
responsive
:
true
,
...
...
reports/templates/sclData.html
View file @
cb01ab71
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<!-- Content Wrapper. Contains page content -->
<!-- Content Wrapper. Contains page content -->
<!-- Main content -->
<!-- Main content -->
<div
id=
"reportPage"
class=
"wrapper"
style=
"background-color: #ecf0f5"
>
<div
id=
"reportPage"
class=
"wrapper"
style=
"background-color: #ecf0f5"
>
<div
id=
"minimap"
></div>
<div
id=
"minimap"
class=
"minimap"
></div>
<section
class=
"content"
>
<section
class=
"content"
>
<div
class=
"row col-lg-11 title"
>
<div
class=
"row col-lg-11 title"
>
...
@@ -129,10 +129,7 @@
...
@@ -129,10 +129,7 @@
<div
class=
"box box-success"
>
<div
class=
"box box-success"
>
<div
class=
"box-body with-border"
>
<div
class=
"box-body with-border"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-2 text-center"
>
<div
class=
"col-lg-2 text-center col-lg-offset-1"
>
<h4>
Zone: {{ zone }}
</h4>
</div>
<div
class=
"col-lg-2 text-center"
>
<h4>
Platform: {{ platform }}
</h4>
<h4>
Platform: {{ platform }}
</h4>
</div>
</div>
<div
class=
"col-lg-2 text-center"
>
<div
class=
"col-lg-2 text-center"
>
...
...
reports/views.py
View file @
cb01ab71
...
@@ -63,6 +63,7 @@ def report_L2ASCL(request, report, purchase_id):
...
@@ -63,6 +63,7 @@ def report_L2ASCL(request, report, purchase_id):
template
=
"L2ASCL_data.html"
template
=
"L2ASCL_data.html"
reporteDir
=
report
.
replace
(
'_sclData'
,
''
)
reporteDir
=
report
.
replace
(
'_sclData'
,
''
)
reporteDir
+=
"/mask"
absolute_path
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
purchase_id
+
"/out"
absolute_path
=
USERS_PATH
+
request
.
user
.
email
+
"/"
+
purchase_id
+
"/out"
folders
=
os
.
listdir
(
absolute_path
)
folders
=
os
.
listdir
(
absolute_path
)
...
...
Write
Preview
Markdown
is supported
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