ESMG / pyroms

Python tools for the Regional Ocean Modeling System (ROMS)
Other
138 stars 88 forks source link

remap_bdry Segmentation fault: 11 #40

Closed kevinrosa closed 1 year ago

kevinrosa commented 2 years ago

I'm working through my first attempt at pyroms via modifying examples/Arctic_HYCOM_GLBy

When I run zeta = remap_bdry(file_ssh, 'ssh', src_grd, dst_grd, dst_dir=dst_dir) here's as far as I get:

...
/Users/kevinrosa/repos/pyroms/pyroms_toolbox/pyroms_toolbox/nc_create_roms_bdry_file.py:73: UserWarning: WARNING: valid_max cannot be safely cast to variable dtype
  nc.variables['Cs_w'].valid_max = '0'
1651881600.0
Creating variable zeta_north
Creating variable zeta_south
Creating variable zeta_east
Creating variable zeta_west
remapping zeta from NORTHWESTSHELF to The
time = 1651881600.0
horizontal interpolation using xESMF
Create weight file: regrid_t.nc
Segmentation fault: 11

Has anyone else encountered this?

My datasets aren't particularly large. file_ssh is only 2.9 MB...

>>> dst_grd.hgrid.lat_rho.shape
(258, 386)

>>> src_grd.lat_t.shape
(112, 67)
kevinrosa commented 1 year ago

Closing this as I was able to narrow down the segfault to an xESMF issue, not pyroms-specific.