aragog.data
data
FWL_DATA_DIR = Path(os.environ.get('FWL_DATA', platformdirs.user_data_dir('fwl_data')))
module-attribute
basic_list = ('1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018_1TPa', 'Melting_curves/Wolf_Bower+2018')
module-attribute
full_list = ('1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018', '1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018_400GPa', '1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018_1TPa', 'Melting_curves/Monteux+600', 'Melting_curves/Monteux-600', 'Melting_curves/Wolf_Bower+2018')
module-attribute
logger = logging.getLogger(__name__)
module-attribute
project_id = 'phsxf'
module-attribute
DownloadLookupTableData(fname='')
Download lookup table data
Inputs : - fname (optional) : folder name, i.e. "1TPa-dK09-elec-free/MgSiO3_Wolf_Bower_2018" if not provided download all the folder list
Source code in aragog/data.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
GetFWLData()
Get path to FWL data directory on the disk
Source code in aragog/data.py
98 99 100 101 102 | |
download_OSF_folder(*, storage, folders, data_dir)
Download a specific folder in the OSF repository
Inputs : - storage : OSF storage name - folders : folder names to download - data_dir : local repository where data are saved
Source code in aragog/data.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | |
download_zenodo_folder(folder, data_dir)
Download a specific Zenodo record into specified folder
Inputs : - folder : str Folder name to download - folder_dir : Path local repository where data are saved
Source code in aragog/data.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
get_zenodo_record(folder)
Get Zenodo record ID for a given folder.
Inputs : - folder : str Folder name to get the Zenodo record ID for
Returns : - str | None : Zenodo record ID or None if not found
Source code in aragog/data.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |