Error while creating boundary files

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
novice
Posts: 27
Joined: Fri Jan 18, 2013 6:02 pm
Location: Indian Institute of Technology

Error while creating boundary files

#1 Unread post by novice »

Hi All,

I am getting the following strange error :shock: , while creating boundary files by using PYROMS.
-------------------------------------------------------------------------------------------------------
-2.84543 2.20867
-7.37183 31.0363
RD new flooding
-8.6285 32.3637
RD new flooding
-9.08371 32.4054
RD new flooding
/media/planet/MyBook/Hycom/2014/HYCOM_GLBa0.08_2014_185.nc

Creating boundary file /home/planet/PyROMS/Ocean/Boundary/Bry_2014/Outputs/HYCOM_GLBa0.08_2014_185_ssh_bdry_OCEGRID.nc
Traceback (most recent call last):
File "make_bdry_file.py", line 78, 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
IndexError: index -9223372036854775808 is out of bounds for axis 0 with size 33

-------------------------------------------------------------------------------------------------------

I was trying to create daily boundary files for year 2014 using HYCOM data. The script successfully created files for first 110 Days and got stopped with this error. I would be grateful if anybody can give suggestions to solve the error. Thanks ALL.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error while creating boundary files

#2 Unread post by kate »

I don't know how to solve that problem, but I find the error messages somewhat more helpful from the non-multiprocessing versions of those scripts. Then again, sometimes when I restart with the serial code, it just runs through to the end without getting the error. If it's a real problem, you'll get it again with the serial code and then you'll have a better idea which source file is the problem so you can investigate it to confirm.

novice
Posts: 27
Joined: Fri Jan 18, 2013 6:02 pm
Location: Indian Institute of Technology

Re: Error while creating boundary files

#3 Unread post by novice »

Hi Kate,
Thanks for your reply, :o I am trying as you suggested.

novice
Posts: 27
Joined: Fri Jan 18, 2013 6:02 pm
Location: Indian Institute of Technology

Re: Error while creating boundary files

#4 Unread post by novice »

Hi Kate,
As you suggested, I used the serial code to find the wrong file and it was successful :) . There were missing values in one of the data and I replaced that file. Thanks for your suggestion. Now I have another error while trying to use python script for generating tides. I would be grateful if you can give some clue on this. Thanking you.

-----------------------------------------------------------------------------------------------------------
/home/planet/PyROMS/lib/python2.7/site-packages/pyroms/grid.py:231: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
if ((spherical == 0) or (spherical == 'F')):
Load geographical grid from file
Load geographical grid from file
make_tide.py:105: RuntimeWarning: invalid value encountered in divide
uRe = uRe/srcgrd.z_u # ms-1
make_tide.py:106: RuntimeWarning: invalid value encountered in divide
uIm = uIm/srcgrd.z_u # ms-1
make_tide.py:107: RuntimeWarning: invalid value encountered in divide
vRe = vRe/srcgrd.z_v # ms-1
make_tide.py:108: RuntimeWarning: invalid value encountered in divide
vIm = vIm/srcgrd.z_v # ms-1
Traceback (most recent call last):
File "make_tide.py", line 119, in <module>
hRe = pyroms.remapping.remap(hRe, wts_file_t, spval=srcgrd.missing_value)
File "/home/planet/PyROMS/lib/python2.7/site-packages/pyroms/remapping/remap.py", line 29, in remap
map_wts = data.variables['remap_matrix'][:]
File "netCDF4/_netCDF4.pyx", line 3695, in netCDF4._netCDF4.Variable.__getitem__ (netCDF4/_netCDF4.c:37916)
File "netCDF4/_netCDF4.pyx", line 4374, in netCDF4._netCDF4.Variable._get (netCDF4/_netCDF4.c:47094)
IndexError

Post Reply