mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
Retune M22 a bit
This commit is contained in:
parent
e9545598c9
commit
cbfbc400a5
5 changed files with 35 additions and 8 deletions
|
|
@ -140,7 +140,34 @@ namespace meteor
|
|||
msumr_products.has_timestamps = true;
|
||||
msumr_products.timestamp_type = satdump::ImageProducts::TIMESTAMP_LINE;
|
||||
msumr_products.set_tle(satdump::general_tle_registry.get_from_norad(norad));
|
||||
msumr_products.set_timestamps(msumr_timestamps);
|
||||
|
||||
std::vector<double> filter_timestamps = msumr_timestamps;
|
||||
double avg = avg_overflowless(filter_timestamps);
|
||||
double last = 0;
|
||||
for (double &v : filter_timestamps)
|
||||
{
|
||||
if (abs(avg - v) > 10000)
|
||||
{
|
||||
last = v;
|
||||
v = -1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (last >= v || abs(last - v) > 1.0)
|
||||
{
|
||||
last = v;
|
||||
v = -1;
|
||||
continue;
|
||||
}
|
||||
last = v;
|
||||
|
||||
// logger->info(v);
|
||||
}
|
||||
|
||||
for (double &v : filter_timestamps)
|
||||
logger->info(v);
|
||||
|
||||
msumr_products.set_timestamps(filter_timestamps);
|
||||
msumr_products.set_proj_cfg(loadJsonFile(resources::getResourcePath("projections_settings/meteor_m2-2_msumr.json")));
|
||||
|
||||
for (int i = 0; i < 6; i++)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{
|
||||
"type": "normal_single_line",
|
||||
"scan_angle": 110.6,
|
||||
"roll_offset": -0.35,
|
||||
"roll_offset": 0, //-0.35,
|
||||
"pitch_offset": 0,
|
||||
"yaw_offset": -2.8,
|
||||
"time_offset": -0.2,
|
||||
"yaw_offset": 0.8, //.8,
|
||||
"timestamp_offset": -1.8,
|
||||
"image_width": 1572,
|
||||
"gcp_spacing_x": 100,
|
||||
"gcp_spacing_y": 100
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"type": "normal_single_line",
|
||||
"scan_angle": 110.6,
|
||||
"roll_offset": -0.13,
|
||||
"time_offset": -0.1,
|
||||
"timestamp_offset": -0.1,
|
||||
"image_width": 2048,
|
||||
"gcp_spacing_x": 100,
|
||||
"gcp_spacing_y": 100
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"type": "normal_single_line",
|
||||
"scan_angle": 100,
|
||||
"roll_offset": -1.1,
|
||||
"time_offset": -2,
|
||||
"timestamp_offset": -2,
|
||||
"image_width": 90,
|
||||
"gcp_spacing_x": 5,
|
||||
"gcp_spacing_y": 5
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ int main(int argc, char *argv[])
|
|||
std::vector<satdump::projection::GCP> gcps = satdump::gcp_compute::compute_gcps(img_pro.get_proj_cfg(), img_pro.get_tle(), img_pro.get_timestamps());
|
||||
|
||||
satdump::ImageCompositeCfg rgb_cfg;
|
||||
rgb_cfg.equation = "(ch3 * 0.4 + ch2 * 0.6) * 2.2 - 0.15, ch2 * 2.2 - 0.15, ch1 * 2.2 - 0.15";
|
||||
rgb_cfg.equalize = false;
|
||||
rgb_cfg.equation = "ch3,ch2,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;
|
||||
|
||||
satdump::warp::WarpOperation operation;
|
||||
operation.ground_control_points = gcps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue