Welcome

Welcome to the RTMA/URMA VLab community!

The purpose of this community is to facilitate feedback and discussion on the RTMA/URMA system. 

Meeting notes are available under the Google Drive Folder linked above.

To learn more about our next upgrade, see the asset publication below.

Use the System Overview to learn more about the system in general.

Use the forum to ask questions about the system and join the discussion with other users and the development team. 

Note that there are two forums: one for precipitation issues and one for all other variables.

You can post to the precip issues forum by sending an email to qpe.rtma.urma.feedback.vlab@noaa.gov.  For all other issues, you can post by sending an email to rtma.feedback.vlab@noaa.gov.  Please note that you must have a user account to post to the forum.  If you do not have an account, please contact matthew.t.morris@noaa.gov.

We recently added the ability for NWS Regional or WFO personnel to request that stations be removed from the analysis.  To access this, click on the "Station Reject Lists and Requests" tab.

There has been recent interest in knowing exact station locations, especially those of METAR sites.  Our METAR information table is under the "METAR Location Info" tab.

Users may also be interested in the National Blend of Models VLab community.

We appreciate any feedback on how this page or community could be improved.  You can submit such feedback via the above email handle or forum.

 

Forums

Back

RE: Shift in URMA QPE06 compared to RFC QPE06

Mark Loeffelbein, modified 6 Years ago.

Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 2 Join Date: 5/9/14 Recent Posts

There is a shift in location when comparing the URMA QPE06 to the RFC QPE06. NWRFC shared these images with me and believe the shift is in the URMA as it can be seen along the coast. Can anyone else confirm this and is it an issue with the way AWIPS is handling this or something wrong with the URMA?

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Hi Mark,     Quick question is that Stage IV/URMA defines the grid coordinate using the lat/lon of the center of each grid box, and I believe RFCs define the coordinate of each box using the lat/lon on the "lower-left" corner of each grid box (see http://www.emc.ncep.noaa.gov/mmb/ylin/pcpanl/QandA/#GRIDINFO).  We don't have access to AWIPS here - how does AWIPS define each grid box in its graphics?  Does it have an option of using either the center or the lower-left corner? Ying On 06/15/2018 02:52 PM, VLab Notifications wrote: > > There is a shift in location when comparing the URMA QPE06 to the RFC > QPE06. NWRFC shared these images with me and believe the shift is in > the URMA as it can be seen along the coast. Can anyone else confirm > this and is it an issue with the way AWIPS is handling this or > something wrong with the URMA? > > > -- > Mark Loeffelbein RTMA/URMA Discussion Group Virtual Lab Forum > https://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4262590 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Quick "answer", not "quick question". Ying On 06/15/2018 03:19 PM, VLab Notifications wrote: > Hi Mark,     Quick question is that Stage IV/URMA defines the grid > coordinate using the lat/lon of the center of each grid box, and I > believe RFCs define the coordinate of each box using the lat/lon on > the "lower-left" corner of each grid box (see > http://www.emc.ncep.noaa.gov/mmb/ylin/pcpanl/QandA/#GRIDINFO).  We > don't have access to AWIPS here - how does AWIPS define each grid box > in its graphics?  Does it have an option of using either the center or > the lower-left corner? Ying On 06/15/2018 02:52 PM, VLab Notifications > wrote: > > There is a shift in location when comparing the URMA QPE06 > to the RFC > QPE06. NWRFC shared these images with me and believe the > shift is in > the URMA as it can be seen along the coast. Can anyone > else confirm > this and is it an issue with the way AWIPS is handling > this or > something wrong with the URMA? > > > -- > Mark Loeffelbein > RTMA/URMA Discussion Group Virtual Lab Forum > > https://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4262590 > > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, > Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 > Ying.Lin@noaa.gov > -- > Ying Lin RTMA/URMA Discussion Group Virtual Lab Forum > http://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4262679 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

I don't know how AWIPS works behind the scenes.

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Working on an NWRFC QPE before-and-after-half-a-grid shifting example.  Hope to have it by Monday. Ying On 06/15/2018 04:11 PM, VLab Notifications wrote: > > I don't know how AWIPS works behind the scenes. > > > -- > Anonymous RTMA/URMA Discussion Group Virtual Lab Forum > https://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4263104 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Hi Mark,     After looking at this further, I believe that AWIPS is assuming that coordinates for each grid box in precip URMA is defined at the "lower-left corner" of each grid box (it is defined as at the center of each grid box).   See attached two plots:     pcpurma_g188.2018061312.06h.grb2.png: correctly assuming that each grid box is defined at the center of the box     pcpurma_g188.2018061312.06h.grb2_off_by_half_dxdy.png incorrectly assuming that each grid box is defined at the "lower-left corner" of the box The first looks correct, and the 2nd one looks like what you got from AWIPS for UKMA QPE. Not sure how to go about this, but we'll need to find out from AWIPS how the plotting is done and ask if they have an option to change the grid co-ord definitions. Ying On 06/15/2018 04:11 PM, VLab Notifications wrote: > > I don't know how AWIPS works behind the scenes. > > > -- > Anonymous RTMA/URMA Discussion Group Virtual Lab Forum > https://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4263104 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts

The two plots I sent yesterday had different background map resolutions; also the reply was sent via Thunderbird mail, so if you were not viewing them directly on VLAB interface you might have seen one plot showing up twice.  Re-posting the two PNG files (same background map resolution) directly on VLAB interface for clarity:

1) pcpurma_g188.2018061312.06h.grb2.png: the URMA file (on the NW grid) correctly plotted

2) pcpurma_g188.2018061312.06h.grb2_off_by_half_dxdy.png: the same URMA file incorrectly plotted, assuming that each grid box's coordinate is defined at the "lower-left" corner of the grid box, rather than at the center of the box.

Ying

Ying Lin
NCEP/EMC/Verification, Post-processing and Product Generation Branch
U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

I don't know if any of this will help clarify anything, but NCRFC was involved in various grid shift problems in A2 mpe for a year or two.  The HRAP lat/lon of the xmrg created by mpe represents the southwest corner of the HRAP box.  HRAP is a subset of MDR which is a subset of the LFM grid, and that's how that was defined.  However, the lat/lon point encoded in the grib1 represents the *center* of the grib1 grid box.  There should be a token in your Localization perspective HydroApps->Hydro->Apps_defaults->SITE(yoursiteid) which is:

grib_shift  : 0.5

When mpe runs gribit on the xmrg to create the grib1 file, it will shift the xmrg lat/lon by 0.5 cells to the N and E (which is the center).  The grib1 file is then transmitted on the SBN, ingested by NCEP, etc.

NCRFC constructed our own HRAP overlay shapefile by looping the OHD Fortran code to create the lat/lon coordinates of the southwest corners of all our HRAP boxes.  Our GIS focal then constructed the shape file in the HRAP projection, by connecting the lat/lons.  It's often instructive to load a grib into an independent third-party application, such as NCEI's WCT viewer, which I believe allows one to also load shapefiles.  One can then compare the grib with the HRAP overlay and see if there are improper shifts.  This helps narrow down if it's a local grib encoding problem, AWIPS viewer problem, etc.

-Larry Ellis
NCRFC HAS

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Larry, Thank you very much for weighing in.  I was not aware of this 0.5 cell shift done at RFC - have been assuming that QPEs from RFCs (GRIB1 files sent via SBN) use the lower-left corner lat/lon as co-ord for grid box and do a 0.5 cell shift here.  When did this shifting at the RFCs start (starting with A2 MPE?), and has it been used by all RFCs in creating their QPEs?  And, does the activation of the grib_shift alters the (lat,lon) of the (1,1) point in the grib file (is that the lower-left corner of the (1,1) point, or the center of the (1,1) point?  In the case of NCRFC this is currently Lat1 37.870000 Long1 -105.515000. On the subject of AWIPS plotting of precip URMA: I asked our local GRIB2 expert earlier today whether there is a parameter in GRIB2 meta data that can be used to indicate where the lat/lon for a grid box is actually valid at (e.g. lower-left or center of box), thinking that that might be used by AWIPS graphics.  He told me he's not aware of such an option. Ying On 06/19/2018 04:59 PM, VLab Notifications wrote: > > I don't know if any of this will help clarify anything, but NCRFC was > involved in various grid shift problems in A2 mpe for a year or two.  > The HRAP lat/lon of the xmrg created by mpe represents the southwest > corner of the HRAP box.  HRAP is a subset of MDR which is a subset of > the LFM grid, and that's how that was defined.  However, the lat/lon > point encoded in the grib1 represents the *center* of the grib1 grid > box.  There should be a token in your Localization perspective > HydroApps->Hydro->Apps_defaults->SITE(yoursiteid) which is: > > grib_shift  : 0.5 > > When mpe runs gribit on the xmrg to create the grib1 file, it will > shift the xmrg lat/lon by 0.5 cells to the N and E (which is the > center).  The grib1 file is then transmitted on the SBN, ingested by > NCEP, etc. > > NCRFC constructed our own HRAP overlay shapefile by looping the OHD > Fortran code to create the lat/lon coordinates of the southwest > corners of all our HRAP boxes.  Our GIS focal then constructed the > shape file in the HRAP projection, by connecting the lat/lons.  It's > often instructive to load a grib into an independent third-party > application, such as NCEI's WCT viewer, which I believe allows one to > also load shapefiles.  One can then compare the grib with the HRAP > overlay and see if there are improper shifts.  This helps narrow down > if it's a local grib encoding problem, AWIPS viewer problem, etc. > > -Larry Ellis > NCRFC HAS > > > -- > Anonymous RTMA/URMA Discussion Group Virtual Lab Forum > https://vlab.noaa.gov/web/715073/discussions-forums-/-/message_boards/view_message/4285187 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts

[The reply an hour ago was done though Thunderbird email - nearly unreadable.  Here's another try using VLab interface directly.}

 

Larry,

Thank you very much for weighing in.  I was not aware of this 0.5 cell shift done at RFC - have been assuming that QPEs from RFCs (GRIB1 files sent via SBN) use the lower-left corner lat/lon as co-ord for grid box and do a 0.5 cell shift here.  When did this shifting at the RFCs start (starting with A2 MPE?), and has it been used by all RFCs in creating their QPEs?  And, does the activation of the grib_shift alters the (lat,lon) of the (1,1) point in the grib file (is that the lower-left corner of the (1,1) point, or the center of the (1,1) point?  In the case of NCRFC this is currently
Lat1 37.870000 Long1 -105.515000.

On the subject of AWIPS plotting of precip URMA: I asked our local GRIB2 expert earlier today whether there is a parameter in GRIB2 meta data that can be used to indicate where the lat/lon for a grid box is actually valid at (e.g. lower-left or center of box), thinking that that might be used by AWIPS graphics.  He told me he's not aware of such an option.

Ying
 

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts

[I've been trying to move this thread to the 'QPE' sub-forum, so far no luck yet.  Requested help from VLab Admin - if they can resolve this, the thread will be moved to the 'QPE' sub forum from greater RFC visibility, in case some RFCs have subscribed to the sub-forum but not the main RTMA/URMA Feedback forum.]

Hi Larry,  in re the 1/2 cell shift in A2 MPE you mentioned yesterday: has the shifting been done at NCRFC for some time?  How far back does it go?  I dug up some QPEs we received from NCRFC in Jan 2006, more than 12 years ago, and the (1,1) point has the same lat/lon as it does now.  Wouldn't any grid shifting affect the lat/lon of the (1,1) point, since the grid boxes themselves shouldn't move, it's only how the lat/lons are defined at?  Or did the 1/2 cell shifting in MPE done at NCRFC happen earlier than Jan 2006? 

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts

With help from VLab Admin, this thread is now in the QPE sub-forum of the RTMA/URMA feedback forum, so that VLab notifications for this topic can reach people who have subscribed to the QPE sub-forum but not the main RTMA/URMA forum (main forum subscribers do receive sub-forum posts).

Ying

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

A history of QPE download formats is given at:
https://water.weather.gov/precip/download.php

Note what's said under "Data Formats Pre-March 22nd, 2017 - Derived from Stage III QPE".  For the shapefile format, it says the latitude and longitude are for the HRAP grid "point".  That's a massive conceptual error...HRAP is not a point, it's an *area*, and the data value represents *mean depth* over the HRAP area, which when combined with the HRAP area denotes the *volume* of precipitation.  For other meteorological parameters, such as pressure, temperature, wind, etc., the lat/lon of a value encoded in shapefile or grib represents an infinitely small sample *point* on a continuous surface.  

For the ESRI shapefile format, GIS software wanted the lat/lon encoded to be the center of the HRAP box, but before fall 2007 it was incorrectly the southwest corner of the HRAP box (same lat/lon as the xmrg format).  They went back and recomputed the shapefile lat/lon coordinates to be the center of the HRAP box.  I'm guessing the 2007 date was probably also about the time they started to look at the encoding of other formats, such as grib1 encoding?  I don't remember dates for certain, but I am certain the grib_shift token was introduced in the AWIPS-1 era, and it's in our AWIPS-1 /awips/hydroapps/.Apps_defaults_site file.  

(Note, in the current download metadata, they mention August 9, 2007, but in 2010, the date was October 16, 2007.  Reference the internet Wayback machine, https://web.archive.org/web/20100513032047/http://water.weather.gov:80/precip/download.php)

I don't remember if we ever sent the native xmrg format via the SBN.  The current AWIPS-2 mpe directory structure has provision to send xmrg's via the SBN, and the directory is being populated, but those data do not appear to be transmitted.

Not meaning to throw Paul Tilles under the bus, but he and/or his group have been the longtime programmers for the gribit software, especially in the AWIPS-1 world.  He might still have some history on changes made to that program, at least in the AWIPS-1 era.

- Larry

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Thanks Larry. I went back further in digging for old QPEs.  In 2001/06/20 (17 years ago), QPEs from NCRFC did have different lat/lon for the (1,1) point:     Lat1 37.869000 Long1 -104.390000 for 2001/06/20 vs.      Lat1 37.870000 Long1 -105.515000 (current) the longitude difference  way more than half a grid cell difference though.  Same array dimension of (450 x 350).   Was there a general shifting  of the NCRFC array westward between 2001 and 2016? The NWRFC QPE's grids appeared to have stayed the same in the past 17 years.  OHRFC's are different:     Lat1 36.340000 Long1 -89.896000 in 2001 vs.    36.188000 Long1 -91.347000 (again, rather large difference in longitudes) ABRFC's grid stayed the same. We did start getting GRIB1 files from the RFCs as far back as 2001.   If there is a 1/2 grid cell shift, it would be reflected in the lat/lon of the (1,1) point, wouldn't it?  Does that mean that some RFCs are using the lower-left corner definition, some are using the center-of-grid-box definition? RFCs:  can you confirm whether the QPEs (GRIB1 files) you sent to NCEP via SBN have the lat/lon co-ordinate defined at the center of the grid box, or at the lower-left corner?  I.e.  the (lat1,lon1) in the grib header - are they the lat/lon at the center of the (1,1) point, or at the lower-left corner of the (1,1) point?  If you know there was shift of 1/2 of a grid cell, and remember when it happened, that would be even better. Ying On 06/20/2018 04:32 PM, VLab Notifications wrote: > > A history of QPE download formats is given at: > https://water.weather.gov/precip/download.php > > Note what's said under "Data Formats Pre-March 22nd, 2017 - Derived > from Stage III QPE".  For the shapefile format, it says the latitude > and longitude are for the HRAP grid "point". That's a massive > conceptual error...HRAP is not a point, it's an *area*, and the data > value represents *mean depth* over the HRAP area, which when combined > with the HRAP area denotes the *volume* of precipitation.  For other > meteorological parameters, such as pressure, temperature, wind, etc., > the lat/lon of a value encoded in shapefile or grib represents an > infinitely small sample *point* on a continuous surface. > > For the ESRI shapefile format, GIS software wanted the lat/lon encoded > to be the center of the HRAP box, but before fall 2007 it was > incorrectly the southwest corner of the HRAP box (same lat/lon as the > xmrg format).  They went back and recomputed the shapefile lat/lon > coordinates to be the center of the HRAP box. I'm guessing the 2007 > date was probably also about the time they started to look at the > encoding of other formats, such as grib1 encoding?  I don't remember > dates for certain, but I am certain the grib_shift token was > introduced in the AWIPS-1 era, and it's in our AWIPS-1 > /awips/hydroapps/.Apps_defaults_site file. > > (Note, in the current download metadata, they mention August 9, 2007, > but in 2010, the date was October 16, 2007.  Reference the internet > Wayback machine, > https://web.archive.org/web/20100513032047/http://water.weather.gov:80/precip/download.php) > > > I don't remember if we ever sent the native xmrg format via the SBN.  > The current AWIPS-2 mpe directory structure has provision to send > xmrg's via the SBN, and the directory is being populated, but those > data do not appear to be transmitted. > > Not meaning to throw Paul Tilles under the bus, but he and/or his > group have been the longtime programmers for the gribit software, > especially in the AWIPS-1 world.  He might still have some history on > changes made to that program, at least in the AWIPS-1 era. > > - Larry > > > -- > Anonymous RTMA/URMA Discussion Group Virtual Lab Forum > https://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/4293037 > VLab.Notifications@noaa.gov -- Ying Lin NCEP/EMC/Verification, Post-processing and Product Generation Branch NCWCP Cubicle No. 2015 Ying.Lin@noaa.gov
U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

I kept forgetting that replying via email (at least through Thunderbird interface) results in an awful-looking posting through VLab.  Here's the post directly through VLAB:

hanks Larry.

I went back further in digging for old QPEs.  In 2001/06/20 (17 years ago), QPEs from NCRFC did have different lat/lon for the (1,1) point:
    Lat1 37.869000 Long1 -104.390000 for 2001/06/20
vs.
     Lat1 37.870000 Long1 -105.515000 (current)
the longitude difference  way more than half a grid cell difference though.  Same array dimension of (450 x 350).   Was there a general shifting  of the NCRFC array westward between 2001 and 2016?

The NWRFC QPE's grids appeared to have stayed the same in the past 17 years.  OHRFC's are different:

    Lat1 36.340000 Long1 -89.896000 in 2001
vs.
   36.188000 Long1 -91.347000
(again, rather large difference in longitudes)

ABRFC's grid stayed the same.

We did start getting GRIB1 files from the RFCs as far back as 2001.   If there is a 1/2 grid cell shift, it would be reflected in the lat/lon of the (1,1) point, wouldn't it?  Does that mean that at present, some RFCs are using the lower-left corner definition, some are using the center-of-grid-box definition?

RFCs:  can you confirm whether the QPEs (GRIB1 files) you sent to NCEP via SBN have the lat/lon co-ordinate defined at the center of the grid box, or at the lower-left corner?  I.e.  the (lat1,lon1) in the grib header - are they the lat/lon at the center of the (1,1) point, or at the lower-left corner of the (1,1) point?  If you know there was shift of 1/2 of a grid cell, and remember when it happened, that would be even better.

Thank you.

Ying

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Yes, in regard to MSR's 1,1, grid...when our local HRAP mask was created in the early 1990's, we didn't have any good maps of the Souris River basin in Canada, which we have to model (it flows south into North Dakota then back north into Saskatchewan).  Sometime in the early 2000's, after delineating Souris River basins in IHABBS, we shifted our whole grid west to cover the Souris.  Despite a lot of coordination with OH, the Corps of Engineers and others, that caused problems for a lot of external users.

What's a good Linux utility to see the metadata from a grib1?  I use xxd to look a the first couple lines of the header.  I guess I'd look at a grib from around 2006 compared to today's, there should be a 0.5 degree shift to the N and E.

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Hello Ying:

I have been following the post and what Larry mentioned is as much and more than I know about the grib cell centers. We have been using two sets of software to generate the grib files that we disseminate via AWIPS. Off the top of my head, I am not sure whether they have different WMO headers, but when I am back in the office can provide examples of both if you have the means to compare them next week. One set, is converted from xmrg to grib1 using the old gribits program which has been around and un-changed for a long time. The other is via the AWIPS2 MPE software directly. During the early period of the AWIPS2 migration and up until about January of 2017 we had a couple of DRs that had to be addressed with this grid-cell shift in the AWIPS2 MPE software. As far as I can remember though I thought the main the issue was within the MPE display and do not know whether any changes were made to the export of the data in the process of working on the former issue. The last DR associated with this was AWIPS2 Redmine DR 19589.

David Welch

LMRFC

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Thanks Larry and David.

A good GRIB1 inventory/decoding utility is 'wgrib': http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html.  It should work on a Linux.  Here's a "verbose" inventory of one of yesterday's NCRFC QPE:

g14a2 $ wgrib -V QPE.157.2018062015.01h
rec 1:21:date 2018062014 APCP kpds5=61 kpds6=1 kpds7=0 levels=(0,0) grid=255 sfc 0-1hr acc: bitmap: 0 undef
  APCP=Total precipitation [kg/m^2]
  timerange 4 P1 0 P2 1 TimeU 1  nx 450 ny 350 GDS grid 5 num_in_ave 0 missing 0
  center 9 subcenter 157 process 161 Table 2 scan: WE:SN winds(grid)
  polar stereo: Lat1 37.870000 Long1 -105.515000 Orient -105.000000
     north pole (450 x 350) Dx 4762 Dy 4762 scan 64 mode 8
  min/max data 0 20.5  num bits 8  BDS_Ref 0  DecScale 0 BinScale -3

Today I dug out some QPE's from 14 years ago:

tfe09:wgrib -V QPE.009.157 (file from 2004/6/20, at the time each RFC's QPE was piled up into a single big file for the day):
rec 1:21:date 2004062000 APCP kpds5=61 kpds6=1 kpds7=0 levels=(0,0) grid=255 sfc
 0-1hr acc: bitmap: 0 undef
  APCP=Total precipitation [kg/m^2]
  timerange 4 P1 0 P2 1 TimeU 1  nx 450 ny 350 GDS grid 5 num_in_ave 0 missing 0
  center 9 subcenter 157 process 161 Table 2 scan: WE:SN winds(grid)
  polar stereo: Lat1 37.870000 Long1 -105.515000 Orient -105.000000
     north pole (450 x 350) Dx 4762 Dy 4762 scan 64 mode 8
  min/max data 0 2.875  num bits 5  BDS_Ref 0  DecScale 0 BinScale

Note the grid in 2004 appeared to be exactly the same as it is now.  If the 1/2 cell shift in "A2 MPE" happened in 2006, it seems it would have caused a shift in the Lat1/Long1 (lat/lon of the (1,1) grid box)) in the GRIB file.

Also looked at the LMRFC QPEs:

g14a2 $ wgrib -V QPE.154.2018062015.01h

Undefined parameter table (center 9-154 table 128), using NCEP-opn
rec 1:21:date 2018062014 O3TOT kpds5=237 kpds6=1 kpds7=0 levels=(0,0) grid=255 sfc 0-1hr acc: bitmap: 0 undef
  O3TOT=Total ozone [kg/m^2]
  timerange 4 P1 0 P2 1 TimeU 1  nx 419 ny 419 GDS grid 5 num_in_ave 0 missing 0
  center 9 subcenter 154 process 152 Table 128 scan: WE:SN winds(grid)
  polar stereo: Lat1 28.686000 Long1 -98.791000 Orient -105.000000
     north pole (419 x 419) Dx 4762 Dy 4762 scan 64 mode 8
  min/max data 0 39.25  num bits 9  BDS_Ref 0  DecScale 0 BinScale -3

vs.

tfe09:wgrib -V QPE.009.154  (from 2004/06/20)
rec 1:21:date 2004062001 APCP kpds5=61 kpds6=1 kpds7=0 levels=(0,0) grid=255 sfc
 0-1hr acc: bitmap: 0 undef
  APCP=Total precipitation [kg/m^2]
  timerange 4 P1 0 P2 1 TimeU 1  nx 419 ny 419 GDS grid 5 num_in_ave 0 missing 0
  center 9 subcenter 154 process 161 Table 2 scan: WE:SN winds(grid)
  polar stereo: Lat1 28.686000 Long1 -98.792000 Orient -105.000000
     north pole (419 x 419) Dx 4762 Dy 4762 scan 64 mode 8
  min/max data 0 32.75  num bits 9  BDS_Ref 0  DecScale 0 BinScale -3

There is a 0.001 deg difference in Long1, which is about 97m - less than 1/20 of the distance of half of a grid cell shift.  It seems more likely the result of a change in round-off errors when there is, say, a change in the grib encoding program.

Ying

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Okay everyone, there appears to definitely be a problem.  Last night I saved an hour of mpe, immediately copied the resultant grib to my work PC and uploaded to Google drive.  I also did the same with our local HRAP shapefile.  I just now loaded these in qgis at home, and the cells in the grib are definitely offset from the HRAP grid.  Visually, it doesn't look like exactly half a grid, but more like 3/4 a grid.  However, the HRAP shapefile I grabbed was reprojected from native HRAP projection to Unprojected WGS84 for use in AWIPS, and I'm not sure I trust that transformation.  But it looks like it's time to go back and examine everything computational in A2mpe.

It'd be interesting grab something from around 2012, we have some old A1 gribit executables from that time frame.  I do know when I would tail the A1mpe log file, every time we saved an hour, it would it explicitly print out it was shifting the grib lat/lon by 0.5 grids to the north and east.  We lost that helpful information with A2.

Larry

LE
Larry Ellis, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 4 Join Date: 2/22/16 Recent Posts

Second time around...original message disappeared.  Testing in NCEI's wct shows current A2mpe saved grib's are shifted to the southwest by half a grid.

When wgrib -V <filename> says: "Lat1 37.870000 Long1 -105.515000" what is that supposed to represent?  What it actually represents is the southwest corner of our local HRAP 1,1 (southwest corner of national HRAP grid 390,380).

Attached are a couple simple Fortran programs from the dmip project.  Compile with gfortran. 

In wct, I queried the lat/lon near the center of the northeast quarter of a positive grib cell.  I entered that into "latlon_to_hrap".  Truncating those results to the whole number, I entered those HRAP coordinates into "get_hrap_latlon".  That gave the lat/lon of the southwest corner of the HRAP box.  Mousing to those coordinates in WCT should have placed me at the southwest corner of that grib cell, if the grib were properly aligned with the HRAP grid.  What I got was basically the centroid of the grib cell.

One would expect that result if the grib encoding software were simply giving it the southwest corner of the HRAP and not computing the centroid of the HRAP (i.e. shift the HRAP lat/lon by 0.5 cells to the North and East.

We import these grib's into CHPS, however I can verify these are plotting in the correct location in the CHPS spatial display.  CHPS has an import routine where the grid geometry is specified, and it's probable the shift was corrected when the import configuration was done.

Larry

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts

Hi Larry,

Thank you very much for your perseverance in using VLAB messaging (I lost ~40 minutes of work last week on a disappeared message too, now I compose a message on on a local text editor first) and for testing/verifying the QPE grib file in WCT and CHPS displays.  "wgrib -V" output of "Lat1 37.870000 Long1 -105.515000" is the (lat,lon) of the (1,1) point of the NCRFC's GRIB1 QPE file.  That's why I keep thinking that RFCs still defines each grid box by the lat/lon of the lower-left corner of the box.  If A2mpe saved the GRIB file using "lat/lon defined at center of the grid box" , how is such a shift manifested in the GRIB file, if not in the GRIB header's grid definition?  

Here's a google doc summary of this issue: https://docs.google.com/document/d/1ZaYswOSPCjwQWCmj2-oF_PmOJEvcPiRGMgCxvWuwpC4/edit?usp=sharing. 

I went to some pains to look at the (Lat1,Lon1) of all 12 RFC's QPE over the years to see if there is a change that corresponds to the A2mpe 1/2 cell shift (not seeing it yet).  You can edit the doc (or comment, if you prefer). 

I sent an inquiry to another GRIB expert asking if there is an indicator in GRIB1 that shows where the lat/lon of a grid box is defined - last week I learned there isn't such a thing in GRIB2, and it seemed unlikely it could be in the much-simpler GRIB1.  We'll see what the expert says.  

Ying

LE
Larry Ellis, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 4 Join Date: 2/22/16 Recent Posts

I don't know if this muddies the water any.  In our CHPS/FEWS, we import the mpe grib1 files for our QPE.  In the qpe Import definition in our ModuleConfigFiles, we specify the gridStartPoint is the SW corner, which is why our QPE imports correctly.  However, checking the other import xml files, we have gridStartPoint set to SW for *all* the grib's we import, including those from NOHRSC, MRMS, RTMA, forecast grib's from GFE, etc., and also netCDF's from the National Water Model.

Larry

 

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Hi Larry,

I suspect that the GRIB1 RFC QPEs have been using the "southwest/lower-left" corner of grid box lat/lon definition all along (anyone knows otherwise?) but then what was the "A2mpe" 1/2-cell shift about, and if a shift did happen, how was it reflected in the resulting GRIB file, if not in the grid spec?.  What you said late last Friday in re NCEI WCT plot might provide a clue.  I'm rather swamped now but when the flood recedes a bit I'd like to ask the WCT developers (anyone has a contact for WCT?) how they "know" exactly how a grid box is defined, in their plots of RFC QPEs. If you don't mind I'll quote what you said ("Testing in NCEI's wct shows current A2mpe saved grib's are shifted to the southwest by half a grid") when contacting WCT. 

Ying

U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Today I heard from the expert on whether GRIB1 has a way to specify whether lat/lon of a grid box (e.g. lat1/lon1 for the (1,1) point) is defined at the center or the lower-left corner of the grid box.  The answer is no.

Ying

YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
Test - please ignore this.  Trying to see if following-up on this thread by email/cc is feasible. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

On Thu, Jul 5, 2018 at 6:06 PM VLab Notifications <VLab.Notifications@noaa.gov> wrote:

Today I heard from the expert on whether GRIB1 has a way to specify whether lat/lon of a grid box (e.g. lat1/lon1 for the (1,1) point) is defined at the center or the lower-left corner of the grid box.  The answer is no.

Ying


--
Anonymous RTMA/URMA Discussion Group Virtual Lab Forum https://vlab.noaa.gov/web/715073/discussions-forums-/-/message_boards/view_message/4377315 VLab.Notifications@noaa.gov
YL
Ying Lin, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 48 Join Date: 3/27/17 Recent Posts
We need to revive this thread.  CC'ing Paul Tilles - Larry mentioned that Paul and his group have been the longtime programmers for the gribit software, especially in the AWIPS-1 world and he might still have some history on changes made to that program, at least in the AWIPS-1 era.  Paul, after the holiday weekend, would you mind taking a look into this, or letting us know who we might contact instead on the subject? 

To recap: this past June Larry Ellis (NCRFC) told us (up in this thread) that around 2007 work was done in A2 mpe on the lat/lon point encoded in the grib1 represents the *center* of the grib1 grid box, and When mpe runs gribit on the xmrg to create the grib1 file, it will shift the xmrg lat/lon by 0.5 cells to the N and E (which is the center).  The grib1 file is then transmitted on the SBN, ingested by NCEP, etc., 

I looked at the GRIB header of QPEs sent to NCEP over the years going back to 2001, but did not see such a shift in the grid definition (https://docs.google.com/document/d/1ZaYswOSPCjwQWCmj2-oF_PmOJEvcPiRGMgCxvWuwpC4/edit?usp=sharing).  Recently Taylor Dixon (NWRFC) sent us some specifics about the NWRFC grid which had me further stumped.  Don't know how to forward an email into a vlab thread, so I'm copying Taylor's text, and with his two attachments (mpe_grib1_chps.png, QPE_MPE_CHPS.asc)  attached to this message.

-----------------------------
From Taylor Dixon, 19 Nov:

Hi Ying,

I've attached our MPE-produced QPE grid geometry (as read from our CHPS platform) and an ASCII file produced from the grid (also through CHPS).  Bear with me, as I'm not a GIS expert, but I picked up on a couple of details:

    In the image, the grid definition appears to match you document, but the coordinates of the lower left cell are not listed (instead the coordinates of the upper left and lower right cells are listed)
    In the ASCII header, the origin coordinates (unfortunately listed in meters, I believe) are defined as those from the lower left cell's centroid
    Also in the header, the cellsize is listed as 4762.5 (km)

Digging in a bit more within CHPS (after importing the MPE grib1 file), I can see the following (sorry, couldn't snap an image that shows this):

    Lower left grid cell centroid:  38.448 / -123.074 
    Approximate centroid of grid cell one row below the origin (same column):  38.412 / -123.059

So, it appears that:

    Our grid cells are  4762.5 km x 4762.5 km in size
    Our grids are defined according to the centroid of the lower left (origin) grid cell
    Our grid origin (lower left) cell appears to be shifted one row higher than what you're expecting

Does this seem to be the case?

Best regards,
-Taylor

Taylor Dixon
Development and Operations Hydrologist
NOAA NWS NWRFC
-----------------------------
 
The grid specs in Taylor's NWRFC grid do not quite agree with what we see in the GRIB1 header of the QPE: here's what one of the QPE files' header looks like, according to 'wgrib':

wgrib -V QPE.159.2018111912.06h
rec 1:21:date 2018111812 APCP kpds5=61 kpds6=1 kpds7=0 levels=(0,0) grid=255 sfc 18-24hr acc:
  APCP=Total precipitation [kg/m^2]
  timerange 4 P1 18 P2 24 TimeU 1  nx 302 ny 357 GDS grid 5 num_in_ave 0 missing 0
  center 9 subcenter 159 process 172 Table 2 scan: WE:SN winds(grid)
  polar stereo: Lat1 38.412000 Long1 -123.059000 Orient -105.000000
     north pole (302 x 357) Dx 4763 Dy 4763 scan 64 mode 8
  min/max data 0 0.508  num bits 16  BDS_Ref 0  DecScale 3 BinScale -7
The Lat1/Long1 above is the same as that from June 2001. 

Now, using the Lat1/Lon1 info in the GRIB header, I computed the relative position of Taylor's corner grid points in the GRIB file's coordinate and found this:

  NWRFC grid according to Taylor's specs        (i,j) values on the grid
    (i,j)       lat/lon                         specified by NWRFC grib header
    (1,1)       38.44800   -123.07401           (1,2)
    (1,ny)      51.37939   -130.34946           (0.5, ny+0.5)
    (nx,1)      40.53862   -108.61345           (nx+0.5, 0.5)

Is it possible that the grid specs in the GRIB1 QPE headers are not quite the same as what the RFCs actually define them? 

It's not just NWRFC.  There've been questions about the Puerto Rico grid, though SERFC confirmed that the Lat1/Long1 in the PR QPE grib header is the lower-left corner of the PR (1,1) grid box. 

Are all RFCs now using the "center of the grid box" definition now?  If the NWRFC grid has been shifted northeastward by half of a grid size in 2007, but the shift was not reflected in the GRIB header (since the Lat1/Long1 had stayed the same), we'd expect the (1,1) point would be the (1.5,1.5) point in the old grid, and the (1,ny) point be the (1.5, ny+0.5) point in the old grid, the (nx,1) point be the (nx+0.5, 1.5) point. 

Thanks -

Ying



On Wed, Nov 21, 2018 at 2:16 PM VLab Notifications <VLab.Notifications@noaa.gov> wrote:
Test - please ignore this.  Trying to see if following-up on this thread by email/cc is feasible. 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

On Thu, Jul 5, 2018 at 6:06 PM VLab Notifications <VLab.Notifications@noaa.gov> wrote:

Today I heard from the expert on whether GRIB1 has a way to specify whether lat/lon of a grid box (e.g. lat1/lon1 for the (1,1) point) is defined at the center or the lower-left corner of the grid box.  The answer is no.

Ying


--
Anonymous RTMA/URMA Discussion Group Virtual Lab Forum https://vlab.noaa.gov/web/715073/discussions-forums-/-/message_boards/view_message/4377315VLab.Notifications@noaa.gov

--
Ying Lin RTMA/URMA Discussion Group Virtual Lab Forum http://vlab.noaa.gov/web/715073/home/-/message_boards/view_message/5359298VLab.Notifications@noaa.gov
U
Anonymous, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

A ticket was filed with NCF (#220084.  Possible AWIPS2 problem?) on 22 Feb to investigate this issue.  This is the document included with the ticket: https://docs.google.com/document/d/1ihMv-03ZiwLZOlGU472TBMTXfhjvOGh8fUS7l_uw4c4/edit?usp=sharing. ​​​​​

If you would like to add to the document but do not yet have write permission, please drop me a line and I'll add your name to the list of people who can edit it. 

Ying

Jeffrey Craven, modified 6 Years ago.

RE: Shift in URMA QPE06 compared to RFC QPE06

Youngling Posts: 90 Join Date: 9/24/12 Recent Posts
Thank you Ying!

JPC

Jeff Craven
Chief, Statistical Modeling Branch
National Weather Service, W/STI-12
Meteorological Development Laboratory (MDL)
Room 10410, SSMC2
Silver Spring, MD 20910
(301) 427-9475 office
(816) 506-9783 cell/text
@jpcstorm


On Wed, Apr 3, 2019 at 4:03 PM VLab Notifications <VLab.Notifications@noaa.gov> wrote:

A ticket was filed with NCF (#220084.  Possible AWIPS2 problem?) on 22 Feb to investigate this issue.  This is the document included with the ticket: https://docs.google.com/document/d/1ihMv-03ZiwLZOlGU472TBMTXfhjvOGh8fUS7l_uw4c4/edit?usp=sharing. ​​​​​

If you would like to add to the document but do not yet have write permission, please drop me a line and I'll add your name to the list of people who can edit it. 

Ying


--
Anonymous RTMA/URMA Discussion Group Virtual Lab Forum https://vlab.noaa.gov/web/715073/discussions-forums-/-/message_boards/view_message/6305915 VLab.Notifications@noaa.gov
Reply to Main Thread
Quick Reply

Bookmarks

There are no bookmarks in this folder.