From f7c74ae1c5c56d247bd1b3cf804e475e84d04772 Mon Sep 17 00:00:00 2001 From: Shay Carter Date: Fri, 8 Apr 2022 14:15:40 -0600 Subject: [PATCH] Small changes to New Grid doc based on Tiffany's review: - update the table parameter warning because our example WILL encounter this error - update the psql query and output with additional columns - add a note for projection types that not all fields are necessary - update the filename for our test data since it changed - update the name tag in the note to match the name tag example above - add a note about default parameter table location (.../-1/-1/) - add a few more commands to the wgrib2 section to represent all commands used on this page --- docs/edex/new-grid.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/edex/new-grid.md b/docs/edex/new-grid.md index d832d1a237..4122022802 100644 --- a/docs/edex/new-grid.md +++ b/docs/edex/new-grid.md @@ -38,7 +38,7 @@ Look in the current log file (/awips2/edex/logs/edex-ingestGrib-[YYYYMMDD].log) ... -!!! warning "This step may fail if the parameter is not yet defined. The error will look like:" +!!! warning "This step will fail for our example because the parameter is not yet defined. The error will look like:"
 INFO  2020-07-20 20:34:17,710 2565 [GribPersist-1] GridDao: EDEX - Discarding record due to missing or unknown parameter mapping: /grid/2018-05-02_00:01:44.0_(0)/GribModel:161:0:97/null/null/403/Missing/FH/500.0/-999999.0
@@ -63,12 +63,11 @@ Though the grib file has been decoded, it has been given a generic name with its
 When a grid is ingested a record is added to the `grid_coverage` table with its navigation information:
 
     psql metadata
-    
-    metadata=# select nx,ny,dx,dy,majoraxis,minoraxis,la1,lo1,lov,latin1,latin2 from gridcoverage where id=(select distinct(location_id) from grid_info where datasetid='GribModel:161:0:97');
-    
-    nx  | ny  |  dx   |  dy   | majoraxis | minoraxis |    la1    | lo1 | lov | latin1 | latin2 
-    -----+-----+-------+-------+-----------+-----------+-----------+-----+-----+--------+--------
-    600 | 640 | 0.005 | 0.005 |           |           | 40.799999 | 261 |     |        |       
+  
+    metadata=> select nx,ny,dx,dy,majoraxis,minoraxis,la1,lo1,lov,latin1,latin2,spacingunit,lad,la2,latin,lo2,firstgridpointcorner from gridcoverage where id=(select distinct(location_id) from grid_info where datasetid='GribModel:161:0:97');
+     nx  | ny  |  dx   |  dy   | majoraxis | minoraxis |    la1    | lo1 | lov | latin1 | latin2 | spacingunit | lad | la2 | latin | lo2 | firstgridpointcorner 
+    -----+-----+-------+-------+-----------+-----------+-----------+-----+-----+--------+--------+-------------+-----+-----+-------+-----+----------------------
+     600 | 640 | 0.005 | 0.005 |           |           | 40.799999 | 261 |     |        |        | degree      |     |     |       |     | UpperLeft
     (1 row)
   Compare with the projection info returned by wgrib2 on the original file (look at the bolded sections below and make sure they match up with the corresponding entries returned from the database above):