barronh / pseudonetcdf

PseudoNetCDF like NetCDF except for many scientific format backends
GNU Lesser General Public License v3.0
77 stars 35 forks source link

Problem converting CAMx boundary condition file to netcdf #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Running pncdump for a boundary condition file.
 pncdump -f uamiv --to-conv=cf --from-conv=ioapi bc14252.bin

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/pncdu                                       mp.py", line 212, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/pncdu                                       mp.py", line 207, in main
    ifiles, options = pncparser(has_ofile = False)
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/pncpa                                       rse.py", line 34, in pncparser
    return pncprep(args)
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/pncpa                                       rse.py", line 141, in pncprep
    fs = getfiles(ipaths, args)
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/pncpa                                       rse.py", line 181, in getfiles
    f = eval(file_format)(ipath, **format_options)
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/camxf                                       iles/uamiv/Memmap.py", line 90, in __init__
    self.__readheader()
  File "/usr/lib/python2.7/site-packages/PseudoNetCDF-1.0-py2.7.egg/PseudoNetCDF/camxf                                       iles/uamiv/Memmap.py", line 237, in __readheader
    raise ValueError, "Not an even number of times %f" % ntimes
ValueError: Not an even number of times 1.170842

What version of the product are you using? On what operating system?
PseudoNetCDF-1.0-py2.7.egg

Original issue reported on code.google.com by sdi...@gmail.com on 15 Sep 2014 at 7:34

GoogleCodeExporter commented 9 years ago
The lateral boundary files are not UAM-IV gridded format.  They have a special 
shape that is specific to BC. It is currently called "lateral_boundary."  
Replace uamiv with lateral_boundary and it should work.

Original comment by barr...@gmail.com on 16 Sep 2014 at 6:54

GoogleCodeExporter commented 9 years ago
Marking as invalid, since this is not a defect - instead it is an area that 
needs improved documentation. Re-open if you continue to have trouble.

Original comment by barr...@gmail.com on 16 Sep 2014 at 6:56