Error while loading pyroms package
Error while loading pyroms package
Hi Forum,
I am getting the following disappointing error while loading the pyroms package in my Linux system. I have installed all the prerequisites of this package. I reinstalled many times but still i can't figure out what is causing this error. Any suggestions will be helpful
File "/home/local/PyROMS/lib/python2.7/site-packages/pyroms/remapping/__init__.py", line 10, in <module>
from remap2 import remap2
ImportError: No module named remap2
I am getting the following disappointing error while loading the pyroms package in my Linux system. I have installed all the prerequisites of this package. I reinstalled many times but still i can't figure out what is causing this error. Any suggestions will be helpful
File "/home/local/PyROMS/lib/python2.7/site-packages/pyroms/remapping/__init__.py", line 10, in <module>
from remap2 import remap2
ImportError: No module named remap2
Re: Error while loading pyroms package
Right you are. Simply comment out that line of __init__.py.
Re: Error while loading pyroms package
Hi, Kate
As you suggested, I commented out that line and similarly couple of other lines and finally pyromstools is working. I was trying to use the script for creating the Boundary condition files from Hycom data. I am facing a problem with the indexing of Longitude for subsetting the equatorial Indian ocean region for which the longitude ranges from 30E to 120E. The hycom longitudes starts around 74E which makes the continuous indexing impossible for me . I would be grateful if you can point out any solution for this. Thanking You..
As you suggested, I commented out that line and similarly couple of other lines and finally pyromstools is working. I was trying to use the script for creating the Boundary condition files from Hycom data. I am facing a problem with the indexing of Longitude for subsetting the equatorial Indian ocean region for which the longitude ranges from 30E to 120E. The hycom longitudes starts around 74E which makes the continuous indexing impossible for me . I would be grateful if you can point out any solution for this. Thanking You..
Re: Error while loading pyroms package
You can extract the full range of longitude and tell scrip that your fields are periodic in x.
Re: Error while loading pyroms package
Hi Kate,
Unfortunately I couldn't find out exactly where I can do "tell scrip that your fields are periodic in x" as you suggested. I am still in learning stage of python and I would be grateful if you can point out this.
Unfortunately I couldn't find out exactly where I can do "tell scrip that your fields are periodic in x" as you suggested. I am still in learning stage of python and I would be grateful if you can point out this.
Re: Error while loading pyroms package
I had to look it up myself. It's when you make the remap weights with scrip (which we'll change out to ESMF as soon as someone gets around to it). Specifically, the Arctic examples have things like:
where the gridx_periodic means the grid is periodic. It sounds like only one of your grids will be periodic - leave the ROMS grid non-periodic.
Code: Select all
pyroms.remapping.compute_remap_weights(grid1_file, grid2_file, \
interp_file1, interp_file2, map1_name, \
map2_name, num_maps, map_method, \
grid1_periodic='.true.', grid2_periodic='.true.')
Re: Error while loading pyroms package
Hi Kate,
While trying to create boundary files using make_bdry_file.py script, I got really stuck with the following error
;-----------------------------------------------------------------------------------------
Creating boundary file /home/skyland/PyROMS/pyroms-master/examples/ASB_HYCOM/Bry_Files/HYCOM_GLBa0.08_2014_006_ssh_bdry_ASB.nc
Traceback (most recent call last):
File "make_bdry_file.py", line 80, in <module>
results = p.map(do_file, lst_file)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
IOError: No such file or directory
Creating variable zeta_north
;-----------------------------------------------------------------------------------------
Can you please comment on the possible reasons for this error. Thanking you in advance.
While trying to create boundary files using make_bdry_file.py script, I got really stuck with the following error
;-----------------------------------------------------------------------------------------
Creating boundary file /home/skyland/PyROMS/pyroms-master/examples/ASB_HYCOM/Bry_Files/HYCOM_GLBa0.08_2014_006_ssh_bdry_ASB.nc
Traceback (most recent call last):
File "make_bdry_file.py", line 80, in <module>
results = p.map(do_file, lst_file)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
IOError: No such file or directory
Creating variable zeta_north
;-----------------------------------------------------------------------------------------
Can you please comment on the possible reasons for this error. Thanking you in advance.
Re: Error while loading pyroms package
I would start here:
You are using the multiprocessing version of this thing. I find the serial version to be easier to debug, giving more useful stack traces on errors.
The script should mention a list of source files - do you have the right path for everything?IOError: No such file or directory
You are using the multiprocessing version of this thing. I find the serial version to be easier to debug, giving more useful stack traces on errors.
Re: Error while loading pyroms package
Hi Kate,
Thanks for your suggestion, I could solve the error by specifying the proper scrip weights file for creating boundary files from HYCOM data . But I can't figure out how to specify the open boundaries in my domain. My domain is proper north-south, east-west oriented with the southern and eastern boundaries open. But the created boundary files does not have any values for the variables in the southern open boundary (Eastern side has values). . I would be grateful if you can give any suggestions on this problem. Thanks again.
Thanks for your suggestion, I could solve the error by specifying the proper scrip weights file for creating boundary files from HYCOM data . But I can't figure out how to specify the open boundaries in my domain. My domain is proper north-south, east-west oriented with the southern and eastern boundaries open. But the created boundary files does not have any values for the variables in the southern open boundary (Eastern side has values). . I would be grateful if you can give any suggestions on this problem. Thanks again.
Re: Error while loading pyroms package
In my experience, it's all in the weights files, built from the grid files. The code will create fields for all four sides of the domain and will have some fillValue where there's land mask along the edge of your domain. You can't have a land mask where you want it to be open.