Skip to content

Commit

Permalink
Merge pull request #96 from raphaelrpl/big-tmp
Browse files Browse the repository at this point in the history
Prepare release 1.0
  • Loading branch information
raphaelrpl authored Aug 14, 2024
2 parents bc686c6 + 19661f5 commit 830d3e3
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 7 deletions.
11 changes: 11 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
Changes
=======

Version 1.0.0 (2024-08-14)
--------------------------

- Add driver for Copernicus DataSpace EcoSystem.
- Review module dependencies
- Improve stability of driver Copernicus DataSpace EcoSystem
- Improve driver to search in provider NASA Modis
- Improve docs for command line and downloading.
- Fix MODIS api search using geometry
- Fix search in Landsat API using day/night indicator


Version 1.0.0.dev3 (2024-03-04)
-------------------------------
Expand Down
1 change: 1 addition & 0 deletions bdc_collectors/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def get_version(ctx, param, value):
return

import platform

from . import __version__

click.echo(
Expand Down
3 changes: 2 additions & 1 deletion bdc_collectors/dataspace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _item_id(self, scene: str) -> str:


def _is_valid_checksum(filepath: str, checksums: t.List[t.Dict[str, t.Any]]) -> bool:
"""Assert checksum validity of data"""
"""Assert checksum validity of data."""
for context in checksums:
algorithm_name = context["Algorithm"]
algorithm_cls = getattr(hashlib, algorithm_name.lower(), None)
Expand Down Expand Up @@ -308,6 +308,7 @@ def _read(stream):


def is_valid_zip(filepath: str) -> bool:
"""Check the consistency of Zip file."""
import subprocess

proc = subprocess.Popen(["unzip", "-t", filepath], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down
2 changes: 1 addition & 1 deletion bdc_collectors/modis/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ def level(self) -> str:
"""Retrieve the collection level."""
return ''

def version(self) -> '':
def version(self):
"""Retrieve the Collection Version."""
return self.fragments[3]
5 changes: 3 additions & 2 deletions bdc_collectors/scihub/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def source(self):
class Sentinel3Scene(SceneParser):
"""Define the parser of Sentinel 3 Scene identifiers.
Follows the `Sentinel-3 Naming Convention <https://sentinels.copernicus.eu/web/sentinel/user-guides/sentinel-3-olci/naming-convention>`_."""
Follows the `Sentinel-3 Naming Convention <https://sentinels.copernicus.eu/web/sentinel/user-guides/sentinel-3-olci/naming-convention>`_.
"""

fragments: List[str]

Expand Down Expand Up @@ -143,7 +144,7 @@ def source(self):
return self.fragments[0]

def datatype_id(self):
"""Return the scene data type identifier"""
"""Return the scene data type identifier."""
return self.fragments[3:7]

def level(self) -> str:
Expand Down
2 changes: 2 additions & 0 deletions bdc_collectors/scihub/sentinel2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Sentinel1(SentinelCollection):
parser_class = Sentinel1Scene

def path(self, collection, prefix=None, path_include_month=False, **kwargs) -> Path:
"""Retrieve base path for sentinel dataset."""
if prefix is None:
prefix = current_app.config.get('DATA_DIR')

Expand All @@ -45,6 +46,7 @@ def path(self, collection, prefix=None, path_include_month=False, **kwargs) -> P
return Path(prefix or '') / relative

def get_files(self, collection, path=None, prefix=None, **kwargs):
"""Retrieve the mapped files inside a sentinel folder."""
globber = Path(path or self.path(collection, prefix)).rglob('*')
output = {}
for entry in globber:
Expand Down
3 changes: 1 addition & 2 deletions bdc_collectors/usgs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@

from ..base import BaseCollection, BaseProvider, SceneResult
from ..exceptions import DownloadError
from ..utils import to_geom
from ._collections import get_resolver
from .api import EarthExplorer, LandsatApi
from .base import USGSCollection
from .landsat5 import Landsat5
from .landsat7 import Landsat7
from .landsat8 import Landsat8
from .parser import LandsatScene
from ..utils import to_geom


def init_provider():
Expand Down
2 changes: 1 addition & 1 deletion bdc_collectors/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

"""Version information for BDC-Collectors."""

__version__ = '1.0.0.dev3'
__version__ = '1.0.0'

0 comments on commit 830d3e3

Please sign in to comment.