Skip to content

Using metadata in image files #8

@cpaniaguam

Description

@cpaniaguam

@ellenbuckley It seems like all the provenance metadata (Julian days, satellite, days) needed is contained in the file names. If the files are fetched in a systematic way (from an API?), the cloud/tci image pairs can be retrieved in sync and the code could be simplified a bit.

        # converting to date
        res = datetime.strptime(year_str + "-" + doy_str, "%Y-%j").strftime("%Y-%m-%d")

        if aq:
            sat='aqua'
        else:
            sat='terra'

        fcloud=fcloud_direc+'cloud_'+res+'_'+str(doy)+'_'+sat+'.tiff'
        ftci=ftci_direc+'tci_'+res+'_'+str(doy)+'_'+sat+'.tiff'

We could have a single for loop that reads in the pairs and does the processing. Is this observation correct?

#6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions