AMI-system / gbif_download_standalone

A standalone repo to download images from the GBIF database according to a species list.
MIT License
0 stars 0 forks source link

Update metadata for image downloads #10

Closed LevanBokeria closed 1 year ago

LevanBokeria commented 1 year ago

Currently, each species folder gets saved with a meta_data.json file which has an entry for each image, with each entry containing following information taken from the occurrence dataframe:

fields = [
    "decimalLatitude",
    "decimalLongitude",
    "order",
    "family",
    "genus",
    "species",
    "acceptedScientificName",
    "year",
    "month",
    "day",
    "datasetName",
    "taxonID",
    "acceptedTaxonKey",
    "lifeStage",
    "basisOfRecord",
]
LevanBokeria commented 1 year ago

Should add the following fields:

    fields = [
        "image_is_downloaded",
        "image_url_works",
        "image_is_corrupted",
        "image_is_thumbnail"
    ]

So when the download code is re-run, it will skip the downloading of a specific image if: