awips2/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/dgdriv_c/grcrnav.c
Brad Gonzales 632020195a Issue #628 committing PGEN code received from Plummer on 4-19-2012.
Former-commit-id: fda897d2d0 [formerly 253e8bc948] [formerly fda897d2d0 [formerly 253e8bc948] [formerly 295cbf95e5 [formerly 0816cd253c86acc699cb90866131619c4679f631]]]
Former-commit-id: 295cbf95e5
Former-commit-id: 2a3bf4ec32 [formerly ae3d17c698]
Former-commit-id: a610dcde73
2012-05-10 16:50:45 -05:00

41 lines
1.3 KiB
C
Executable file

#include "geminc.h"
#include "gemprm.h"
void grc_rnav ( const float *rnvblk, char *proj, int *kx, int *ky,
int *iret )
/************************************************************************
* GR_RNAV *
* *
* This subroutine gets the projection and grid size from a grid *
* navigation block. *
* *
* GR_RNAV ( RNVBLK, PROJ, KX, KY, IRET ) *
* *
* Input parameters: *
* RNVBLK (LLNNAV) REAL Navigation block *
* *
* Output parameters: *
* PROJ CHAR* Projection name *
* KX INTEGER Number of points in x dir *
* KY INTEGER Number of points in y dir *
* IRET INTEGER Return code *
* 0 = normal return *
* -6 = invalid navigation *
** *
* Log: *
* M. desJardins/GSFC 8/88 Modified from GR_RSNV *
* M. Linda/GSC 9/97 Corrected right border of prologue *
* D.W.Plummer/NCEP 2/06 Translated from FORTRAN *
***********************************************************************/
{
char tproj[5];
int nc, ier;
/*---------------------------------------------------------------------*/
gr_rnav ( (float *)rnvblk, tproj, kx, ky, iret, sizeof(tproj) );
tproj[4] = '\0';
cst_lstr ( tproj, &nc, &ier );
tproj[nc] = '\0';
strcpy ( proj, tproj );
return;
}