Closed tanksnrAQ closed 4 years ago
1) If you test the file without providing row/col commands, does it succeed? If so, what is the shape? 2) Can you post a file for me to test?
Thanks for having a look Barron.
1) It does not succeed. The ValueError is the same. 2) Ok attached here. wrfcamx.kv.2K.20160601.bin.zip
I did notice a warning while running pncgen; not sure if it's important.
/apps/chpc/bio/anaconda3/lib/python3.6/runpy.py:125: RuntimeWarning: 'PseudoNetCDF.pncgen' found in sys.modules after import o f package 'PseudoNetCDF', but prior to execution of 'PseudoNetCDF.pncgen'; this may result in unpredictable behaviour warn(RuntimeWarning(msg))
I installed PseudoNetCDF using the system wide Anaconda, but installed to my local directories.
The file you uploaded is not an old-style kv file. In the newer versions of CAMx, the uamiv gridded format is used for all files. The command below should work.
pncgen -f uamiv ${infile} ${outfile}
Great, that works. Sorry didn't know about the version differences.
Hi, I'm having trouble converting WRFCAMx (v4.7) Kv files to NetCDF using pncgen. The WRFCAMx output is for a domain nx=164,ny=143,nz=20. The output has 25 time steps in it.
I use the command: pncgen -f camxfiles.vertical_diffusivity.Memmap.vertical_diffusivity,rows=143,cols=164 ${infile} ${outfile}
I'm using Pseudonetcdf 3.1.0. The error I get is
I checked and line 104 in the one3d Memmap code relates to time:
The array size of 11732763 is close to what is expected, i.e. 11726000 (nx ny nz * 25hours). Not sure what's happening?