Giter VIP home page Giter VIP logo

aws-sat-api-py's People

Contributors

fredliporace avatar pablotcarreira avatar vincentsarago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-sat-api-py's Issues

Allow restricting searches by start_date - end_date (Sentinel2)

Hi @vincentsarago , congratulations for this awesome API!
I'm going to implement a new functionality to satisfy my needs, it will allow restricting searches by start_date and end_date for Sentinel2.
I would like to know if those changes would be welcome in this code.
If yes, I would be happy to implement them in a fork and than make a push request to this repo.

Start date out of range

Hi everyone, really enjoy the project, very useful!

There seems to be a bug in the default argument of the start_date in the sentinel2 search function:

To reproduce:

>>> from aws_sat_api.search import sentinel2
>>> utm = 16
>>> lat = 'S'
>>> grid = 'DF'
>>> full_search = False
>>> level = 'l1c'
>>> s2_meta = sentinel2(utm, lat, grid, full_search, level)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\users\mark.boer\documents\git\aws-sat-api-py\aws_sat_api\search.py", line 183, in sentinel2
    raise ValueError(f"Start date out of range {start_date.year} < 2015.")
ValueError: Start date out of range 2014 < 2015.

Probable solution:

I live in the Netherlands, I think this problem lies in the fact that live in a timezone with a positive timezone offset.

I think this issue can be solved by adding a tzinfo=timezone.utc to search.py line 172

 start_date = start_date or datetime(2015, 1, 1, tzinfo=timezone.utc)

I'll create a PR later today :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.