mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
MetOp IASI projections
This commit is contained in:
parent
a0ab782dc1
commit
c340158d51
3 changed files with 14 additions and 3 deletions
|
|
@ -302,6 +302,8 @@ namespace metop
|
|||
iasi_products.has_timestamps = true;
|
||||
iasi_products.timestamp_type = satdump::ImageProducts::TIMESTAMP_LINE;
|
||||
iasi_products.set_timestamps(iasi_reader.timestamps);
|
||||
iasi_products.set_tle(satellite_tle);
|
||||
iasi_products.set_proj_cfg(loadJsonFile(resources::getResourcePath("projections_settings/metop_abc_iasi.json")));
|
||||
iasi_products.save_as_matrix = true;
|
||||
|
||||
for (int i = 0; i < 8461; i++)
|
||||
|
|
|
|||
9
resources/projections_settings/metop_abc_iasi.json
Normal file
9
resources/projections_settings/metop_abc_iasi.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "normal_single_line",
|
||||
"scan_angle": 100,
|
||||
"roll_offset": -1.7,
|
||||
"timestamp_offset": -2,
|
||||
"image_width": 60,
|
||||
"gcp_spacing_x": 5,
|
||||
"gcp_spacing_y": 5
|
||||
}
|
||||
|
|
@ -80,12 +80,12 @@ int main(int argc, char *argv[])
|
|||
rgb_cfg.equation = "1-ch1,1-ch1,1-ch1"; //"(ch3 * 0.4 + ch2 * 0.6) * 2.2 - 0.15, ch2 * 2.2 - 0.15, ch1 * 2.2 - 0.15";
|
||||
rgb_cfg.equalize = true;
|
||||
|
||||
img_pro.images[0].image.equalize();
|
||||
img_pro.images[0].image.to_rgb();
|
||||
img_pro.images[7900].image.equalize();
|
||||
img_pro.images[7900].image.to_rgb();
|
||||
|
||||
satdump::warp::WarpOperation operation;
|
||||
operation.ground_control_points = gcps;
|
||||
operation.input_image = img_pro.images[0].image; // satdump::make_composite_from_product(img_pro, rgb_cfg);
|
||||
operation.input_image = img_pro.images[7900].image; // satdump::make_composite_from_product(img_pro, rgb_cfg);
|
||||
operation.output_width = 2048 * 8;
|
||||
operation.output_height = 1024 * 8;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue