[Met_help] Question on pb2nc to create daily netcdf OBS files
Case, Jonathan (MSFC)[]
Jonathan.Case-1 at nasa.gov
Wed Feb 11 15:13:45 MST 2009
Sorry John,
I figured out a way to process multiple PREPBUFR files using the option
you suggested.
Here's how I got it to work:
pb2nc pbfile1 netcdf_file PB2NCConfig -pbfile pbfile2 -pbfile pbfile3
-pbfile pbfile4
For each new pbfile, I have to again specify the "-pbfile" option.
Thanks for the help!
Jonathan
> -----Original Message-----
> From: John Halley Gotway [mailto:johnhg at rap.ucar.edu]
> Sent: Wednesday, February 11, 2009 10:30 AM
> To: Case, Jonathan (MSFC)[]; met_help at ucar.edu
> Subject: Re: Question on pb2nc to create daily netcdf OBS files
>
> Jonathan,
>
> Yes, there is an easy way of doing that in METv1.1.
>
> Use the "-pbfile" command line option for PB2NC to pass it multiple
> PrepBufr files. It should write all the observations to a single
> NetCDF file.
>
> I haven't used this option much myself, so I'd be interested to find
> out how it works for you.
>
> John
>
> Case, Jonathan (MSFC)[] wrote:
> > John,
> >
> >
> >
> > I have been working up a script to run pb2nc on a variety of the
> gdas1.*
> > PREPBUFR files that I downloaded off of NOMADS.
> >
> > These files are every 6 hours, and I would like to lump them all
into
> a
> > single daily netcdf file (00z to 00z) for input to the point_stat
> > program.
> >
> >
> >
> > So far, I have tried running pb2nc on the individual files, varying
> the
> > "beg_ds" and "end_ds" to control the time windows. For example, the
> > gdas1.t00z.* files, I have applied a beg_ds and end_ds of -900 and
> 10800
> > (-15min and +3hours), then applied
> >
> > -10800 and 10800 for the 06z/12z/18z, and then -10800 to -900 to the
> > next day's 00z file. I did this to capture a whole day's worth of
> data
> > in 5 separate netcdf files. Then, I tried running nccat to
> concatenate
> > them into a single netcdf file, but it didn't work.
> >
> >
> >
> > Could you recommend a method for accomplishing this? Is there a
way
> to
> > modify the pb2nc options to place all OBS data of interest into a
> single
> > daily file?
> >
> >
> >
> > Thanks for the advice,
> >
> > Jonathan
> >
> >
> >
> > ***********************************************************
> > Jonathan Case, ENSCO, Inc.
> > Aerospace Sciences & Engineering Division
> > Short-term Prediction Research and Transition Center
> > 320 Sparkman Drive, Room 3062
> > Huntsville, AL 35805-1912
> > Voice: (256) 961-7504 Fax: (256) 961-7788
> > Emails: Jonathan.Case-1 at nasa.gov
> >
> > case.jonathan at ensco.com
> >
> > ***********************************************************
> >
> >
> >
> >
More information about the Met_help
mailing list