Fix off by 1 error in sample adding

This commit is contained in:
Roxeena
2026-03-29 15:01:02 +02:00
parent 38ef3a626a
commit 0099dcd2c8
4 changed files with 9 additions and 9 deletions

View File

@@ -13,8 +13,8 @@ return {
AsteroidName = "2004 MN4",
KernelDirectory = "${USER_ASSETS}/B612/Test/2004 MN4/variant_kernels",
OutputFilename = "${USER_ASSETS}/B612/Test/2004 MN4/impacts/2004_MN4_impact.txt",
TimeIntervalStart = "2029-03-30T00:00:00.000",
TimeIntervalEnd = "2029-05-01T00:00:00.000"
TimeIntervalStart = "2029-04-02T00:00:00.000", -- Must be in ET not UTC
TimeIntervalEnd = "2029-04-29T00:00:00.000"
}
}

View File

@@ -1,6 +1,6 @@
return {
{
--[[{
Type = "ImpactCorridorTask",
AsteroidName = "2023 CX1",
ImpactFile = "${USER_ASSETS}/B612/2023 CX1/impacts/2023-CX1-impacts.txt",
@@ -13,12 +13,12 @@ return {
TimeLowerColorMap = "${SYNC}/http/default_colormaps_sequential/1/YlOrBr.cmap",
TimeUpperColorMap = "${SYNC}/http/default_colormaps_sequential/1/RdPu.cmap",
NightMap = "${SYNC}/http/earth_textures/3/earth_night.png"
},
},]]
{
Type = "ImpactCorridorTask",
AsteroidName = "2004 MN4",
ImpactFile = "${USER_ASSETS}/B612/2004 MN4/high_ip_2004-12-27T21.28.37.000/impacts/2004-MN4-impacts.txt",
OutputFilename = "${USER_ASSETS}/B612/2004 MN4/high_ip_2004-12-27T21.28.37.000/impact-corridor/2004-MN4",
ImpactFile = "${USER_ASSETS}/B612/Test/2004 MN4/impacts/2004_MN4_impact_test.txt",
OutputFilename = "${USER_ASSETS}/B612/Test/2004 MN4/impact-corridor/2004_MN4",
ImageWidth = 5400,
ImageHeight = 2700,
BrushSize = 85,

View File

@@ -1290,12 +1290,12 @@ void RenderableTube::loadSelectedSample() {
if (sample >= SpiceIdOffset) {
// Convert the SPICE id to a filename
filename = std::format("{:06}.bsp", sample - SpiceIdOffset + 1);
identifier = std::to_string(sample);
identifier = std::to_string(sample - 1);
target = identifier;
}
else {
filename = std::format("{:06}.bsp", sample);
identifier = std::format("1{:06}", sample);
identifier = std::format("1{:06}", sample - 1);
target = identifier;
}

View File

@@ -1142,7 +1142,7 @@ void SpiceManager::findSpkCoverage(const std::filesystem::path &path) {
std::format("File '{}' does not exist", path)
);
constexpr unsigned int MaxObj = 1024;
constexpr unsigned int MaxObj = 16384;
constexpr unsigned int WinSiz = 16384;
#if defined __clang__