awips2/ncep/gov.noaa.nws.ncep.viz.tools/AODTLIB/odtgssstvalue.c
root 9bb8decbcf Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 133dc97f67 [formerly a02aeb236c] [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 377dcd10b9 [formerly 3360eb6c5f]
Former-commit-id: 8e80217e59
2012-01-06 08:55:05 -06:00

46 lines
1.1 KiB
C

/* include file containing all AODT library global variables */
#include "../inc/odtlib.h"
/* include file containing all AODT library variable definitions */
#include "../inc/odtlibdefs-x.h"
int aodtv64_getsstvalue( float *sst )
/* return SST file name and SST value to application from AODT library
Inputs : none
Outputs: AODT SST value
Return : 115 : invalid SST value
0 : o.k.
*/
{
int iret;
/* set SST value to return variable */
*sst=odtcurrent_v64->IR.sst;
iret=0;
if(*sst<-90.0) iret=115;
return iret;
}
int aodtv64_setsstvalue( float cursst )
/* read SST value from file and assign to AODT library variable
Inputs : AODT library SST value
Outputs: none
Return : -21 : invalid storm center location
115 : invalid SST value
0 : o.k.
*/
{
int iret;
/* check for valid storm center location */
if((odtcurrent_v64->IR.latitude<-999.0)||(odtcurrent_v64->IR.latitude<-999.0)) {
iret=-21;
} else {
/* set sst structure element for AODT library*/
odtcurrent_v64->IR.sst=cursst;
iret=0;
if(odtcurrent_v64->IR.sst<-90.0) iret=115;
}
return iret;
}