MetOp IASI projections

This commit is contained in:
Aang23 2022-05-22 20:40:49 +02:00
parent a0ab782dc1
commit c340158d51
3 changed files with 14 additions and 3 deletions

View file

@ -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++)

View 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
}

View file

@ -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;