Skip to content

Commit

Permalink
example updates
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer committed Apr 1, 2021
1 parent 78701d1 commit 96535ab
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/data_handler/archive.py
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions examples/remo_ds/open_file.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 96535ab

Please sign in to comment.