Skip to content

Commit ce76a72

Browse files
committed
data_dir problem
1 parent 647e960 commit ce76a72

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed
42 Bytes
Binary file not shown.

enwofost/data/WOFOST_par_ensemble.npy

16 Bytes
Binary file not shown.

enwofost/enwofost.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,13 @@ def ensemble_wofost(lon = 115.55, lat=38., start = dt.date(2008,10,12),
232232
"""
233233
if data_dir is None:
234234
#home = os.path.dirname(os.path.realpath("__file__"))
235-
os.path.split(os.path.realpath(__file__))[0]
235+
home = os.path.split(os.path.realpath(__file__))[0] #os.path.dirname(os.path.abspath(__file__))
236236
data_dir = home+"/data/"
237+
#print(data_dir)
237238
if prior_file is None:
238239
prior_file = data_dir+"par_prior.csv"
239240
if out_en_file is None:
240-
out_en_file = data_dir+"WOFOST_par_ensemble.npy"
241+
out_en_file = os.path.split(os.path.realpath(__file__))[0]+"WOFOST_par_ensemble.npy"
241242

242243
if lat < -90 or lat > 90:
243244
msg = "Latitude should be between -90 and 90 degrees."

enwofostWOFOST_par_ensemble.npy

34.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)