Added more defensive programming to data extraction functions in SdA driver scripts, and utils/extract_datasets.py and utils/load_shared.py