Closed ZhongSiming closed 4 years ago
Thank you for posting a test case. The snow file is a text file and is not meant to be readable by the cloud_rain reader. The cloud file is more interesting, but I have figured it out. Your cloud file seems to be designed for pre-version 4.3 but has a header consistent with v4.3.
The reader uses a heuristic that pre-version 4.3 has a shorter cldhdr (15 bytes instead of 20 bytes). Perhaps, this was an over simplification. Using files available to me, I was able to determine that older versions of cldhdr did not include the version (i.e., "_V4.3" or "_V5.3"). According to the manuals, the older versions had only three variables (CLOUD, PRECIP, COD) and the new files had five (CLOUD, RAIN, SNOW, GRAUPEL, COD).[1]
Your cloud rain cldhdr contains the version (i.e., "_V4.3"), but has only three variables. It is not yet clear to me if this is a fluke or if all newer inputs that use the old algorithm will have only 3 variables.
For now, you have several options:
Please let me know which one you do and let me know how you created or received these files.
[1] http://www.camx.com/files/camxusersguide_v5-40.pdf pages 5-35 to 5-36 or pdf pages 147-148
Attachment: Memmap.txt
Thanks for the quick turn on this! I copied the new Memmap into the appropriate directory and the files read without any problems. I obtained the files from the CMU Center for Atmospheric Particle Studies . I've asked my contact for information on how the files were created and will post his answer when I receive it.
So, it turns out the person I received the files from had "hacked" Environ's wrf-camx program in order to make the files work better with PMCAMx.
See the commits here: https://bitbucket.org/pablogrb/wrfpmcamx_3.4/commits/032e67df1580f0164ca1bec94687674b97b31150
and here https://bitbucket.org/pablogrb/wrfpmcamx_3.4/commits/9e226ca413356fe1a1ab0ea47317ff3183d989e6
First, thanks for writing this package. I'm working on a project that would have taken much longer to get started if this package didn't exist. I'm using pseudonetcdf v3.1.0 with python v3.6.7
I'm attaching the 2 file types I'm having issues with. They are both single day input files. One is for cloud and rain data and the other is snow.
Here's the code I'm using, all of the other input files use the same number of rows and columns. Even without specifying the number of rows and columns, I get the same errors.
The error for this is:
The error for this one is:
Any help would be appreciated! If you need any information, please let me know! Cheers, Sam
cloudrainsnow.zip