Skip to content

Parse CARTO ablation files

Full example code: examples/parser/carto_ablation.py

By default, ablation data is exported to the VisiTagExport folder. We use two files, one for the coordinates of the ablation points and one for timestamps.

from dgmr.parser import CartoReader

# Ablation files with coordinates and timestamps respectively
coord_file = "your_sites_file" # VisiTagExport/Sites.txt
time_file = "your ablationsites_file" # VisiTagExport/AblationSites.txt
ablation_data = CartoReader.load_ablation(coord_file, time_file)

print(ablation_data[:5])

Output: Ablation point coordinates with their matching timestamp.

        x       y        z       time
0 -19.980   2.806  150.777  7848340.0
1 -23.454   7.432  149.260  7906290.0
2 -36.612  11.799  144.384  7961140.0
3 -28.453   7.167  146.236  8023990.0
4 -31.249   9.647  145.424  8060890.0