This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
The LL suffix means that the value should be interpreted as a signed long long integer (e.g. 64 bits). I cannot speak to the python interface, but ncgen should be able to handle the LL suffixes. My concern is that I gather you want the inferred type of these attributes to be a 32 bit signed integer rather than a 64 bit signed integer. I suspect this requires python-foo. > Hello netCDF and Python folks - > > I’m trying to use the netCDF4 python module to write an empty but heavily > formatted set of netCDF files for submission as part of CMIP6. The script I’m > using is on Github > (https://github.com/RobertPincus/RFMIP-IRF-Scripts/blob/master/generate-output-file-templates.py); > it requires a file you can find at > https://owncloud.gwdg.de/index.php/s/qzfgrHxgnIsNAMv. > > If you run the script you’ll see that integer global attributes have a > trailing LL designation, e.g. > (CMOR) bash-3.2$ ncdump -h rld.nc | grep LL > :physics_index = 1LL ; > :realization_index = 1LL ; > :initialization_index = 1LL ; > :forcing_index = 1LL ; > > I’m not sure what this means but I do not that if I ncdump the file, ncgen > will not create a valid netcdf file. That’s a worry. > > You’ll not that I’ve tried explicitly setting the type of the attribute > ("realization_index" :int(1). > > Can you tell me what it means for these attributes to be labeled “LL”? Is > there a way to ensure that these values are recorded as straight ints? > --- > Robert Pincus > University of Colorado/NOAA Earth System Research Lab > http://cires.colorado.edu/researcher/robert-pincus > > =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: TQX-377690 Department: Support netCDF Priority: Normal Status: Open =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.