Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoSentinel
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoSentinel
Commits
ac96614d
Commit
ac96614d
authored
Mar 11, 2021
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import .
parent
4bfd66e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
L2ASCLtoJSON.py
geosentinel/L2ASCLtoJSON.py
+14
-10
No files found.
geosentinel/L2ASCLtoJSON.py
View file @
ac96614d
...
...
@@ -10,22 +10,26 @@ import json
from
collections
import
Counter
#from collections import OrderedDict
########### lee archivo de configuración ################
dirname
=
os
.
path
.
dirname
(
__file__
)
configfile
=
os
.
path
.
join
(
dirname
,
'../config/config.json'
)
###########
#
lee archivo de configuración ################
#
dirname = os.path.dirname(__file__)
#
configfile = os.path.join(dirname, '../config/config.json')
with
open
(
configfile
,
'r'
)
as
f
:
config
=
json
.
load
(
f
)
#
with open(configfile, 'r') as f:
#
config = json.load(f)
#print(config['PATHS']['PATH_GEOSENTINEL'])
#
#
print(config['PATHS']['PATH_GEOSENTINEL'])
SENTINEL_PATH
=
config
[
'PATHS'
][
'PATH_GEOSENTINEL'
]
###########################################################
#
SENTINEL_PATH = config['PATHS']['PATH_GEOSENTINEL']
###########################################################
#
sys
.
path
.
append
(
SENTINEL_PATH
)
#
sys.path.append(SENTINEL_PATH)
from
geosentinel
import
rasterWkt
#from geosentinel import rasterWkt
if
__name__
==
"__main__"
:
# Local Run
import
rasterWkt
else
:
# Module Run, When going production - delete if/else
from
.
import
rasterWkt
CLASS_MAP
=
{
0
:
0
,
1
:
1
,
2
:
2
,
3
:
3
,
4
:
4
,
5
:
5
,
6
:
6
,
7
:
7
,
8
:
8
,
9
:
8
,
10
:
8
,
11
:
9
}
#-------------------------------------------------------------------------------
def
L2ASCLtoDict
(
filename
,
wkt
):
...
...
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