#!/bin/bash

# We want our data in the directory:
# data/bridge_data/pre_processed/bridge_data/
cd data && \
    rm -rf bridge_data && \
    tar xzf bridge_data.tar.gz && \
    mkdir processed && \
    mv bridge_data processed && \
    tar czf pre_processed.tar.xz processed/* && \
    rm -r processed && \
    mkdir -p bridge_data && \
    mv pre_processed.tar.xz bridge_data && \
    cd ..
