Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using metadata in image files #8

Open
cpaniaguam opened this issue May 17, 2024 · 1 comment
Open

Using metadata in image files #8

cpaniaguam opened this issue May 17, 2024 · 1 comment

Comments

@cpaniaguam
Copy link
Member

@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

@ellenbuckley
Copy link
Collaborator

i agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants