Skip to content

Commit

Permalink
add nimbus support
Browse files Browse the repository at this point in the history
  • Loading branch information
pochedls committed Aug 16, 2023
1 parent 346d39f commit dc595a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os

# version
__version__ = "0.0.5"
__version__ = "0.0.6"

# since this software is installed centrally and may be updated
# this section of code stores the xsearch version in a hidden
Expand Down
4 changes: 4 additions & 0 deletions xsearch/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def findPaths(experiment,
deduplicate=True,
printDuplicates=False,
lcpath=False,
nimbuspath=False,
filterRetired=True,
filterRetracted=True,
filterIgnored=True,
Expand All @@ -159,6 +160,7 @@ def findPaths(experiment,
where version is the string version_id, timepoints is the number of time steps, and
creation_date is the creation date in the dataset header
lcpath Bool: flag to denote whether search is on an LC system (data path is different on LC systems)
nimbuspath Bool: flag to denote search is on an Nimbus system (data path is different on Nimbus)
deduplicate Bool: flag to de-duplicate datasets for the same model/realization
filterRetracted Bool: flag to ignore retracted datasets (if True; default True)
filterIgnored Bool: flag to ignore datasets marked as ignored (if True; default True)
Expand All @@ -178,6 +180,8 @@ def findPaths(experiment,
fn = jsonDir + experiment + '/' + variable + '.json'
if lcpath:
fn = fn.replace('/p/', '/p/climate/')
if nimbuspath:
fn = fn.replace('/p/', '/home/jovyan/local-data/')
# load data
files = glob.glob(fn)
# loop over all json files and store
Expand Down

0 comments on commit dc595a6

Please sign in to comment.