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
044c12c2
Commit
044c12c2
authored
Feb 13, 2019
by
Irving David
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
añadido archivo de configuración para leer el path de GeoSentinel
parent
18b0eb3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
4 deletions
+42
-4
config.json
config/config.json
+10
-0
L2ASCLtoJSON.py
geosentinel/L2ASCLtoJSON.py
+18
-1
findProducts.py
geosentinel/findProducts.py
+14
-3
No files found.
config/config.json
0 → 100644
View file @
044c12c2
{
"PATHS"
:
{
"PATH_GEOSENTINEL"
:
"/home/david/centroGEO/repsat/GeoSentinel"
,
"PATH_NAS"
:
"/home/david/NAS/"
},
"API_SENTINEL"
:
{
"SENTINEL_USER"
:
"emmhp"
,
"SENTINEL_PASS"
:
"geoemm29"
}
}
geosentinel/L2ASCLtoJSON.py
View file @
044c12c2
...
@@ -5,10 +5,27 @@ import osgeo.osr as osr
...
@@ -5,10 +5,27 @@ import osgeo.osr as osr
import
numpy
as
np
import
numpy
as
np
import
gdal
import
gdal
import
sys
import
sys
import
os
import
json
import
json
from
collections
import
Counter
from
collections
import
Counter
sys
.
path
.
append
(
'/home/mario/git/GeoSentinel'
)
########### 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
)
#print(config['PATHS']['PATH_GEOSENTINEL'])
SENTINEL_PATH
=
config
[
'PATHS'
][
'PATH_GEOSENTINEL'
]
###########################################################
sys
.
path
.
append
(
SENTINEL_PATH
)
from
geosentinel
import
rasterWkt
from
geosentinel
import
rasterWkt
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
def
L2ASCLtoDict
(
filename
,
wkt
):
def
L2ASCLtoDict
(
filename
,
wkt
):
'''
'''
...
...
geosentinel/findProducts.py
View file @
044c12c2
...
@@ -4,13 +4,24 @@
...
@@ -4,13 +4,24 @@
import
sys
,
os
import
sys
,
os
import
json
import
json
sys
.
path
.
append
(
'/home/david/centroGEO/repsat/GeoSentinel/'
)
########### 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
)
#print(config['PATHS']['PATH_GEOSENTINEL'])
SENTINEL_PATH
=
config
[
'PATHS'
][
'PATH_GEOSENTINEL'
]
###########################################################
sys
.
path
.
append
(
SENTINEL_PATH
)
from
geosentinel
import
APISentinel
from
geosentinel
import
APISentinel
from
geosentinel
import
polygonToBox
from
geosentinel
import
polygonToBox
from
datetime
import
date
from
datetime
import
date
#def findSentinelProducts(wkt, startDate, endDate, platform, cloud):
#def findSentinelProducts(wkt, startDate, endDate, platform, cloud):
# sentinel = APISentinel.APISentinel('asalazarg', 'geo135asg')
# sentinel = APISentinel.APISentinel('asalazarg', 'geo135asg')
...
...
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