Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
49 lines
1.8 KiB
C
49 lines
1.8 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"
|
|
/* include file containing format statements for shared functions */
|
|
#include "../inc/odtlibfuncs.h"
|
|
|
|
|
|
int aodtv64_getIRimageinfo( int *date,int *time,int *sat,char *csat)
|
|
/* return IR image information to application from AODT library
|
|
Inputs : none
|
|
Outputs: AODT library IR image date/time/satellite information
|
|
Return : 0 : o.k.
|
|
*/
|
|
{
|
|
char *retstrng;
|
|
|
|
retstrng=(char *)calloc((size_t)12,sizeof(char));
|
|
|
|
/* set IR image date to return variable */
|
|
*date=odtcurrent_v64->IR.date;
|
|
/* set IR image time to return variable */
|
|
*time=odtcurrent_v64->IR.time;
|
|
/* assign IR image satellite type to return variable */
|
|
*sat=odtcurrent_v64->IR.sattype;
|
|
(void)aodtv64_sattypes(odtcurrent_v64->IR.sattype,retstrng);
|
|
strcpy(csat,retstrng);
|
|
csat[strlen(retstrng)]='\0';
|
|
free(retstrng);
|
|
|
|
return 0;
|
|
}
|
|
|
|
int aodtv64_setIRimageinfo( int date,int time,int sat)
|
|
/* set IR image date/time within AODT library memory
|
|
Inputs : AODT library IR image date/time information
|
|
Outputs: none
|
|
Return : 0 : o.k.
|
|
*/
|
|
{
|
|
/* assign IR image date to AODT library variable */
|
|
odtcurrent_v64->IR.date=date;
|
|
/* assign IR image time to AODT library variable */
|
|
odtcurrent_v64->IR.time=time;
|
|
/* assign IR image satellite type to AODT library variable */
|
|
odtcurrent_v64->IR.sattype=sat;
|
|
|
|
return 0;
|
|
}
|