ocssw
V2022
|
emeta_exploit.c
Go to the documentation of this file.
152 if ( ias_odl_get_field( projection->units, sizeof(projection->units), IAS_ODL_String, emeta_odl,
158 if ( ias_odl_get_field( projection->datum, sizeof(projection->datum), IAS_ODL_String, emeta_odl,
161 if ( ias_odl_get_field( projection->datum, sizeof(projection->datum), IAS_ODL_String, emeta_odl,
188 if ( ias_odl_get_field( projection->projprms, IAS_PROJ_PARAM_SIZE*sizeof(double), IAS_ODL_Double, emeta_odl,
502 if ( ias_odl_get_field( band_emeta->sat.x_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
509 if ( ias_odl_get_field( band_emeta->sat.x_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
516 if ( ias_odl_get_field( band_emeta->sat.y_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
523 if ( ias_odl_get_field( band_emeta->sat.y_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
530 if ( ias_odl_get_field( band_emeta->sat.z_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
537 if ( ias_odl_get_field( band_emeta->sat.z_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
557 if ( ias_odl_get_field( band_emeta->sun.x_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
564 if ( ias_odl_get_field( band_emeta->sun.x_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
571 if ( ias_odl_get_field( band_emeta->sun.y_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
578 if ( ias_odl_get_field( band_emeta->sun.y_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
585 if ( ias_odl_get_field( band_emeta->sun.z_num, ANG_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
592 if ( ias_odl_get_field( band_emeta->sun.z_den, (ANG_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
613 sprintf(field_name, "BAND%02d_SCA%02d_MEAN_HEIGHT", band_emeta->band, band_emeta->rpc[i].sca_num );
614 if ( ias_odl_get_field( &band_emeta->rpc[i].mean_hgt, sizeof(double), IAS_ODL_Double, emeta_odl,
620 sprintf(field_name, "BAND%02d_SCA%02d_MEAN_L1R_LINE_SAMP", band_emeta->band, band_emeta->rpc[i].sca_num );
621 if ( ias_odl_get_field( band_emeta->rpc[i].mean_l1r, 2*sizeof(double), IAS_ODL_Double, emeta_odl,
627 sprintf(field_name, "BAND%02d_SCA%02d_MEAN_L1T_LINE_SAMP", band_emeta->band, band_emeta->rpc[i].sca_num );
628 if ( ias_odl_get_field( band_emeta->rpc[i].mean_l1t, 2*sizeof(double), IAS_ODL_Double, emeta_odl,
634 sprintf(field_name, "BAND%02d_SCA%02d_LINE_NUM_COEF", band_emeta->band, band_emeta->rpc[i].sca_num );
635 if ( ias_odl_get_field( band_emeta->rpc[i].line_num, NUM_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
641 sprintf(field_name, "BAND%02d_SCA%02d_LINE_DEN_COEF", band_emeta->band, band_emeta->rpc[i].sca_num );
642 if ( ias_odl_get_field( band_emeta->rpc[i].line_den, (NUM_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
648 sprintf(field_name, "BAND%02d_SCA%02d_SAMP_NUM_COEF", band_emeta->band, band_emeta->rpc[i].sca_num );
649 if ( ias_odl_get_field( band_emeta->rpc[i].samp_num, NUM_RPC_COEF*sizeof(double), IAS_ODL_Double, emeta_odl,
655 sprintf(field_name, "BAND%02d_SCA%02d_SAMP_DEN_COEF", band_emeta->band, band_emeta->rpc[i].sca_num );
656 if ( ias_odl_get_field( band_emeta->rpc[i].samp_den, (NUM_RPC_COEF-1)*sizeof(double), IAS_ODL_Double, emeta_odl,
920 l1r_l = (eband->rpc[isca].line_num[0] + eband->rpc[isca].line_num[1]*l1t_l + (eband->rpc[isca].line_num[2]
924 l1r_s = (eband->rpc[isca].samp_num[0] + eband->rpc[isca].samp_num[1]*l1t_l + (eband->rpc[isca].samp_num[2]
1038 fprintf( ofp, "map info = {UTM, 1.500, 1.500, %6.3lf, %6.3lf, %6.3lf, %6.3lf, %d, North, WGS-84, units=Meters}\n",
1043 fprintf( ofp, "map info = {Polar Stereographic, 1.500, 1.500, %6.3lf, %6.3lf, %6.3lf, %6.3lf, WGS-84, units=Meters}\n",
1045 fprintf( ofp, "projection info = {31, 6378137.000, 6356752.314, -71.000000, 0.000000, 0.0, 0.0, WGS-84, Polar Stereographic, units=Meters}\n" );
1113 fprintf( ofp, "map info = {UTM, 1.500, 1.500, %6.3lf, %6.3lf, %6.3lf, %6.3lf, %d, North, WGS-84, units=Meters}\n",
1118 fprintf( ofp, "map info = {Polar Stereographic, 1.500, 1.500, %6.3lf, %6.3lf, %6.3lf, %6.3lf, WGS-84, units=Meters}\n",
int emeta_read_file_header(EMETA *emeta, IAS_OBJ_DESC *emeta_odl)
Definition: emeta_exploit.c:78
int emeta_allocate_ephemeris(EMETA *emeta, int nephem)
Definition: emeta.c:12
int emeta_read_band_meta(EMETA_BAND *band_emeta, IAS_OBJ_DESC *emeta_odl)
Definition: emeta_exploit.c:361
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second band
Definition: HOWTO_Add_a_product.txt:42
Definition: emeta.h:56
int emeta_read_ephemeris(EMETA *emeta, IAS_OBJ_DESC *emeta_odl)
Definition: emeta_exploit.c:229
Definition: emeta_exploit.h:18
subroutine satang(pi, rad, tilt, roll, pitch, yaw, xlon, ylat, senz, sena)
Definition: satang.f:3
Definition: emeta.h:79
int emeta_band_number_to_index(EMETA *emeta, int band)
Definition: emeta_geometry.c:76
IAS_OBJ_DESC * ias_odl_read_tree(const char *p_ODLFile)
Definition: ias_odl_read_tree.c:25
Definition: emeta.h:102
int emeta_find_scas(double l1t_line, double l1t_samp, EMETA_BAND *eband, double *l1r_line, double *l1r_samp)
Definition: emeta_exploit.c:889
int emeta_angles_rpc(double l1t_line, double l1t_samp, EMETA *emeta, int band, double *satang, double *sunang)
Definition: emeta_exploit.c:666
int emeta_read_projection(EMETA_SCENE_PROJ *projection, IAS_OBJ_DESC *emeta_odl)
Definition: emeta_exploit.c:118
int emeta_write_angfile(char *root_filename, short *sat_zn, short *sat_az, short *sun_zn, short *sun_az, EMETA_FRAME *frame)
Definition: emeta_exploit.c:966
Definition: ias_structures.h:24
int ias_odl_get_field(void *p_MemoryAddr, int MemorySize, IAS_ODL_TYPE ValueType, IAS_OBJ_DESC *p_ODLTree, const char *p_ClassName, const char *p_LabelName, int *p_Count)
Definition: ias_odl_get_field.c:36