First of all, I hope you all are safe and healthy in your homes during this pandemic.
I'm trying to interpolate initial fields from SODA3.3.1 to my domain, but during the zeta remapping process I've got this error:
Code: Select all
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:51: UserWarning: WARNING: valid_min cannot be safely cast to variable dtype
nc.variables['s_rho'].valid_min = '-1.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:52: UserWarning: WARNING: valid_max cannot be safely cast to variable dtype
nc.variables['s_rho'].valid_max = '0.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:58: UserWarning: WARNING: valid_min cannot be safely cast to variable dtype
nc.variables['s_w'].valid_min = '-1.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:59: UserWarning: WARNING: valid_max cannot be safely cast to variable dtype
nc.variables['s_w'].valid_max = '0.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:65: UserWarning: WARNING: valid_min cannot be safely cast to variable dtype
nc.variables['Cs_r'].valid_min = '-1.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:66: UserWarning: WARNING: valid_max cannot be safely cast to variable dtype
nc.variables['Cs_r'].valid_max = '0.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:72: UserWarning: WARNING: valid_min cannot be safely cast to variable dtype
nc.variables['Cs_w'].valid_min = '-1.0'
/home/danilo/Research/PhD/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_file.py:73: UserWarning: WARNING: valid_max cannot be safely cast to variable dtype
nc.variables['Cs_w'].valid_max = '0.0'
Traceback (most recent call last):
File "initial_cond_soda.py", line 34, in <module>
zeta = remap('ssh', filein, src_grd, dst_grd, zeta_dst_file, dst_dir=dst_dir)
File "/home/danilo/Research/PhD/ROMS/routines/pyroms_soda/Initials/remap.py", line 135, in remap
dst_varz = pyroms.remapping.remap(src_varz, wts_file, spval=spval)
File "/home/danilo/Research/PhD/repos/pyroms/pyroms/pyroms/remapping/remap.py", line 65, in remap
dst_add, src_add, tmp_src_array)
ValueError: unexpected array size: new_size=1, got array with arr_size=0
Does anyone have any idea on how to solve or what is leading to this problem?
I'll appreciate any comments.
PS: If helps, I'm using the CCS1_SODA3.3.1 example as a guide, provided by the pyroms repository on github, and I create a simple numerical grid with 10km resolution and with ETOPO bathymetry.