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

Feature request: add button to Metadata Viewer to fill metadata for conventional products #1052

Open
aloboa opened this issue Dec 11, 2024 · 4 comments

Comments

@aloboa
Copy link

aloboa commented Dec 11, 2024

Manually filling metadata is tedious and, in most cases, many images share the same metadata.
A button to add conventional metadata for eg the different kinds of Landsat, ASTER, EnMap, Sentinel images
(or even letting the user provide a csv file) would be very useful.

@janzandr
Copy link
Contributor

A button to add conventional metadata for eg the different kinds of Landsat, ASTER, EnMap, Sentinel images

For conventional sensor product, we have special Import Algos that will take care of proper metadata assignment:
image

or even letting the user provide a csv file

We now support STAC-like sidecar files for providing metadata. Maybe that is what you need (?)
https://enmap-box.readthedocs.io/en/latest/usr_section/usr_manual/metadata_guide.html#

@janzandr
Copy link
Contributor

@jakimowb in the GDAL Metadata widget, we have the option to Paste Metadata:
image

I'm not really sure how that works. From where would I copy the original metadata?
What is the format... a table, a json-dict?
Is that feature documented?

@aloboa
Copy link
Author

aloboa commented Dec 12, 2024

For conventional sensor product, we have special Import Algos that will take care of proper metadata assignment

Yes of course, I know that. But in many cases, the user has an image (eg a Landsat image) that does not come from your Import tool. In those cases, adding the conventional metadata at once would be useful.

We now support STAC-like sidecar files for providing metadata. Maybe that is what you need (?)
https://enmap-box.readthedocs.io/en/latest/usr_section/usr_manual/metadata_guide.html#

What I need is a way to write those files. For example, how do I create a GDAL PAM file out of hdr file?

@jakimowb in the GDAL Metadata widget, we have the option to Paste Metadata:

I get the Paste option always greyed, even if I select Copy metadata first...

@janzandr
Copy link
Contributor

Yes of course, I know that. But in many cases, the user has an image (eg a Landsat image) that does not come from your Import tool. In those cases, adding the conventional metadata at once would be useful.

I understand, but I guess that we won't take the time for such convinience function.
@jakimowb any thought on that?

What I need is a way to write those files. For example, how do I create a GDAL PAM file out of hdr file?

You can't do this in the GUI.
You have to use GDAL API to do it. Just ask ChatGPT: "How set band metadata with PyGDAL."

I get the Paste option always greyed, even if I select Copy metadata first...

Hmm, you are right, looks like a bug.
@jakimowb please have a look at this.

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