00001
00002
00003 const int cam_id_front=3, cam_id_side=2;
00004 const double fwhm[2]={1.0, 1.0};
00005
00006 const double fwhm_x=3.0;
00007 const double fwhm_y=0.5;
00008
00009 const int cthreshold[2]={320,960};
00010 const float threshold_lower=-10000.0;
00011 const float threshold_upper=10000.0;
00012
00013 const int update_flag=0;
00014
00015 const int debug=0;
00016
00017 struct code_param cpa;
00018
00019 cpa.croprad=0.99;
00020
00021
00022
00023 cpa.rotcoef0= 2.0*M_PI*1e-3*(452.- 31.7);
00024 cpa.rotcoef1= -2.0*M_PI*1e-3*49.0;
00025 cpa.rotcoef2= -2.0*M_PI*1e-3*84.0;
00026
00027 const double omegaconst[2]={1.7, 1.2};
00028 const double normconst[2]={0.03/600., 0.01/600.};
00029 const int maxiterconst[2]={300,200};
00030 const double convconst[2]={1e-4, 1e-4};
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 const int b_order=5;
00041 double b_coef[6]={0.34,1.37,-2.04,2.70,-1.94,0.559};
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 const int minfid=10000;
00056 const int maxfid=10199;
00057 const int nfid=(maxfid-minfid+1);
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 const float rsun_min=1850.0;
00068 const float rsun_max=1940.0;
00069
00070 const double dsun_obs_min=149597870691.0*0.9;
00071 const double dsun_obs_max=149597870691.0*1.1;
00072
00073 const float p0_min=-1;
00074 const float p0_max=361.0;
00075
00076 const float b0_min=-7.4;
00077 const float b0_max=7.4;
00078
00079 const float X0_min=2047.5-118.0;
00080 const float X0_max=2047.0+118.0;
00081
00082 const float Y0_min=2047.5-118.0;
00083 const float Y0_max=2047.5+118.0;
00084
00085 const float vrad_min=-5000.0;
00086 const float vrad_max=5000.0;
00087
00088 const float limit_centerdiff[2]={0.1, 0.05};
00089 const float limit_centerdiff_cosmic=1.0;
00090 const float limit_rsundiff=0.1;
00092
00093
00094
00095
00096
00097
00098
00099
00100 float rad_cosmic_ray=0.98;
00101 long time_limit=200;
00102 float limit_offpoint=20.0;
00103 float filtergram_cadence=1.8;
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121 float coef0[2][3]={{1151.30, -130.552, -704.380},{916.720, -291.264 , -436.917}};
00122 float coef1[2][3]={{2517.30, -339.439, -1943.22},{1369.02 , -424.949, -808.191}};
00123 float coef2[2][3]={{0.0262323, -0.00716024, 0.0240938},{0.0302306, -0.0134902, 0.0346718}};
00124 float coef3[2][2]={{0.17, 0.27}, {0.17, 0.27}};
00125 float coef4[2][3]={{2255.87, 117.511, -1541.76},{1034.88, 95.1960, -659.753}};
00126
00127
00128 const float lambda0=6173.3433;
00129 const float lambda_sep=68.8e-3;
00130 const float v_c=2.99792e8;
00131 const float radsun_mm=695.5;
00132
00133 float cof_combx[12]={0.145544,0.00812206, 0.233276, 0.121743, 0.190385,0.105851, 0.135802,0.0402982, 0.0571681,-0.0916504,0.0853409,-0.0318835};
00134 float cof_comby[12]={0.283009, 0.0545081, 0.235930, 0.0957727, 0.245011, 0.0815215, 0.124488, 0.0380576, 0.0556949, -0.0611975, -0.0492513, -0.103545};
00135
00136
00137
00138 float cof[2][6]={{0.187514, 0.542523, 0.284918, 0.143162,-0.136262,-0.0218554}, {0.311833, 0.400153, 0.205032,0.0928222,-0.00851838, -0.00132237}};
00139
00140 const float factor[2][2]={{6.2, 9.3}, {6.2, 9.3}};
00141 const int limit_cosmic=100000;
00142
00143
00144
00145
00146 const char *keyfsn = "FSN";
00147 const char *keytobs = "T_OBS";
00148 const char *keycamera = "CAMERA";
00149 const char *keycam = "HCAMID";
00150 const char *keyfocus = "HCFTID";
00151 const char *keyfocusflat="HMI_SEQ_ID_FOCUS";
00152 const char *keyinstrument="INSTRUME";
00153
00154 const char *keywl="HWLTID";
00155 const char *keypl="HPLTID";
00156
00157 const char *keytstart = "T_START";
00158 const char *keytstop = "T_STOP";
00159 const char *fidkey="FID";
00160 const char *isskey="HWLTNSET";
00161 const char *flatnkey="FLAT_REC";
00162 const char *keyversion = "FLATFIELD_VERSION";
00163 const char *fsnskey="FSN_START";
00164 const char *keyday="DAY";
00165 const char *recnumkey="RECNUMOFF";
00166 const char *querykey="FLATQ";
00167
00168 const char *keynewpix = "ROTF_FLATFIELD";
00169 const char *keynpairs = "ROTF_N_PAIRS";
00170 const char *keycadence = "ROTF_CADENCE";
00171
00172 const char *keylink1 = "T_OBS_OFFPOINT";
00173 const char *keylink2 = "T_OBS_DARK";
00174 const char *keylink3 = "T_OBS_BADPIX";
00175
00176 const char *keycount = "COUNT";
00177 const char *keyexmax = "EXMAX";
00178 const char *keylimit = "DETLIM";
00179 const char *linkoff = "OFFPOINT_FLAT";
00180 const char *linkdark = "DARK";
00181 const char *linkbad = "BAD_PIXEL";
00182
00183 const char *segmentname="flatfield";
00184 const char *segmentname_offpoint="offpoint_flatfield";
00185 const char *segmentname_badpix="bad_pixel_list";
00186 const char *segmentname_dark="dark";
00187 const char *segmentname_cosmic="cosmic_ray_hits";
00188 const char *segmentname_val="level";
00189 const char *segmentname_sig="significance";
00190
00191 char *camera_str_front="HMI_FRONT2";
00192 char *camera_str_side="HMI_SIDE1";
00193
00194
00195
00196 const char *lev1_r_sun="RSUN_LF";
00197 const char *lev1_imsc="CDELT1";
00198 const char *lev1_dist="DSUN_OBS";
00199 const char *lev1_p0="CROTA2";
00200 const char *lev1_b0="CRLT_OBS";
00201 const char *lev1_x0="X0_LF";
00202 const char *lev1_y0="Y0_LF";
00203 const char *lev1_vr="OBS_VR";
00204
00205
00206
00207
00208
00209
00210 char *filename_flatfield_out="hmi.flatfield";
00211
00212 char *filename_flatfield_series="hmi.flatfield";
00213
00214 char *filename_badpix="hmi.bad_pixel_list";
00215 char *filename_offpoint="hmi.offpoint_flatfield";
00216 char *filename_dark="hmi.dark";
00217
00218
00219 char *filename_flatfield_rel="su_production.flatfield_rel";
00220
00221
00222 char *filename_rot_flatfield="hmi.flatfield_update";
00223
00224
00225 char *filename_flatfield_fid="su_production.flatfield_fid";
00226
00227
00228 char *filename_cosmic="su_production.cosmic_rays";
00229
00230
00231
00232 char *filename_cosmic2_out="hmi.cosmic_rays";
00233
00234