#include #include #include #include #include #include #include "neuron_switch160715.h" #include "iop_Rrs_neuron.h" /* ------------------------------------------------------------------------------- Lecture des differrentes Look Up Tables ------------------------------------------------------------------------------- */ void neuron_lect_LUTswitch(int idSensor, char *lutpath) { FILE *fic; int i,j,poub; char *ligne=malloc(sizeof(char)*150), nomfic[1000]; float fpoub; if( (poub = strcmp(lutpath, "None")) == 0){ if( (lutpath = getenv("IOP_LUTS_PATH")) == NULL) {perror("IOP_LUTS_PATH"); exit(-1);} } /* ===================================== SeaWiFS ===================================== */ if( idSensor == idSEAWIFS ){ /* ----- LUTs for Rrs490/Rrs555 >= .85 ------ */ sprintf(nomfic,"%s/%s", lutpath, rsupSW_LUT_POIDS); if( (fic=fopen(nomfic,"r")) == NULL) {perror(nomfic); exit(-1);} fgets(ligne,150,fic); for(i=0; i= .85 ------ */ sprintf(nomfic,"%s/%s", lutpath, rsupMO_LUT_POIDS); if( (fic=fopen(nomfic,"r")) == NULL) {perror(nomfic); exit(-1);} fgets(ligne,150,fic); for(i=0; i= .85 ------ */ sprintf(nomfic,"%s/%s", lutpath, rsupOL_LUT_POIDS); if( (fic=fopen(nomfic,"r")) == NULL) {perror(nomfic); exit(-1);} fgets(ligne,150,fic); for(i=0; i