NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [thredds] Where in the code is the wms layer name of a grib file determined?

  • To: David Gil <dgilo@xxxxxxxx>
  • Subject: Re: [thredds] Where in the code is the wms layer name of a grib file determined?
  • From: Sean Arms <sarms@xxxxxxxx>
  • Date: Wed, 28 Jun 2017 08:57:51 -0600
Greetings David,

The string "Mixed_intervals" is generated in the method "
getTimeIntervalName()" in ucar.coord.CoordinateTimeIntv (found in the grib
module). Note that there is currently an error in the code when generating
names for GRIB2 intervals (
https://github.com/Unidata/thredds/issues/854#issuecomment-308305766).

Ultimately, this method gets used in the makeVariableName* and
makeVariableLongName methods found in ucar.nc2.grib.collection.Grib1Iosp
and ucar.nc2.grib.collection.Grib2Iosp (both classes found in the grib
module). These methods are also where the string "_Accumulation" gets added
to the name.

Cheers,

Sean


On Wed, Jun 28, 2017 at 3:33 AM, David Gil <dgilo@xxxxxxxx> wrote:

> Hi!
>
>
>
> I'm writing a webmap app to show grib files with TDS. To have control of
> the wms layer names, I have made grib tables of my own with which I get
> layer names like "11_105" instead of "Temperature_height_above_ground".
>
>
>
> The problem comes for example with Accumulated Precipitation, where I get
> an extra string appended: "61_105_Mixed_intervals_Accumulation". I have
> looked throughout the code for where does that "_Mixed_intervals_Accumulation"
> come from for hours, but I haven't found anything useful [1].
>
>
>
> Could you please point me to the places in the code that determine the wms
> layer names? It is very important that I fully understand it, so that I
> don't get any other surprises.
>
>
>
> Thank you in advance,
>
>
> --
>
> David Gil Oliva
>
> Sección Informática
>
> Delegación Territorial Cataluña
>
> Teléfono: 93 882 30 58 (50822)
>
>
>
> [1] The string "Mixed_intervals_Accumulation" appears many times in
> grib/src/main/resources/resources/grib1/grib1VarMap.xml and this file is
> used in the class GribVariableRenamer, but this class is deprecated.
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>

PNG image

  • 2017 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: