目录
ENVI格式数据、raw格式数据RPC正射校正
rpc参数在hdr文件中的格式
RPC正射校正方法
处理程序下载地址
raw格式裸数据,为了识别打开影像,需要从xml中获取图像宽度高度、数据位数、波段数等信息,然后把元数据信息转成hdr头文件,变成envi支持的数据格式,其中ENVI格式数据hdr头文件中,包括rpc参数,如下所示:
ENVI
samples = 16384
lines = 5400
bands = 1
header offset = 0
file type = ENVI Standard
data type = 12
interleave = BSQ
sensor type = Unknown
byte order = 0
rpc info = {
2699.500000,8191.500000,52.357200,117.629500,
0.000000,5400.000000,16384.000000,0.526500,
1.152700,600.000000,-0.001278,-0.347763,
0.605367,-0.001583,0.412044,-0.344532,
0.606840,-0.528148,0.939820,-0.000102,
0.407822,-0.602572,0.763151,-0.343228,
0.316974,1.078548,0.603512,-0.520680,
0.929612,0.000006,0.315007,0.490199,
0.486093,0.315461,0.700191,0.486348,
0.481822,0.567750,0.572601,0.313842,
-0.014586,0.006317,-0.023225,-0.001341,
-0.031199,0.049252,0.002423,0.000462,
0.011873,-0.000018,0.000534,0.057219,
0.009167,0.000837,0.061013,0.057426,
0.010128,0.051245,0.009306,0.000858,
0.064523,0.054001,0.054763,0.059265,
0.065681,0.019999,0.009988,0.054465,
0.009553,0.000338,-0.056346,-0.053796,
-0.053454,-0.056630,-0.048736,-0.056514,
-0.056162,-0.058772,-0.065298,-0.058939,
-0.005975,-0.000384,-0.016569,-0.002431,
0.005638,0.006538,-0.000688,-0.001756,
0.001629,0.000045,0,0,
1}
其中rpc info有90个rpc参数和3个仿射变换参数,参数格式顺序如下:
LINE_OFF: +6000.00000000 pixels
SAMP_OFF: +6000.00000000 pixels
LAT_OFF: +45.24496162 degrees
LONG_OFF: +116.37993240 degrees
HEIGHT_OFF: +771.500 meters
LINE_SCALE: +6000.00000000 pixels
SAMP_SCALE: +6000.00000000 pixels
LAT_SCALE: +0.32195297 degrees
LONG_SCALE: +0.44117865 degrees
HEIGHT_SCALE: +800.500 meters
LINE_NUM_COEFF_1: +0.0027966903787643040
LINE_NUM_COEFF_2: -0.1996233496846974000
LINE_NUM_COEFF_3: -1.1411119008147590000
LINE_NUM_COEFF_4: +0.0132179609899462400
LINE_NUM_COEFF_5: +0.0010650910059130520
LINE_NUM_COEFF_6: +0.0000029713792582804
LINE_NUM_COEFF_7: +0.0000264318061036408
LINE_NUM_COEFF_8: -0.0047782964364779970
LINE_NUM_COEFF_9: -0.0017885116216671430
LINE_NUM_COEFF_10: -0.0000019593374610390
LINE_NUM_COEFF_11: -0.0000082214422517837
LINE_NUM_COEFF_12: +0.0000040258990010553
LINE_NUM_COEFF_13: -0.0000059826455535703
LINE_NUM_COEFF_14: +0.0000005660105195393
LINE_NUM_COEFF_15: +0.0000287299981784964
LINE_NUM_COEFF_16: -0.0000034071826143817
LINE_NUM_COEFF_17: +0.0000026196584371091
LINE_NUM_COEFF_18: -0.0000013783566226157
LINE_NUM_COEFF_19: +0.0000025006943244756
LINE_NUM_COEFF_20: -0.0000000307464121959
LINE_DEN_COEFF_1: +1.0000000000000000000
LINE_DEN_COEFF_2: +0.0008198414330160853
LINE_DEN_COEFF_3: +0.0013634711151036230
LINE_DEN_COEFF_4: -0.0000061916394666941
LINE_DEN_COEFF_5: +0.0000074117523035142
LINE_DEN_COEFF_6: +0.0000075458389136722
LINE_DEN_COEFF_7: -0.0000020172948182307
LINE_DEN_COEFF_8: -0.0000225752606114988
LINE_DEN_COEFF_9: -0.0000033014189573326
LINE_DEN_COEFF_10: -0.0000023223959888043
LINE_DEN_COEFF_11: +0.0000000437173452507
LINE_DEN_COEFF_12: +0.0000000228915419825
LINE_DEN_COEFF_13: -0.0000017319213975762
LINE_DEN_COEFF_14: -0.0000000027775910557
LINE_DEN_COEFF_15: -0.0000000680598679712
LINE_DEN_COEFF_16: -0.0000033446996303571
LINE_DEN_COEFF_17: -0.0000000038288810903
LINE_DEN_COEFF_18: +0.0000000359808918065
LINE_DEN_COEFF_19: +0.0000001267461098403
LINE_DEN_COEFF_20: -0.0000000000675709162
SAMP_NUM_COEFF_1: -0.0033434061111266050
SAMP_NUM_COEFF_2: +1.1764458652484540000
SAMP_NUM_COEFF_3: -0.2438159949513030000
SAMP_NUM_COEFF_4: -0.0024368809285573780
SAMP_NUM_COEFF_5: -0.0039762244349567780
SAMP_NUM_COEFF_6: +0.0008073396942971287
SAMP_NUM_COEFF_7: -0.0001747870811035437
SAMP_NUM_COEFF_8: +0.0047023498915988980
SAMP_NUM_COEFF_9: -0.0002604659860403350
SAMP_NUM_COEFF_10: -0.0000013023552802657
SAMP_NUM_COEFF_11: -0.0000016794346091320
SAMP_NUM_COEFF_12: -0.0001078239431266132
SAMP_NUM_COEFF_13: -0.0000405989458792220
SAMP_NUM_COEFF_14: -0.0000284552361607954
SAMP_NUM_COEFF_15: +0.0000185983246105714
SAMP_NUM_COEFF_16: +0.0000037554600928503
SAMP_NUM_COEFF_17: +0.0000058871391977764
SAMP_NUM_COEFF_18: +0.0000065591589274820
SAMP_NUM_COEFF_19: -0.0000005297210734766
SAMP_NUM_COEFF_20: +0.0000000590971997857
SAMP_DEN_COEFF_1: +1.0000000000000000000
SAMP_DEN_COEFF_2: -0.0025653411832698870
SAMP_DEN_COEFF_3: +0.0037984603174981890
SAMP_DEN_COEFF_4: -0.0010006546995595220
SAMP_DEN_COEFF_5: -0.0000445975377976183
SAMP_DEN_COEFF_6: -0.0000061405254558658
SAMP_DEN_COEFF_7: +0.0000003143114477251
SAMP_DEN_COEFF_8: +0.0001013680916614286
SAMP_DEN_COEFF_9: +0.0000052386302017690
SAMP_DEN_COEFF_10: -0.0000251188690753402
SAMP_DEN_COEFF_11: -0.0000000391593707298
SAMP_DEN_COEFF_12: +0.0000012727357029972
SAMP_DEN_COEFF_13: +0.0000009158015071723
SAMP_DEN_COEFF_14: +0.0000001495396328468
SAMP_DEN_COEFF_15: -0.0000021368547136263
SAMP_DEN_COEFF_16: +0.0000007034829946990
SAMP_DEN_COEFF_17: -0.0000001529686933004
SAMP_DEN_COEFF_18: +0.0000002419321921622
SAMP_DEN_COEFF_19: +0.0000000303153723393
SAMP_DEN_COEFF_20: +0.0000000415778624987
把rpc参数写入hdr之后,可以使用gdalwarp对envi数据进行rpc正射校正处理了;
处理之前
rpc正射校正处理之后