Error opening wrf netcdf file

Thank you, @KSSM!

You mentioned netCDF Classic is installed on your machine. While I’m trying to help research this with you–and to explicitly test “file size” on your case and in your computing environment–I would like you to try to subset your WRF file to only contain data for one day…just to see if we can get past this issue. [If this does not work, I have one more theory.]

If you have netCDF Operators (“nco”) installed on your machine, please create a subset WRF file using the command:

ncks -d Time,0,24 wrfout_d03 wrfout_test.nc

That command will copy the data for the first 25 hours from your wrfout file into a smaller test file called “wrfout_test.nc”. After you create that file, please try to run MCIP on that file instead of on the 33 Gb WRF file. I just want to eliminate “file size” from the possible sources of your error.

Thank you!
Tanya

I noticed that the Netcdf variable in MCIP points to the use of netCDF classic. When I run a command to display it in the terminal, the command is executed but does not return any information.

I do not understand what you mean here. Is the version of netCDF that is compiled with MCIP different from the version you used when you ran ncdump above? If so, try running ncdump using the version of netCDF version compiled with MCIP. You need to use a version of netCDF compiled with large file support.

@cgnolte so let me try to clarify… Look at this excerpt from the exports.csh file
export NETCDF_LIB_DIR=/opt/share/netcdf/netcdf-c-4.7.0_intel2023_classic/lib
export NETCDF_INCL_DIR=/opt/share/netcdf/netcdf-c-4.7.0_intel2023_classic/include
export NETCDFF_LIB_DIR=/opt/share/netcdf/netcdf-fortran-4.6.0_nc-4.7.
0_intel2023_classic/lib
export NETCDFF_INCL_DIR=/opt/share/netcdf/netcdf-fortran-4.6.0_nc-4.7.0_intel2023_classic/include

And the results obtained by executing these commands
[katty.santos@login0 src]$ echo $NETCDF

[katty.santos@login0 src]$ echo $NETCDF_LIB

[katty.santos@login0 src]$ echo $NETCDF_INC
“Is the version of netCDF that is compiled with MCIP different from the version you used when you ran ncdump above?”
The version of netCDF for the wrfout file is NetCDF-4 and as shown above, the version compiled with MCIP is classic, but I converted the wrfout file to the same format but it didn’t work.
Makefile MCIP snippet

Intel Fortran

FC = ifort
NETCDF=/opt/share/netcdf/netcdf-c-4.7.0_intel2023_classic
IOAPI_ROOT = /opt/share/ioapi/ioapi-3.2-20200828

@tlspero I don’t have netCDF Operators(“nco”) installed.
image

Hello, I have encountered this problem as well. Have you found a solution?

Hi @wenxing!

Please consider opening a new thread here with your specific issue. I would like to be able to focus on what you are seeing, in case there is a different cause for your problem. When you open that thread, please indicate the versions of MCIP, netCDF, I/O API, and Fortran compiler that you are using. Please also include a clip of the error message.

Thank you.
Tanya