AntoineRichard / OmniLRS

SpaceR and SRL Lunar simulation
Other
54 stars 15 forks source link

ERROR when exacting DEMS #35

Closed dzy666fly closed 1 month ago

dzy666fly commented 1 month ago

Thank u again for sharing this wonderful work.

When I use native install step by step, ./scripts/extract_dems_override.sh goes wrong.

Reading DEMs info...
ERROR 1: TIFFFetchDirectory:OmniLRS-main/tmp/ldem_87s_5mpp.tif: Can not read TIFF directory count
ERROR 1: TIFFReadDirectory:Failed to read directory at offset 2522680612
ERROR 1: TIFFFillTile:Read error at row 19456, col 19456, tile 10439; got 92479 bytes, expected 129039
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: OmniLRS-main/tmp/ldem_87s_5mpp.tif, band 1: IReadBlock failed at X offset 77, Y offset 66: TIFFReadEncodedTile() failed.
Finished extracting DEMs.
Moving DEMs to OmniLRS-main/assets/Terrains/SouthPole...
Finished moving DEMs.
Cleaning up...
Finished cleanup.

So how can I solve it? Is it wrong with data ldem_87s_5mpp.tif?

Thank u so much.

AntoineRichard commented 1 month ago

Hum, that's coming from NASA so it should be fine, but sometimes the download fails. One way to do it is to manually download the map and redo the processing on it. You could try the following in the docker:

mkdir tmp
cd tmp
wget https://pgda.gsfc.nasa.gov/data/LOLA_5mpp/87S/ldem_87s_5mpp.tif
gdalinfo ldem_87s_5mpp.tif > ldem_87s_5mpp.info
cd ..
./scripts/extract_dems_override.sh

You'd want to do that at the root of the repository (that's where your shell gets instantiated when the docker is started)

dzy666fly commented 1 month ago

Thank u so much for reply so quickly. It solves, though what I have rerun is the LunarLab which maybe doesnot use this DEM data.