[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19990621: NIDS from you own NOAAport system



Tom,

These are binary files, so you can't edit them in a text editor.

It looks to me like the first 30 characters are the added header, so 
I created the simple program:

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

main(argc,argv)
int argc;
char *argv[];
{
int fd;
char outnam[256];
char buf[100000];
int i;
ssize_t rsiz;
mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH;

fd = open(argv[1],O_RDONLY,0);
rsiz = read(fd,buf,100000);
close(fd);

sprintf(outnam,"%s.new\0",argv[1]);
  
fd = open(outnam,O_WRONLY | O_CREAT,mode);
write(fd,buf+30,rsiz-30);
close(fd);
}


This assumes that the product is less than 100000 bytes...for
as quick test- my test product was 23,000 bytes.

I compiled the above file called readnids.c with:
cc -o readnids readnids.c

Then I stored a single product to file file:
SDUS97_KAMA_092201

and ran the program with the file name as input:
readnids SDUS97_KAMA_092201

This produced an output file SDUS97_KAMA_092201.new
which contains everything following byte 30.

The resulting product was viewable as a velocity image from
Amarillo.

Several things to note...

The SDUS97 KAMA header is not unique - so to distinguish the various 
NIDS products you would actually need to look at the afos like pil
identifier within those first 30 bytes and use that for appropriate
naming.

On my test file:
0000000   S   D   U   S   9   7       K   A   M   A       0   9   2   2
0000020   0   1  \r  \r  \n   N   0   V   A   M   A  \r  \r  \n  \0 033
0000040   *  \0  \0 001   5 272  \0  \0   S   4 001   9 001 375  \0 003

This pil looks like N0VAMA

Gempak can't view some of the nids products, like those STAT and VAD
products so knowing what each Pil is, will help a lot.

As I mentioned previously, all "'97" products are considered test only,
and the NIDS in particular is slated for encrypting similar to the SFUS41
lightning products. Hope you don't get too attatched.

Steve Chiswell
Unidata User Support





On Tue, 15 Jun 1999, Thomas L. Mote wrote:

> 
> On Mon, 14 Jun 1999 17:09:15 -0600 Steve Chiswell 
> <address@hidden> wrote:
> 
> > Looking at the SDUS97 files, I see that there are WMO header and
> > PIL lines in them. This header stuff is not in the NIDS as distributed
> > by WSI and not part of the NIDS standard. If you strip this stuff out,
> > then you should be able to get down to what GEMPAK is looking for.
> > But...beware that they plan on encrypting....so your time spent may be in
> > vain.
> > 
> > I'll look at the NIDS documentation and see if I can tell where the
> > actual data starts.
> > 
> > Steve
> > 
> > > od -c SDUS97_KBOU_092138.test | more
> 
> Steve, so if I wanted to TRY to read this, I would need to 
> strip out this first line with the header? Would I have to 
> do the octal dump or could I do it in a text editor?
> 
> Just wondering.
> 
> Tom
> 
> > 0000000   S   D   U   S   9   7       K   B   O   U       0   9   2   1
> > 0000020   3   8  \r  \r  \n   R   C   M   F   T   G  \r  \r  \n  \0   J
> > 0000040   *  \0  \0 001   3 313  \0  \0 006   | 001   [ 002 003  \0 003
> > 0000060 377 377  \0  \0 233   j 377 376   g 237 025 352  \0   J  \0 002
> > 0000100  \0 025   Q 004  \0   3   *  \0  \0 001   0   _   *  \0  \0 001
> > 0000120   1 276  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> > 0000140  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
> > *
> > 0000200  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0   <  \0  \0
> > 0000220  \0  \0  \0  \0  \0  \0   1   2   3   4       R   O   B   U   U
> > 0000240       0   3   4   7                                            
> > 0000260                                                                
> > *
> > 0000320                                                   /   N   E   X
> > 0000340   R   A   A       0   3   4   7       0   9   0   6   9   9   2
> > 0000360   1   3   9       U   N   E   D   I   T   E   D                
> > 0000400                                                                
> > *
> > 0000440           /   M   D   P   C   P   N       /   S   C   0   9   0
> > 0000460   6       /   N   I   0   2   1   8   : 
> > 
> > 
> > 
> > On Mon, 14 Jun 1999, Thomas L. Mote wrote:
> > 
> > > 
> > > Steve,
> > > 
> > > We just installed a NOAAport receiver in the past week. I 
> > > have just been looking at some of the 7.5 minute GOES east 
> > > imagery from Friday using NSAT. Beautiful!!! I have been 
> > > able to view the satellite imagery in both GARP and NSAT.
> > > 
> > > I noticed we were also able to get about 10 NEXRAD sites. I 
> > > tried to read those using GARP and using the RADFIL setting 
> > > in SFMAP. It won't display. I do have NAWIPS 5.4, probably 
> > > through pl 4 or 5. The version of GARP I have is 1.04, I 
> > > think.
> > > 
> > > SHOULD I be able to display the radar feed on NOAAport 
> > > using GEMPAK? If so, are there any directions online 
> > > explaining how to do this?
> > > 
> > > Thanks.
> > > 
> > > Tom
> > > 
> > > Thomas L. Mote
> > > University of Georgia
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> 
> 
> 
>