I met anyother strange problem again, please help me.
After I run make_bry_file.py, it will list all the hycom data I get,and give the following message:
Code: Select all
Load geographical grid from file
b'/home/le/PyCNAL-master/examples/Nanhai/data/HYCOM_GLBa0.08_salt_2015_001.nc'
Creating boundary file /home/le/PyCNAL-master/examples/Nanhai/bdry/HYCOM_GLBa0.08_salt_2015_001_ssh_bdry_Nanhai.nc
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.5/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "make_bdry_file.py", line 26, in do_file
zeta = remap_bdry(file, 'ssh', src_grd, dst_grd, dst_dir=dst_dir)
File "/home/le/PyCNAL-master/examples/Nanhai/remap_bdry.py", line 40, in remap_bdry
src_var = cdf.variables[src_varname]
KeyError: 'ssh'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "make_bdry_file.py", line 83, in <module>
results = p.map(partial_do_file, lst_file)
File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
KeyError: 'ssh'
The first thing I'm comfused is, why the file is not a grid file after the sentence "Load geographical grid from file"? should I change this and how to change? I have no clue.
The second, which file is the target file of the function "do_file" in make_bry_file.py? I can't understand python well, sorry.
The last, how to solve my problem.
Thank you very much