Update README.md
This commit is contained in:
parent
4e3b0c101a
commit
987760dc96
1 changed files with 54 additions and 1 deletions
53
README.md
53
README.md
|
|
@ -1,3 +1,56 @@
|
||||||
# ardigeos
|
# ardigeos
|
||||||
|
|
||||||
dünnschliff applikation
|
dünnschliff applikation
|
||||||
|
|
||||||
|
🚀 Workflow: Subdatasets → echte Overviews
|
||||||
|
🔹 Schritt 1: Nur höchste Auflösung extrahieren
|
||||||
|
gdal_translate GTIFF_DIR:1:/scans/thinsect/1/101.tif base.tif -co TILED=YES -co COMPRESS=JPEG -co QUALITY=75
|
||||||
|
|
||||||
|
👉 Das ist dein „Masterbild“
|
||||||
|
|
||||||
|
🔹 Schritt 2: Overviews aus vorhandenen Levels bauen
|
||||||
|
|
||||||
|
Gleiche Faktoren wie Subdatasets:
|
||||||
|
|
||||||
|
gdaladdo -r average base.tif 2 4 8 16 32
|
||||||
|
|
||||||
|
👉 entspricht:
|
||||||
|
|
||||||
|
34576 → 17288 → 8644 → … ✔
|
||||||
|
|
||||||
|
💡 Vorteil:
|
||||||
|
|
||||||
|
gleiche Struktur wie Original aber jetzt COG-kompatibel
|
||||||
|
|
||||||
|
🔹 Schritt 3: echtes COG erzeugen
|
||||||
|
|
||||||
|
gdal_translate base.tif cog_final.tif -of COG -co COMPRESS=JPEG -co QUALITY=75 -co COPY_SRC_OVERVIEWS=YES
|
||||||
|
|
||||||
|
Ergebnis 1/3 Dateigröße kleinere Datei als Original, da dort zuvor auch tiles enthalten sind (leider keine COG TIFF Pyramiden)
|
||||||
|
|
||||||
|
für alle Ordner in /scans/thinsect/(1-52)*tif
|
||||||
|
|
||||||
|
nohup bash -c '
|
||||||
|
for dir in 49 50 51 52; do
|
||||||
|
find /scans/thinsect/$dir -name "*.tif" | parallel \
|
||||||
|
--bar \
|
||||||
|
--joblog conversion_${dir}.log \
|
||||||
|
"
|
||||||
|
file={}
|
||||||
|
name=\$(basename \"\$file\" .tif)
|
||||||
|
|
||||||
|
gdal_translate \
|
||||||
|
\"GTIFF_DIR:1:\$file\" \
|
||||||
|
\"/scans/thinsect/cog_out/13/\${name}.tif\" \
|
||||||
|
-of COG \
|
||||||
|
-co COMPRESS=JPEG \
|
||||||
|
-co QUALITY=75 \
|
||||||
|
-co RESAMPLING=AVERAGE
|
||||||
|
"
|
||||||
|
done
|
||||||
|
' > conversion.out 2>&1 &
|
||||||
|
|
||||||
|
danach
|
||||||
|
``gdalinfo /scans/tninsection/cog_out/1/1.tif``
|
||||||
|
|
||||||
|
NGINX Anpassung und index.html anlegen mit Openlayerunterstützung
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue