Skip to content

Commit

Permalink
Update with bug fix when database table is empty. Also, define this a…
Browse files Browse the repository at this point in the history
…s version 1.0.0
  • Loading branch information
petebunting committed Apr 10, 2020
1 parent a034b42 commit 5f04673
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions eodatadown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import logging.config
import json

EODATADOWN_VERSION_MAJOR = 0
EODATADOWN_VERSION_MINOR = 53
EODATADOWN_VERSION_MAJOR = 1
EODATADOWN_VERSION_MINOR = 0
EODATADOWN_VERSION_PATCH = 0

# Check is GTIFF Creation Options Flag has been defined and if not then define it.
Expand Down
5 changes: 4 additions & 1 deletion eodatadown/eodatadownlandsatgoogsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,10 @@ def check_new_scns(self, check_from_start=False):

# Get the next PID value to ensure increment
c_max_pid = ses.query(func.max(EDDLandsatGoogle.PID).label("max_pid")).one().max_pid
n_max_pid = c_max_pid + 1
if c_max_pid is None:
n_max_pid = 0
else:
n_max_pid = c_max_pid + 1

logger.debug("Perform google query...")
goog_fields = "scene_id,product_id,spacecraft_id,sensor_id,date_acquired,sensing_time,collection_number," \
Expand Down
5 changes: 4 additions & 1 deletion eodatadown/eodatadownsentinel1asf.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ def check_new_scns(self, check_from_start=False):

# Get the next PID value to ensure increment
c_max_pid = ses.query(func.max(EDDSentinel1ASF.PID).label("max_pid")).one().max_pid
n_max_pid = c_max_pid + 1
if c_max_pid is None:
n_max_pid = 0
else:
n_max_pid = c_max_pid + 1

str_start_datetime = query_date.isoformat()+"UTC"
str_now_datetime = datetime.datetime.utcnow().isoformat()+"UTC"
Expand Down
5 changes: 4 additions & 1 deletion eodatadown/eodatadownsentinel2googsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ def check_new_scns(self, check_from_start=False):

# Get the next PID value to ensure increment
c_max_pid = ses.query(func.max(EDDSentinel2Google.PID).label("max_pid")).one().max_pid
n_max_pid = c_max_pid + 1
if c_max_pid is None:
n_max_pid = 0
else:
n_max_pid = c_max_pid + 1

logger.debug("Perform google query...")
goog_fields = "granule_id,product_id,datatake_identifier,mgrs_tile,sensing_time,geometric_quality_flag," \
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import os

setup(name='EODataDown',
version='0.53.0',
version='1.0.0',
description='A tool for automating Earth Observation Data Downloading.',
author='Pete Bunting',
author_email='pfb@aber.ac.uk',
Expand Down

0 comments on commit 5f04673

Please sign in to comment.