AlexeyPechnikov / pygmtsar

PyGMTSAR (Python InSAR): Powerful and Accessible Satellite Interferometry
http://insar.dev/
BSD 3-Clause "New" or "Revised" License
387 stars 88 forks source link

[Help]: Loading in backup folder mid-processing #141

Open J-OFarrell opened 1 week ago

J-OFarrell commented 1 week ago

I am running an InSAR time-series script for about 50 S1 scenes and have hit memory issues once or twice. After aligning the images, there is a line that reads sbas.backup(FILEDIR+'backup') and saves everything I have done up to that point. However, I can't find a way to load that data back into sbas to continue from there and not have to rerun the whole script.

I have tried using the AI assistant to no avail as they suggest using a load_data function which doesn't appear to exist. Any advice would save me a lot of time and memory, thank you!

AlexeyPechnikov commented 1 week ago

The backup refers to a compact, stitched, and cropped Sentinel-1 GeoTiFF dataset that can be used instead of the potentially much larger original scenes. You may restart the processing by targeting the data directory to the backup directory. If you need to save your current state to continue processing later, you can use the Stack.dump() and Stack.restore() functions.