-
Notifications
You must be signed in to change notification settings - Fork 318
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
fsurdat_modifier creates a malformatted file on izumi #1658
Comments
I would not close as a wontfix for now. Let's first see how the cssi project makes use of the fsurdat_modifier tool. This may give us insight into whether we need it to work on izumi or not. |
@adrifoster recommended checking the xarray versions on cheyenne (where fsurdat_modifier works) vs. izumi (where fsurdat_modifier generates a malformatted .nc file). I see differences in Cheyenne
Izumi
If we're still stuck, @adrifoster recommended posting this issue on the xarray github page. One more thing that may or may not be related. I tried
|
Confirmed (in case I was remembering wrong in yesterday's conversation) that the fsurdat file generated on izumi is unreadable also on cheyenne. |
Maybe a request to system support to try reinstalling or installing an update on izumi? |
@negin513 uses a more up-to-date environment on izumi and showed me that she gets an error that I'm not seeing when I run fsurdat_modifier with my environment. I will try updating my environment and pursue things from there. |
I talked with @slevisconsulting today about this. I suggested @slevisconsulting checking the file size against the successful version from Cheyenne. On Izumi, the netcdf file was smaller which verified that the writing stage of netcdf is not completed successfully. |
I tested the code with an updated version of xarray on Izumi (
|
@negin513 our conversation led to a breakthrough, thank you: PS. I don't get the error that we got when you ran the tool on izumi, which is a relief because I also don't get the error on cheyenne. I'm not sure what we did wrong that you got the error, but I don't think that we should worry about it, since my version works. Thanks, Negin! |
I'm almost certain that I pointed you to the wrong branch. (Again, it doesn't matter, but the thought was bugging me...) |
Perfect! Glad it helped. 👍 |
Sanity check: |
@ekluzek my branch is located on izumi here:
has xarray 0.20 and generates a good .nc file. Rather than looking into the strange behavior requiring the module unload, we should focus on upgrading ctsm_py's xarray to 0.20. |
@ekluzek here's the contents of the ctsm package on izumi:
|
@slevisconsulting thanks for reporting on your exact conda environment. I played around with it to try to get a version of pu create env that would work. I couldn't get it to work for python 3.7.0 no matter what settings of other packages I tried being informed by your environment. An important part here is that the python version is 3.8. You are really using 3.7.0, but the conda environment thinks it's different from that. So even the working version is somewhat malformed. But this is really due to the issues of the installed conda version on CGD systems. And I'm working with Joseph to fix those issues. |
I think this will be resolved in the new conda environment on izumi at this point. |
Brief summary of bug
When trying to run fsurdat_modifier on izumi with the standard python module loaded, the resulting file cannot be read. ncdump -h gives:
ncdump: fsurdat.nc: fsurdat.nc: NetCDF: Unknown file format
.General bug information
CTSM version you are using: Branch a little past master (but I haven't changed the python code in this branch)
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: Just fsurdat_modifier on izumi
Details of bug
I was hoping we could run the FSURDATMODIFIER test on izumi. So I first tried running
FSURDATMODIFYCTSM_D_Mmpi-serial_Ld1.5x5_amazon.I2000Clm50SpRs.izumi_intel
. This failed.Then I loaded a module environment on izumi that is close to what is loaded by default for running CTSM / CESM on izumi:
I then tried running the tool manually: from the case directory of this test (so the .cfg file existed there), I first removed the previously-generated fsurdat.nc and then ran:
python ~/ctsm_code/ctsm/tools/modify_fsurdat/fsurdat_modifier -v modify_fsurdat.cfg
.This had the same result – even though I got a message saying that the surface dataset was successfully generated.
This is possibly (likely?) a system configuration issue – e.g., maybe the versions of xarray and other packages need to be updated on izumi??? It isn't critical that this is resolved; I'm okay with it being closed as a wontfix if others feel we don't care about supporting this tool on izumi.
@slevisconsulting - thoughts? Or @negin513 would you want to try this with your python environment on izumi?
The text was updated successfully, but these errors were encountered: