Closed kbevers closed 3 years ago
Metadata AREA_OF_USE=Nordic and Baltic countries ignored
Is there an easy way to fix that using GDAL tools? Perhaps by using gdal_translate and a vrt file? I am afraid I haven't got the source material and script readily available since the grid was processed by a colleague.
Perhaps by using gdal_translate and a vrt file?
yes, that's probably the best option here. Make sure you re-apply the compression options -co COMPRESS=DEFLATE -co PREDICTOR=3 when converting the VRT to TIFF. And run grid_tools/cloud_optimize_gtiff.py afterwards. Well, an easier solution, as it is just a change of case, could be to use an hexadecimal editor (I use "bless" on Linux) and just change it :-). Don't loose time on that. I'll do it for you right now
Don't loose time on that. I'll do it for you right now
Thanks! I was just reading up on gdal_edit
which also seems to be able to do the job but I am much more confident in you than me :)
gdal_edit
To add new metadata item yes, but to rename an existing one, it isn't really helpful.
I'll do it for you right now
Done, and index regenerated
To add new metadata item yes, but to rename an existing one, it isn't really helpful.
I figured using -unsetmd
in combination with a bunch of -mo
's would do the trick as well. But I am sure you have better ways to do it!
Done, and index regenerated
Thanks, very appreciated!
I figured using -unsetmd in combination with a bunch of -mo's would do the trick
ah, yes you're right. That could have done it. The hex editor was just faster for that very particular use case :-)
Uploaded to CDN
Supporting grid file for the 2020 NKG transformations.
I had trouble regenerating
index.html
(I can't get a recent enough proj/gdal combo with conda it seems), so hopefully I can get a bit of help with that :-)