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 Mike, re: > I am indeed ingesting lightning data from Vaisala, but it's not > any use to us so far as it's in some sort of weird binary compressed > format. Interesting. Because you said this before, I asked David Knight if he knew anything about the format of the data. He told me that it should be in the same format as what they always got. I am under the impression that this is the same as the format that was resent in the IDD NLDN (now called LIGHTNING) feed, but I will check to make sure (and let you know what I found). re: > Vaisala was supposed to switch it to ascii and still hasn't done > this. So, my code is very simple as it's just stuffing the data into a > single file. OK. re: > #!/usr/bin/perl > $pid=fork(); > if($pid == 0){ > # start up ssh > exec("ssh -l uofa03 -L 12345:127.0.0.1:10232 192.101.77.209"); > exit(0); > } > else{ > > #save data to file > sleep 5; > $date=`date -u +%Y%m%d`; > chop($date); > print "$date\n"; > $fn="~lightning/$date.lightning"; > if ( -e $fn ){ > `nc localhost 12345 >> ~lightning/$date.lightning`; > } > else{ > `nc localhost 12345 > ~lightning/$date.lightning`; > } > waitpid($pid,0); > } Thanks for the code. I will give it a try later today to see what I can see. Question: - why the fork? 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: JZM-551600 Department: Support IDD Priority: Normal Status: Closed