Open edwardhartnett opened 4 months ago
I will try to snag this. Meanwhile if you have access to source, put in prints to find out what the %^( is going on here. "Filesize" is a very odd variable name for a NAME btw but I know this ain't your code.
To speed this up if you have source and a testcase, where are they.
Code here: https://github.com/NOAA-EMC/NCEPLIBS-g2/blob/develop/utils/tocgrib2super.F90
Test (commented out currently) here: https://github.com/NOAA-EMC/NCEPLIBS-g2/blob/develop/test_utils/run_tocgrib2super_tests.sh
Okay, filesize is the NAME of a file read as unit 12 that has the exact size of the file in unit 11. THis method of obtaining file size was common at the turn of the century and predates the more modern method of using stat() to return the size in the inode. (And be careful.. the internal stat structure also unix, linux and filesystem implementation dependent but it's still the preferred method and seems to have stabilized with both Lustre and GPFS returning the same data structure). Anyway if fortran unit 11 is, 40999888 bytes long, then fortran unit 12 should be a single 8 character text string containing this integer value. In setting up this test I am stuck getting a proper namelist for unit 5 input.
How in the world do we run togrib2super?
I am trying this and it's not working:
and this does not work. Fails opening a file.
When I look at the code I see:
How is the file size supposed to be passed in?
Do we know where this is being used? If so, can I look at how they do it?
@Hang-Lei-NOAA and @GeorgeVandenberghe-NOAA do you know where tocgrib2super is used?