|
DAS
3.1.6 - 18/09/2017
|
functions for DAS loading files . More...
#include <windows.h>#include <stdio.h>#include <io.h>#include <fcntl.h>#include <sys/types.h>#include <sys/stat.h>#include <stdlib.h>#include <string.h>#include <time.h>#include "mgui.h"#include "bil.h"#include "DAS_Spatram.h"#include "DOAS.h"#include "dil.h"
Include dependency graph for Load.c:Go to the source code of this file.
Functions | |
| int | AssignParam (int mod) |
| Assign parameters to the CP labels. . More... | |
| char * | CodeEq2Name (int code) |
| code Equipment to Name More... | |
| int | DFetch () |
| void | E_CItm () |
| void | E_Col () |
| void | E_DREM (void) |
| void | E_PItm () |
| void | E_Pix () |
| void | E_RItm () |
| void | E_Row () |
| char * | ERR_Option (int ercode) |
| Alerts for OPTION.INI errors Creates a message window reporting the reasons for the error. More... | |
| void | FlushLine (char *buf, int nc, FILE *f) |
| Flush line of file f read a maximum of nc character since when the read char is different from ch(10) =line feed =LF. More... | |
| int | LoadDasSysCol (void) |
| Load system colors. Procedure that load the DAS colors in the file {homedir}/config/DASSysColor.INI. More... | |
| int | LoadDB_DefectPixel (char *buff) |
| Load Defective pixel mask. Procedure that load the Defective pixel mask in the file {homedir}/config/ccd_defect_Danbo.cor. More... | |
| int | LoadDB_DispCoeff (void) |
| Load dispersion parameters. Procedure that load the dispersion parameters from file {homedir}/DOAS/DispCoeff.ini. More... | |
| int | LoadDB_Options (void) |
| Load Options. Procedure that load the Options in the file {homedir}/config/Options.INI. More... | |
| void | LoadDefaultDFONT (void) |
| Load Default Fonts. Procedure that load the DAS fonts if the file {homedir}/config/DASFonts.ini is not present. More... | |
| void | LoadDefaultDPAL (void) |
| Load Default system colors. Procedure that load the DAS colors if the file {homedir}/config/DASSysColor.INI is not present. More... | |
| int | LoadDFONT (void) |
| Load Fonts. Procedure that load the DAS fonts from {homedir}/config/DASFonts.ini AVAILABLE for Releases > 2.5.5. More... | |
| int | LoadEquipment (void) |
| Load the type of Equipment. {homedir}/config/param.ini. More... | |
| int | LoadExec (char *fname) |
| Load file for automatic execution. Procedure that load the file for automatic execution. More... | |
| int | LoadFTPSetting (void) |
| Load FTP Setting for daily back-up. More... | |
| int | LoadGeoCoord (void) |
| Load Geographic Coordinate of the station. Procedure that load the Geographic Coordinate of the station in the file {homedir}/config/GeoCoord.INI. More... | |
| int | LoadGeoDB (void) |
| int | LoadHardware (void) |
| int | LoadParam (void) |
| Load the exe parameters. Procedure that load the parameters for CCD, Stepper Motors and Peltier from file {homedir}/config/param.ini. More... | |
| int | LoadParamLog (void) |
| Load file for CCD status. Procedure that load the file {homedir}/config/paramlog.ini, for the actual status of the CCD. More... | |
| int | LoadTestPalette (char *nf) |
| Load a test palette. Procedure that load a test palette. More... | |
| int | LoadTruePalette (void) |
| Load the palette map. Procedure that load the palette map from file {homedir}/Palettes/Danbomap1.map. More... | |
| void | ReadLine (char *buf, int nc, FILE *f) |
| Read Line on a file Read one record of nc character on the file f. More... | |
| void | sleep (clock_t wait) |
| Pauses for a specified number of milliseconds. . More... | |
| void | Status (char *tit) |
| Writes information's on the Status label . More... | |
Variables | |
| char * | ccdCorrKC [] = {{"DREM"}, {"PIX"}, {"PITM"}, {"COL"}, {"CITM"}, {"ROW"}, {"RITM"}, {"DEND"}} |
| int | CItem |
| das | DAS |
| DAS structure. More... | |
| dftp | DFTP |
| d_geo | DGEO |
| geographical coordinates structure More... | |
| doas | DOAS |
| palette | DPAL |
| long | IsCnt |
| char | IsFile [16] |
| long | IsSiz |
| char * | Istruction |
| int | MaskedCol [100][6] |
| Masked column array. More... | |
| int | MaskedPix [100][6] |
| Masked pixel's array. More... | |
| int | MaskedRow [100][6] |
| Masked rows array. More... | |
| omuthr | OMUTHR |
| paramini | PARAM |
| Param.ini. More... | |
| int | PItem |
| int | RItem |
| number of Pixel, Column, Row Item More... | |
functions for DAS loading files .
Definition in file Load.c.
| int AssignParam | ( | int | mod | ) |
Assign parameters to the CP labels.
.
| mod | – Not used |
Definition at line 990 of file Load.c.
References paramini::ccdWx, paramini::ccdWy, paramini::ccdXoff, paramini::ccdYoff, gui::ContrPanel, paramini::CoolPw, stepm::cop_perc, DBDEMO, flag::exemode, das::Flag, das::Gui, int2hertz(), int2perc(), paramini::ITemp, controlpanel::lbl_Par, MANUAL, MObjectSetText(), stepm::NAMS, das::Paramini, omuthr::PCPower, controlpanel::power, stepm::power, PRGFILE, controlpanel::slope, stepm::slope, controlpanel::speed, stepm::speed, stepm::speed_Hz, controlpanel::step, stepm::step, stepm::step_fraz, das::StepM, SZAMASTERM, SZAMODE, TEMPORIZED, TESTAD, TESTAMS, TESTCCD, paramini::TPelt, val2fraz(), and paramini::VBin.
Referenced by SZA_FirstCalc().
Here is the call graph for this function:
Here is the caller graph for this function:| char* CodeEq2Name | ( | int | code | ) |
code Equipment to Name
| code | = code of the equipment |
Definition at line 371 of file Load.c.
Referenced by CCDSetupCB(), DB_InitCamera(), and WriteParaminiCB().
Here is the caller graph for this function:| int DFetch | ( | ) |
Definition at line 87 of file Load.c.
References ccdCorrKC, CLEN, IsCnt, and Istruction.
Referenced by LoadDB_DefectPixel().
Here is the caller graph for this function:| void E_CItm | ( | ) |
Definition at line 135 of file Load.c.
References CItem, E_DREM(), IsCnt, Istruction, MaskedCol, das::Paramini, and paramini::VBin.
Referenced by LoadDB_DefectPixel().
Here is the call graph for this function:
Here is the caller graph for this function:| void E_Col | ( | ) |
| void E_DREM | ( | void | ) |
| void E_PItm | ( | ) |
Definition at line 108 of file Load.c.
References E_DREM(), IsCnt, Istruction, MaskedPix, and PItem.
Referenced by LoadDB_DefectPixel().
Here is the call graph for this function:
Here is the caller graph for this function:| void E_Pix | ( | ) |
| void E_RItm | ( | ) |
Definition at line 159 of file Load.c.
References E_DREM(), IsCnt, Istruction, MaskedRow, das::Paramini, RItem, and paramini::VBin.
Referenced by LoadDB_DefectPixel().
Here is the call graph for this function:
Here is the caller graph for this function:| void E_Row | ( | ) |
| char* ERR_Option | ( | int | ercode | ) |
Alerts for OPTION.INI errors
Creates a message window reporting the reasons for the error.
| ercode | = code of the error |
Definition at line 325 of file Load.c.
Referenced by MGUIMain().
Here is the caller graph for this function:| void FlushLine | ( | char * | buf, |
| int | nc, | ||
| FILE * | f | ||
| ) |
Flush line of file f read a maximum of nc character since when the read char is different from ch(10) =line feed =LF.
Definition at line 54 of file Load.c.
References ch.
Referenced by LoadAMS(), LoadDasSysCol(), LoadDB_DispCoeff(), LoadDB_Options(), LoadEquipment(), LoadFTPSetting(), LoadParam(), and LoadWlstep().
Here is the caller graph for this function:| int LoadDasSysCol | ( | void | ) |
Load system colors. Procedure that load the DAS colors in the file {homedir}/config/DASSysColor.INI.
Definition at line 811 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIREQUIPMENT, palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_lblUP, palette::DB_BG_Plbl, palette::DB_BG_RButt, palette::DB_FG_Albl, palette::DB_FG_lblUP, palette::DB_FG_Plbl, palette::DB_FG_RButt, palette::DB_Sel, palette::DB_UnSel, palette::DB_UnSelFG, bil::DFILEM, FIXED_SMALL, FlushLine(), HELV_SMALL, MSetInputPromptFgRGB(), MSetInputPromptFonts(), MSetInputPromptRGB(), MSetMessageDialogFgRGB(), MSetMessageDialogFonts(), MSetMessageDialogRGB(), and ReadLine().
Referenced by MGUIMain(), and ModifyConfFileCB().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadDB_DefectPixel | ( | char * | buff | ) |
Load Defective pixel mask. Procedure that load the Defective pixel mask in the file {homedir}/config/ccd_defect_Danbo.cor.
Definition at line 182 of file Load.c.
References CITM, COL, DEND, DFetch(), DREM, E_CItm(), E_Col(), E_DREM(), E_PItm(), E_Pix(), E_RItm(), E_Row(), IsCnt, IsSiz, Istruction, PITM, PIX, RITM, and ROW.
Referenced by DB_InitCamera(), and SelDefPixFileCB().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadDB_DispCoeff | ( | void | ) |
Load dispersion parameters. Procedure that load the dispersion parameters from file {homedir}/DOAS/DispCoeff.ini.
Definition at line 234 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, FlushLine(), doas::k1, doas::k2, MMessageDialog(), doas::pixref, ReadLine(), doas::wlc, and doas::wlref.
Referenced by DB_EqTypeCB(), DB_EqTypePlotCB(), InitCCD_AMS(), MDCreateDOAS_MainSh(), MGUIMain(), and RunOLP().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadDB_Options | ( | void | ) |
Load Options. Procedure that load the Options in the file {homedir}/config/Options.INI.
Definition at line 390 of file Load.c.
References _MAX_PATH, optionini::aaopmode, optionini::amsprogbar, optionini::avgautor, optionini::avgmode, BIL, d_fileman::CONFIGDIREQUIPMENT, optionini::darkremove, optionini::darksource, optionini::DEFPIXFILENAME, flag::DeltaSZA, dsza::DeltaSZA, bil::DFILEM, DI_FileExist(), flag::DispBlindPix, das::DOption, optionini::emshutter, optionini::filename, optionini::filtertype, FLAG, das::Flag, FlushLine(), optionini::ftpbackup, optionini::hlineafter, optionini::hlinebefore, optionini::imgtype, mige::linked, optionini::maxlvlar, dsza::MaxSZA, optionini::measmode, das::MIGE, dsza::MinSZA, optionini::mirrorimg, N_AVG, omuthr::PID_kd, omuthr::PID_ki, omuthr::PID_kp, optionini::pixcorr, flag::plotW, flag::plotYRange, ReadLine(), optionini::refertemp, optionini::resetEnabled, optionini::resetFreq, optionini::resetType, optionini::savingmode, flag::settempvar, optionini::shuttertype, optionini::smposmode, SZADelta, SZAMax, TOTTEXP, omuthr::TRType, mige::type, flag::Wl, XAX, and YAX.
Referenced by MGUIMain(), and ModifyConfFileCB().
Here is the call graph for this function:
Here is the caller graph for this function:| void LoadDefaultDFONT | ( | void | ) |
| void LoadDefaultDPAL | ( | void | ) |
Load Default system colors. Procedure that load the DAS colors if the file {homedir}/config/DASSysColor.INI is not present.
Definition at line 762 of file Load.c.
References palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_lblUP, palette::DB_BG_Plbl, palette::DB_BG_RButt, palette::DB_FG_Albl, palette::DB_FG_lblUP, palette::DB_FG_Plbl, palette::DB_FG_RButt, palette::DB_Sel, and palette::DB_UnSel.
Referenced by MGUIMain().
Here is the caller graph for this function:| int LoadDFONT | ( | void | ) |
| int LoadEquipment | ( | void | ) |
Load the type of Equipment. {homedir}/config/param.ini.
Definition at line 1089 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIRCOMMON, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, paramini::EqType, FlushLine(), das::Paramini, and ReadLine().
Referenced by MGUIMain().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadExec | ( | char * | fname | ) |
Load file for automatic execution. Procedure that load the file for automatic execution.
| *fname | pointer to the char variable with the file name containing the keywords |
Definition at line 1534 of file Load.c.
References PrgCnt, PrgSiz, and Program.
Referenced by D_AutoExecution(), DB_ToolsKeyB_CB(), PRG_Check(), and SZA_FirstCalc().
Here is the caller graph for this function:| int LoadFTPSetting | ( | void | ) |
Load FTP Setting for daily back-up.
Definition at line 286 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, FlushLine(), dftp::ftppwd, dftp::ftpserver, dftp::ftpuser, and ReadLine().
Referenced by MGUIMain().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadGeoCoord | ( | void | ) |
Load Geographic Coordinate of the station. Procedure that load the Geographic Coordinate of the station in the file {homedir}/config/GeoCoord.INI.
Definition at line 1477 of file Load.c.
References _MAX_PATH, d_geo::alititude, BIL, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, das::DGeo, d_geo::latitude, d_geo::longitude, d_geo::s_name, and d_geo::timezone.
Referenced by MGUIMain().
Here is the caller graph for this function:| int LoadGeoDB | ( | void | ) |
Definition at line 1432 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, das::DGeo, d_geo::newalititude, d_geo::newlatitude, d_geo::newlongitude, d_geo::news_name, d_geo::newtimezone, and d_geo::nitem.
Referenced by MDCreateDASConfig(), and MGUIMain().
Here is the caller graph for this function:| int LoadHardware | ( | void | ) |
Definition at line 1170 of file Load.c.
References _MAX_PATH, BIL, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, nova::DigIn, nova::DigOut, das::Nova, ReadLine(), and nova::type.
Referenced by MGUIMain().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadParam | ( | void | ) |
Load the exe parameters. Procedure that load the parameters for CCD, Stepper Motors and Peltier from file {homedir}/config/param.ini.
Definition at line 1215 of file Load.c.
References _MAX_PATH, BIL, paramini::ccdWx, paramini::ccdWy, paramini::ccdXoff, paramini::ccdYoff, d_fileman::CONFIGDIREQUIPMENT, paramini::CoolPw, bil::DFILEM, FlushLine(), paramini::ITemp, paramini::maxtexp, das::Paramini, omuthr::PCPower, ReadLine(), paramini::TPelt, and paramini::VBin.
Referenced by MDCreateDOAS_MainSh(), RunOLP(), and SZA_FirstCalc().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadParamLog | ( | void | ) |
Load file for CCD status. Procedure that load the file {homedir}/config/paramlog.ini, for the actual status of the CCD.
| int LoadTestPalette | ( | char * | nf | ) |
Load a test palette. Procedure that load a test palette.
Definition at line 908 of file Load.c.
References BIL, mtcl::black, mtcl::Color, mtcl::db, mtcl::dg, bil::DPLOT, mtcl::dr, d_view::DrawBG, IDY, MAllocColor(), MBlackColor(), MD_CreateBRowShell(), MTCL, MWhiteColor(), mtcl::PLColor, mtcl::white, and mtcl::yellow.
Referenced by LoadPaletteCB().
Here is the call graph for this function:
Here is the caller graph for this function:| int LoadTruePalette | ( | void | ) |
Load the palette map. Procedure that load the palette map from file {homedir}/Palettes/Danbomap1.map.
Definition at line 948 of file Load.c.
References _MAX_PATH, BIL, mtcl::black, mtcl::Color, mtcl::db, bil::DFILEM, mtcl::dg, bil::DPLOT, mtcl::dr, d_view::DrawBG, d_fileman::HOMEDIRECTORY, MAllocColor(), MBlackColor(), MTCL, MWhiteColor(), mtcl::PLColor, mtcl::white, and mtcl::yellow.
Referenced by MGUIMain().
Here is the call graph for this function:
Here is the caller graph for this function:| void ReadLine | ( | char * | buf, |
| int | nc, | ||
| FILE * | f | ||
| ) |
Read Line on a file
Read one record of nc character on the file f.
| *buf | pointer to a character buffer |
| nc | number of char to be read |
| *f | FILE to read in, prevously opened |
Definition at line 72 of file Load.c.
Referenced by DOAS_LoadConfig(), ExMaster(), LoadAMS(), LoadDasSysCol(), LoadDB_DispCoeff(), LoadDB_Options(), LoadEquipment(), LoadFTPSetting(), LoadHardware(), LoadParam(), LoadWlstep(), and ReadLogFile().
Here is the caller graph for this function:| void sleep | ( | clock_t | wait | ) |
Pauses for a specified number of milliseconds.
.
Definition at line 1566 of file Load.c.
Referenced by DE_InitMotor().
Here is the caller graph for this function:| void Status | ( | char * | tit | ) |
Writes information's on the Status label
.
Definition at line 1556 of file Load.c.
References controlpanel::Albl_Status, gui::ContrPanel, das::Gui, and MObjectSetText().
Referenced by AMS_DoPos(), AutoR_TestMeas(), AutoRange(), D_AutoExecution(), D_Average(), D_AverageTFix(), D_Calibra(), D_Homing(), D_WaitSZA(), DAS_Error(), DB_InitCamera(), DB_Pause(), DB_save_img(), DB_SelButt_CB(), DB_ToolsKeyB_CB(), DemoInitMotor(), E_AutoRange(), E_Expo(), E_GetCCD(), E_HGratCal(), E_HgScan(), E_Home_SM1(), E_Home_SM2(), E_Home_SM3(), E_Home_SM4(), E_Home_SM5(), E_Home_SM6(), E_QjScan(), E_SetCCDOffSet(), E_SetCCDPow(), E_SetCCDTemp(), E_SetCCDVBin(), ExMaster(), FTP_Back_UP(), HomeAzimFast(), HomeFiltersFast(), HomeGratingFast(), HomeMirror(), HomeNDFiltersFast(), HomeZenithFast(), InitCCD_AMS(), PerformMeas(), PID_Calc(), SD_FilterW(), SD_Grating(), SD_Mirror(), SD_NDFilterW(), SD_Zenith_H(), ShutCB(), Task_CCD_Temp(), and Task_HomeGrat().
Here is the call graph for this function:| int CItem |
Definition at line 40 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_CItm().
| long IsCnt |
| long IsSiz |
Definition at line 51 of file Load.c.
Referenced by LoadDB_DefectPixel().
| char* Istruction |
| int MaskedCol[100][6] |
Masked column array.
Definition at line 38 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_CItm().
| int MaskedPix[100][6] |
Masked pixel's array.
Definition at line 37 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_PItm().
| int MaskedRow[100][6] |
Masked rows array.
Definition at line 39 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_RItm().
| int PItem |
Definition at line 40 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_PItm().
| int RItem |
number of Pixel, Column, Row Item
Definition at line 40 of file Load.c.
Referenced by DB_DefectPixCorr(), and E_RItm().
