Coder Social home page Coder Social logo

sentinel2-bot's People

Contributors

betatim avatar martinrenou avatar sredford 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sentinel2-bot's Issues

Repetition of images

Sometimes the bot tweets the same image again. I have noticed/suspected it a couple of times, now here is hard evidence:
https://twitter.com/Sentinel2Bot/status/816264394502008840
https://twitter.com/Sentinel2Bot/status/814858131440336896
There are probably many more, because I must only notice it when it's a distinctive image and when it gets repeated quickly.
Is this understood?

  • cycles through not enough images?
  • falls back (when cloudy) to 'default' images?
  • random number generator not random?

Could it be tested? eg, download all the word parts of the tweets and compare?

Add Country hashtag

Hey @betatim. Nice work!

It would be nice if you were able to tag the countries (and maybe cities?) shown in the tweets. Would mean that your bot's tweets show up in tag-search results.

EDIT: I will try poking in the code to see where this needs to be added, but pointers are appreciated! :)

The bot has no tests

Currently it takes a long time/a lot of CPU to verify that the bot still works. Create tests that use mock to replace the slow running bits so that we can verify that the bot still works.

Steps:

  • setup py.test
  • create the simplest test possible that tests something
  • test with a mock that picking a random location works
  • test with a mock for downloading images
  • create a test that mocks posting to twitter

Remove backlog/used images

Right now the bot does not delete images that it has already tweeted. Eventually this will fill up the hard drive. Teach the bot to delete unused images.

Sand is too orange/colour balance

Some images, especially of sandy places seem to have a weird colour balance. is the ground in Algeria really that red/orange??

Compare (Laghouat, Algeria (33.0°N 2.4°E), 2 September 2016):

with (Tiris Zemmour, Mauritania (24.9°N 11.5°W), 21 March 2016):

Counting characters

Need to do better at counting characters. It is all about the unicode!

For example 'Laâyoune-Sakia El Hamra ⵍⵄⵢⵓⵏ-ⵙⴰⵇⵢⴰ ⵍⵃⴰⵎⵔⴰ العيون-الساقية الحمراء, Western Sahara' is 81 characters but if you encode it properly: len(unicodedata.normalize("NFC", 'Laâyoune-Sakia El Hamra ⵍⵄⵢⵓⵏ-ⵙⴰⵇⵢⴰ ⵍⵃⴰⵎⵔⴰ العيون-الساقية الحمراء, Western Sahara').encode('utf-8')) it is 134 "characters"

Visually interesting images

Good yet simple algorithm for picking visually interesting pictures.

(This issue is about finding a super simple algorithm to make this decision, if you want to use something complicated like machine-learning open a new issue)

ROADMAP

The roadmap. What is on the horizon for Sentinel bot?

Near term

  • visually interesting images (#5)
  • make it easier to explore area shown on the image (OSM link?)

Long term

  • apply "bottom of atmosphere" correction, results in better images(?) (#19)
  • support for other bands (sometimes post a near IR picture instead of just true colour)

Long long term

  • create a partner bot that uses the images for machine-learning purpose
  • use the retweets/likes to train an algorithm to determine what is "visually interesting" (related #5)

Different top end clip for high cloud images

For images with a lot of clouds the ground is very dark. For example:
t47pnn_20190127t034021_rgb

You could improve this by using a larger top end clip for scenes that have a lot of cloud.

As an example: the same image as above but by hand clipping a lot more at the top:

t47pnn_20190127t034021_rgb_small

The clouds get clipped and you lose details there but you can see the ground.

To do: experiment with what a good clip value is. MGRS code for the example image: T47PNN_20190127T034021_rgb_small.jpg

cc @ozjtigger1

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.