diff --git a/examples/data_handler/archive.py b/examples/data_handler/archive.py new file mode 100644 index 0000000..29c8ad2 --- /dev/null +++ b/examples/data_handler/archive.py @@ -0,0 +1,23 @@ + +from pyremo.file_conventions import REMO_2015_TAPE_ARCHIVE, REMO_2015_DISK_ARCHIVE +from pyremo.data_handler import DataHandler + +# define experiment id for file conventions +expid = '061074' + +# path to hpss tape archive +tape_path = '/hpss/arch/ch0636/CORDEX/CORE-ATLAS/remo/exp061074' +# path to disk archive +disk_path = '/work/ch0636/g300046/remo_results_061074' + + +conv = REMO_2015_DISK_ARCHIVE() + +print(conv.known_types) + +arch_filenames = conv.get_archive_filenames(expid, types=['mfiles']) +#filenames = conv.get_filenames(expid,types=['efiles','pfiles']) + +print(arch_filenames) +#print(filenames) +#print(filenames) diff --git a/examples/remo_ds/open_file.py b/examples/remo_ds/open_file.py new file mode 100644 index 0000000..c8eabf2 --- /dev/null +++ b/examples/remo_ds/open_file.py @@ -0,0 +1,8 @@ + + +from pyremo import remo_ds as rds + + +filename = "../../tests/data/e056111t2006010100" + +ds = rds.open_remo_dataset(filename, update_meta=True, parse_dates=True)