/** * _more_ * * @param idomain _more_ * @return _more_ */ public int aodtv72_calcintensity(int idomain) /* * Compute intensity values CI, Final T#, and Raw T#. Inputs : global * structure odtcurrent_v72 containing current analysis Outputs : none * Return : 71 : storm is over land 0 : o.k. */ { int iok; int iret; int strength; if ((odtcurrent_v72IR.land == 1)) { iok = aodtv72_initcurrent(true, odtcurrent_v72IR); iret = 71; } else { /* calculate current Raw T# value */ odtcurrent_v72IR.Traw = aodtv72_Tnoraw(odtcurrent_v72IR, idomain); odtcurrent_v72IR.TrawO = odtcurrent_v72IR.Traw; /* check for spot analysis or full analysis using history file */ /* if(hfile_v72==(char *)NULL) { */ if (true) { /* perform spot analysis (only Traw) */ odtcurrent_v72IR.Tfinal = odtcurrent_v72IR.Traw; odtcurrent_v72IR.Tfinal3 = odtcurrent_v72IR.Traw; odtcurrent_v72IR.CI = odtcurrent_v72IR.Traw; odtcurrent_v72IR.CIadjp = aodtv72_latbias( odtcurrent_v72IR.CI, odtcurrent_v72IR.latitude, odtcurrent_v72IR.longitude, odtcurrent_v72IR); /* * printf("%f %f %f %f\n",odtcurrent_v72IR.CI,odtcurrent_v72IR. * latitude * ,odtcurrent_v72->IR.longitude,odtcurrent_v72->IR.CIadjp); */ odtcurrent_v72IR.rule9 = 0; /* odtcurrent_v72->IR.TIEraw=aodtv72_TIEmodel(); */ /* odtcurrent_v72->IR.TIEavg=odtcurrent_v72->IR.TIEraw; */ /* odtcurrent_v72->IR.TIEflag=aodtv72_tieflag(); */ } else { } iret = 0; } return iret; }
/** * _more_ * * @param redo _more_ * @param odtcurrent_v72IR _more_ * @return _more_ */ int aodtv72_initcurrent(boolean redo, StormAODTInfo.IRData odtcurrent_v72IR) /* * initialize odtcurrent_v72 array or reset values for land interaction * situations */ { int b, bb; // char comm[50]="\0"; if (!redo) { // odtcurrent_v72=(struct odtdata *)malloc(sizeof(struct odtdata)); odtcurrent_v72IR.latitude = 999.99f; odtcurrent_v72IR.longitude = 999.99f; odtcurrent_v72IR.land = 0; odtcurrent_v72IR.autopos = 0; // strcpy(odtcurrent_v72IR.comment,comm); // diagnostics_v72=(char *)calloc((size_t)50000,sizeof(char)); // hfile_v72=(char *)calloc((size_t)200,sizeof(char)); // fixfile_v72=(char *)calloc((size_t)200,sizeof(char)); // b=sizeof(float); // bb=sizeof(double); // fcstlat_v72=(float *)calloc((size_t)5,b); // fcstlon_v72=(float *)calloc((size_t)5,b); // fcsttime_v72=(double *)calloc((size_t)5,bb); } odtcurrent_v72IR.Traw = 0.0f; odtcurrent_v72IR.TrawO = 0.0f; odtcurrent_v72IR.Tfinal = 0.0f; odtcurrent_v72IR.Tfinal3 = 0.0f; odtcurrent_v72IR.CI = 0.0f; odtcurrent_v72IR.eyet = 99.99f; odtcurrent_v72IR.warmt = 99.99f; odtcurrent_v72IR.cloudt = 99.99f; odtcurrent_v72IR.cloudt2 = 99.99f; odtcurrent_v72IR.cwcloudt = 99.99f; odtcurrent_v72IR.warmlatitude = 999.99f; odtcurrent_v72IR.warmlongitude = 999.99f; odtcurrent_v72IR.eyecdosize = 0.0f; odtcurrent_v72IR.eyestdv = 0.0f; odtcurrent_v72IR.cloudsymave = 0.0f; odtcurrent_v72IR.eyescene = 0; odtcurrent_v72IR.cloudscene = 0; odtcurrent_v72IR.eyesceneold = -1; odtcurrent_v72IR.cloudsceneold = -1; odtcurrent_v72IR.rule9 = 0; odtcurrent_v72IR.rule8 = 0; odtcurrent_v72IR.LBflag = 0; odtcurrent_v72IR.rapiddiss = 0; odtcurrent_v72IR.eyefft = 0; odtcurrent_v72IR.cloudfft = 0; odtcurrent_v72IR.cwring = 0; odtcurrent_v72IR.ringcb = 0; odtcurrent_v72IR.ringcbval = 0; odtcurrent_v72IR.ringcbvalmax = 0; odtcurrent_v72IR.CIadjp = 0.0f; odtcurrent_v72IR.rmw = -99.9f; /* odtcurrent_v72->IR.TIEflag=0; */ /* odtcurrent_v72->IR.TIEraw=0.0; */ /* odtcurrent_v72->IR.TIEavg=0.0; */ /* odtcurrent_v72->IR.sst=-99.9; */ // if(!redo) odtcurrent_v72->nextrec=NULL; /* added by CDB */ return 0; }