mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-09 18:11:25 -05:00
Fix off by 1 error in sample adding
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user