-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue Running with Sflux generated from HAFS #121
Comments
@SorooshMani-NOAA ipre=1 may hang under new IO but the std outputs should see 'Pre-processing completed...' and you can kill the job. In any case, since you have success with nws=0, ipre=1 won't shd any new info. The NaN is likely coming from sflux. You can use ncview to see which variable has that. |
@josephzhang8 thank you for your quick response. I submitted the I tried plotting the values for a couple of time steps by exporting as tiff and viewing in QGIS. So far I haven't seen any strange nan regions close to mesh, e.g.: So based on the error message, is there any way I can narrow down where I should expect the invalid nans to be? Should I look at all the variables? Thanks again |
You have to look at all. |
Is there anyway I can check if my final btw. the above dataset is the final sflux, not the intermediate one I generate from HAFS. I do |
sflux files are in CF1.0 convention and there are many tools to check but I'm not expert in that. |
Does it matter if the part of the sflux grid which is not within the mesh has nan values? |
It might. The min/max of each variable seem reasonable. |
It looks like your input grid is curvilinear. It needs to be rectilinear. If you crop it to the grid bounds with a buffer before giving it to pyschism it should work. Note also that schism requires the xgris and ygrid vars to be 1D (ergo rectilinear). While I'm not 100% sure of these statements I think that's what the problem is. pyschism won't check for this because I didn't know about that requirement when I put the SfluxDataset together. Essentially, since your input grid is curvilinear, you'll have to build a new grid with linspace and interpolate to the np.meshgrid, while keeping xgrid and ygrid 1D in the nc file. |
@josephzhang8 @jreniel thank you for your replies! I think I've found the culprit! Maybe it's worth discussing it in more details and also I should probably do more testing, but after the first successful run, it seems to me that the issue was in fact nan values outside the meshed area in the sflux file. @jreniel the HAFS output (at least the ones I'm using) is on a rectiliniear grid, however it has lot of In any case, I just clipped the sflux (the same one I have used above) by the mesh box (as also pointed out by @jreniel) and wrote the clipped version to I'll close the ticket for now since the original issue is addressed. Thanks again! |
I'm running into this fatal error when trying to use sflux I generated from HAFS outputs. This is how my sflux header looks like:
And this is the error:
This is my JCG:
and this is from my mirror file:
I'm trying a minimal tidal + atmospheric setup with only sflux1 air files. I tried running this setup with tidal only (by setting
nws=0
) and it worked fine (no errors), but withnws=2
I got this error. I am also trying withipre=1
and am still waiting to see what happens (30 min so far). For the run with sflux I tried both with and without ramp. This is my param.nml:Do you have any suggestions where I should look to find the issue?
The text was updated successfully, but these errors were encountered: