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.
Hi Samuel, re: > How do I decode COSMIC data for GEMPAK? I can see there is a dccosmic > program, Yes, dccosmic is the COSMIC decoder that Chiz wrote for GEMPAK before he left Unidata. > but what directory should I put the resultant file, I am not sure, but I would guess that it would be in the same directory/directory structure for other files that can be used for the Nsharp application. > and should I use and command line options? Run the decoder from the command line to see the command line options. For example: <as 'ldm'> cd ~ldm decoders/dccosmic Usage: decoders/dccosmic [options] output_file Options: -h Print the help file, then exit the program -f filename Input NetCDF file (default is stdin) -n filename Output NetCDF file name (default not saved) [-n is ignored if -f is used] -l filename Log output (default uses local0, '-' to stdout -v Verbose logging -x Debug logging -e VAR=value Set an environmental variable in program -b filebin When NN template is used, filebin is minutes to put in single file The setup that Chiz was using for the COSMIC data had not matured enough for him to be decoding the COSMIC data routinely. What he did was FILE the COSMIC netCDF files and then apparently run 'dccosmic' by hand. Here is the pqact.conf entry he used to FILE the COSMIC netCDF files: ####################################################################################### # # COSMIC NetCDF files # eg: (wetPrf_C006.2007.240.16.05.G09_0001.0002_nc) EXP cosmicrt/.*/(wetPrf_.*_nc) FILE -overwrite -close data/cosmic/\1 > Should a pqact.conf entry look like this: > EXP (cosmic.*).nc$ > PIPE -close decoders/dccosmic > -d data/gempak/logs/dccosmic.log > -e GEMTBL=/home/gempak/GEMPAK5.11.1/gempak/tables > Data/gempak/gps/YYYYMMDD_cosmic.gem This looks reasonable. Give it a try. > I can find NO corresponding documentation to this effect. I don't believe that there is any. Cheers, Tom **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: WME-299665 Department: Support GEMPAK Priority: Normal Status: Closed