Closed adeane-ga closed 2 years ago
I have tested this and it generates the correct metadata when inspected via gdalinfo however I noticed that the azimuth metadata doesn't appear when inspecting the velocity outputs in QGIS. Let's look into this before we merge.
GeoTIFF metadata that is viewable with gdalinfo
in Linux, is still not viewable with QGIS GUI interface right click on raster layer => properties => information
.
Here is one thread which looks like a similar problem, but I still can't determine the issue from it: https://gis.stackexchange.com/questions/214247/set-raster-metadata-in-gdal-and-view-in-gis-software
This is yet to be resolved, so I guess we could keep this PR open until we figure it is resolved, or we could merge and then list the metadata discrepancy in the issues page so we can come back to it.
Not sure of the best action. I'm happy to keep looking into when I get time, but if anyone has ideas, let me know :).
One thought:
is there a difference between using SetMetadata()
compared to gdal_edit()
?
I confirm I can see the reference pixel coordinates within the metadata of output files in velocity directory, also, I think both SetMetadata() and gdal_edit() can do pretty much the same thing, that is to set/edit various information of an existing GDAL dataset, don't really know the difference between them,
I'm going to merge this and document the qgis issue.
This is a small PR that adds some simple metadata to the output files in the velocity directory.
Specifically Here are the three changes and their associated GitHub issues:
Add latitude and longitude coordinates of reference pixel to the output GeoTIFFs in
velocity_dir
(https://github.com/GeoscienceAustralia/PyRate/issues/358).Add median azimuth of the LOS vector to the output GeoTIFFS in
velocity_dir
(https://github.com/GeoscienceAustralia/PyRate/issues/359).Just a small correction to an error message which was stating the wrong condition (https://github.com/GeoscienceAustralia/PyRate/issues/362)
Recommended Review Strategy In addition to checking that none of these break your processing workflow, here are some things to check regarding the above points.
NOT COMPUTED
is there in the case that the geometry files are not created.