Commit 9ff87b98 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added function gridDefProj().

parent c237c6ed
......@@ -724,6 +724,9 @@ void gridDestroy(int gridID);
/* gridDuplicate: Duplicate a Grid */
int gridDuplicate(int gridID);
/* gridDefProj: Define the projection ID of a Grid */
void gridDefProj(int gridID, int projID);
/* gridInqProj: Get the projection ID of a Grid */
int gridInqProj(int gridID);
......
......@@ -996,10 +996,16 @@ void gridInqYstdname(int gridID, char *ystdname)
}
int gridInqProj(int gridID)
void gridDefProj(int gridID, int projID)
{
grid_t *gridptr = gridID2Ptr(gridID);
gridptr->proj = projID;
}
int gridInqProj(int gridID)
{
grid_t *gridptr = gridID2Ptr(gridID);
return gridptr->proj;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment