open768 / spaceinc

chicken katsu useful space routines
0 stars 0 forks source link

Create manifest index of MSL products #3

Closed open768 closed 2 months ago

open768 commented 2 months ago

To be able to do a random image

open768 commented 2 months ago

Will need an admin option

open768 commented 2 months ago

Needs to be a batch process. Must remember state to be able to pick up if script is killed.

Already have reading functions, just need to be able to store in a new table

Last 5 sols should always be reprocessed as products are added.

open768 commented 2 months ago

Table needs to have in plain text

And those fields form a unique index

open768 commented 2 months ago

code written :-) seems to work, just need to run to completion

open768 commented 2 months ago

should use the last updated to reindex

    {
      "sol": 125,
      "num_images": 245,
      "catalog_url": "http://mars.jpl.nasa.gov/msl-raw-images/image/images_sol125.json",
      "last_updated": "2014-08-14T01:08:31Z"
    },
open768 commented 2 months ago

last updated comment moved to #4 and parked. dont need to do that now

open768 commented 2 months ago

runs in production

open768 commented 2 months ago

added function to delete contents from indexing - reindexed sols

open768 commented 2 months ago

so the json files contains thumbnails which need to be stripped out

open768 commented 2 months ago

fixed code in commit d3c68613d3a148993d9865cbd4c60f0bbe7ddced

open768 commented 2 months ago

made indexing super fast by only checking for cache expiry in last 10 sols 98dfa23ede99f29733028e061e56c6e253d7fe2e