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

Re: grib data



Shen,

you have to put the files in resources/grib/tables/ under the dir you are
doing the jar command so they get located in the same dir structure.

robb...



On Fri, 4 Aug 2006, Shen Yingshuo wrote:

> hi robb,
>
>   thanks for your kind help...  i did what you suggested..
>
>  in
> webapps/thredds/WEB-INF/lib/
>
> jar -uf grib.jar fnmoc_3.tab tablelookup.lst
>
> now if i
> jar tf grib.jar
>
> META-INF/
> META-INF/MANIFEST.MF
> resources/
> resources/grib/
> resources/grib/tables/
> resources/grib/tables/af_128.tab
> resources/grib/tables/af_129.tab
> resources/grib/tables/af_2.tab
> resources/grib/tables/af_2_A.tab
> resources/grib/tables/af_2_B.tab
> resources/grib/tables/afwa.tab
> resources/grib/tables/cmcgem_2.tab
> resources/grib/tables/ecmwf_128.tab
> resources/grib/tables/ecmwf_140.tab
> resources/grib/tables/ecmwf_160.tab
> resources/grib/tables/ecmwf_162.tab
> resources/grib/tables/fnmoc_2.tab
> resources/grib/tables/fsl_0_0.tab
> resources/grib/tables/fsl_2_0.tab
> resources/grib/tables/grib2StdQuantities.xml
> resources/grib/tables/gwc_2.tab
> resources/grib/tables/nc72_ecmwf_3.tab
> resources/grib/tables/ncar_0_200.tab
> resources/grib/tables/ncar_1_2.tab
> resources/grib/tables/ncep_oper_140.tab
> resources/grib/tables/ncep_reanal1.tab
> resources/grib/tables/ncep_reanal3.tab
> resources/grib/tables/ncep_reanal_2.tab
> resources/grib/tables/nceptab_1.tab
> resources/grib/tables/nceptab_129.tab
> resources/grib/tables/nceptab_130.tab
> resources/grib/tables/nceptab_131.tab
> resources/grib/tables/nceptab_140.tab
> resources/grib/tables/nceptab_2.tab
> resources/grib/tables/nceptab_3.tab
> resources/grib/tables/tablelookup.lst
> resources/grib/tables/wrf_2_200.tab
> ucar/
> ucar/grib/
> ucar/grib/GribChecker.class
> ucar/grib/GribNumbers.class
> ucar/grib/Index$GdsRecord.class
> ucar/grib/Index$GribRecord.class
> ucar/grib/Index.class
> ucar/grib/NoValidGribException.class
> ucar/grib/NotSupportedException.class
> ucar/grib/Parameter.class
> ucar/grib/TableLookup.class
> ucar/grib/grib1/
> ucar/grib/grib1/Grib1BinaryDataSection.class
> ucar/grib/grib1/Grib1BitMapSection.class
> ucar/grib/grib1/Grib1Data.class
> ucar/grib/grib1/Grib1Dump.class
> ucar/grib/grib1/Grib1EndSection.class
> ucar/grib/grib1/Grib1Ensemble.class
> ucar/grib/grib1/Grib1GetData.class
> ucar/grib/grib1/Grib1Grid.class
> ucar/grib/grib1/Grib1GridDefinitionSection.class
> ucar/grib/grib1/Grib1IndexExtender.class
> ucar/grib/grib1/Grib1Indexer.class
> ucar/grib/grib1/Grib1IndicatorSection.class
> ucar/grib/grib1/Grib1Input.class
> ucar/grib/grib1/Grib1Lookup.class
> ucar/grib/grib1/Grib1Product.class
> ucar/grib/grib1/Grib1ProductDefinitionSection.class
> ucar/grib/grib1/Grib1Record.class
> ucar/grib/grib1/GribPDSLevel.class
> ucar/grib/grib1/GribPDSParamTable.class
> ucar/grib/grib1/SmartStringArray.class
> ucar/grib/grib2/
> ucar/grib/grib2/Category.class
> ucar/grib/grib2/Discipline.class
> ucar/grib/grib2/Grib2BitMapSection.class
> ucar/grib/grib2/Grib2Data.class
> ucar/grib/grib2/Grib2DataRepresentationSection.class
> ucar/grib/grib2/Grib2DataSection.class
> ucar/grib/grib2/Grib2Dump.class
> ucar/grib/grib2/Grib2EndSection.class
> ucar/grib/grib2/Grib2GetData.class
> ucar/grib/grib2/Grib2GridDefinitionSection.class
> ucar/grib/grib2/Grib2IdentificationSection.class
> ucar/grib/grib2/Grib2IndexExtender.class
> ucar/grib/grib2/Grib2Indexer.class
> ucar/grib/grib2/Grib2IndicatorSection.class
> ucar/grib/grib2/Grib2Input.class
> ucar/grib/grib2/Grib2LocalUseSection.class
> ucar/grib/grib2/Grib2Lookup.class
> ucar/grib/grib2/Grib2Product.class
> ucar/grib/grib2/Grib2ProductDefinitionSection.class
> ucar/grib/grib2/Grib2Record.class
> ucar/grib/grib2/ParameterTable.class
> ucar/unidata/
> ucar/unidata/io/
> ucar/unidata/io/RandomAccessFile.class
> fnmoc_3.tab
> tablelookup.lst
>
> then i reboot the server..  it still does not work
>
> here is the link that you can download a sample file
>
> http://laoshen.soest.hawaii.edu:9090/thredds/fileServer/scanwave/US058GOCN-GR1mdl.0110_0240_14400F0RL2006072012_0001_000000-000000wnd_wav_per
>
> thanks again for your time..
>
>
>
> On 8/4/06, Robb Kambic <address@hidden> wrote:
> >
> > Shen,
> >
> > i created the table and attached. you can update the grib jar file using
> > the jar command at
> > http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jar.html
> >
> > you have to update 2 files, tablelookup.lst fnmoc_3.tab
> >
> > i didn't have a file to test with, so let me know if there's problems.
> > also, the url you sent me had multiple entries for some single parameters,
> > ie number 7. when i created the table i used the last one in the series
> > because this is the latest FNMOC table. hope that makes sense.
> >
> >
> > robb...
> >
> >
> >
> >
> > On Tue, 1 Aug 2006, Shen Yingshuo wrote:
> >
> > > hi robb,
> > >
> > >    i got some infor from usgodae about grib table
> > >
> > >  here are the links
> > >
> > > http://www.usgodae.org/docs/layout/mdllayout.pns.html
> > >
> > > http://www.usgodae.org/docs/layout/pn_parameter_tbl.pns.html
> > >
> > > thanks again for your kind help
> > >
> > >
> > > On 7/31/06, Robb Kambic <address@hidden> wrote:
> > >
> > > >
> > > > Shen,
> > > >
> > > > sorry for the delay in response. i responsed to your message but
> > forgot to
> > > > include your address because the message was forwarded to me.
> > > >
> > > > the problem is we don't have a parameter table for the data. can you
> > > > contact the data provider FNMOC and see if they have a table? if so,
> > i'll
> > > > add the table into the resources and it should work.
> > > >
> > > > i sent a support message to FNMOC asking for the table but never got a
> > > > response. i have table version 2 but not version 3 and it's not good
> > to
> > > > kludge these tables because they are a mess anyways. i also searched
> > the
> > > > web but was unable to find the table. i just sent another request for
> > the
> > > > table, maybe second time will be a charm.
> > > >
> > > > robb..
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Mon, 24 Jul 2006, John Caron wrote:
> > > >
> > > > > Robb, can you check these files, and get back to shen? looks like we
> > > > dont have a grib table for them:
> > > > >
> > > > > NotSupportedException : ucar.grib.NotSupportedException: table for
> > > > center: 58 subCenter: 0 number: 3
> > > > > NotSupportedException : ucar.grib.NotSupportedException: table for
> > > > center: 58 subCenter: 0 number: 3
> > > > > java.lang.NullPointerException
> > > > >       at ucar.grib.grib1.Grib1Lookup.<init>(Grib1Lookup.java:44)
> > > > >       at ucar.nc2.iosp.grib.Grib1ServiceProvider.open(
> > > > Grib1ServiceProvider.java:71)
> > > > >       at ucar.nc2.iosp.grib.GribServiceProvider.open(
> > > > GribServiceProvider.java:63)
> > > > >       at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:823)
> > > > >       at ucar.nc2.NetcdfFile.open(NetcdfFile.java:368)
> > > > >       at ucar.nc2.NetcdfFile.open(NetcdfFile.java:230)
> > > > >       at ucar.nc2.NetcdfFile.open(NetcdfFile.java:175)
> > > > >
> > > > >
> > > > > i put a test file in:
> > > > >
> > > > > /upc/share/testdata\grid\grib\grib1\test
> > > > >
> > > > >
> > > > > -------- Original Message --------
> > > > > Subject:      grib data
> > > > > Date:         Fri, 21 Jul 2006 16:23:45 -1000
> > > > > From:         Shen Yingshuo <address@hidden>
> > > > > Organization:         UCAR/Unidata
> > > > > To:   address@hidden
> > > > > CC:   address@hidden
> > > > >
> > > > >
> > > > >
> > > > > hi john and ethan,
> > > > >
> > > > >    this is shen yingshuo from iprc/soest -- university of hawaii.
> > > > >
> > > > >    i guess you guys don't remember me but i met you both a few times
> > in
> > > > > meetings (ams or opendap workshop -- too bad that peter has not been
> > > > > doing opendap workshop for the last three years).
> > > > >
> > > > >    we have been using john's aggregation server since 2002 -- and i
> > > > > just learned there had been major change in aggregation server and
> > it is
> > > > > now part of thredds.
> > > > >
> > > > >    great to know the new netcdf-java lib reads grib data.   and i
> > liket
> > > > > the new thredds..
> > > > >
> > > > >    i wonder if you can help me with some problems that i have with
> > > > > serving grib data
> > > > >
> > > > >  i put some grib data (i got from usgodae) into my thredds
> > > > >
> > > > >
> > > >
> > http://laoshen.soest.hawaii.edu:9090/thredds/catalog/scanwave/catalog.html
> > > > >
> > > > > using
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <catalog
> > > > > xmlns="
> > http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0
> > > > > <http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0>"
> > > > > xmlns:xlink="http://www.w3.org/1999/xlink"; name="Scan All" version="
> > > > 1.0.1">
> > > > >   <service name="all" serviceType="Compound" base="">
> > > > >     <service name="ncdods" serviceType="OPENDAP"
> > base="/thredds/dodsC/"
> > > > />
> > > > >     <service name="HTTPServer" serviceType="HTTPServer"
> > > > > base="/thredds/fileServer/" />
> > > > >   </service>
> > > > >   <datasetScan name="Wave Data for TW" path="scanwave"
> > > > > dirLocation="/home/tsana/poppy/wave/" addDatasetSize="true">
> > > > >     <serviceName>all</serviceName>
> > > > >   </datasetScan>
> > > > > </catalog>
> > > > >
> > > > >  i can see data from the  server but only the http service works --
> > that
> > > > > i can download data.  there is nothing in opendap.
> > > > >
> > > > > also if the opendap works... how can i aggregate them  --- using
> > > > > type="joinExisting"
> > > > >
> > > > > thanks for your time..
> > > > >
> > > > >
> > > >
> > > >
> > ===============================================================================
> > > > Robb Kambic                                Unidata Program Center
> > > > Software Engineer III                      Univ. Corp for Atmospheric
> > > > Research
> > > > address@hidden                   WWW:
> > > > http://www.unidata.ucar.edu/
> > > >
> > > >
> > ===============================================================================
> > > >
> > >
> >
> >
> > ===============================================================================
> > Robb Kambic                                Unidata Program Center
> > Software Engineer III                      Univ. Corp for Atmospheric
> > Research
> > address@hidden                   WWW:
> > http://www.unidata.ucar.edu/
> >
> > ===============================================================================
> >
> >
>

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================