Forum Replies Created
-
AuthorPosts
-
kblankenshipParticipant
Thanks. Clearing the folders as you suggested solved the issue. I did not need to delete the folder.
kblankenshipParticipantI was running rsysncrosim 1.0.2 and stsim 3.2.11.
When I upgraded to the latest version of rsyncrosim as you suggested, I was able to use the above code to start a session.
Thanks!kblankenshipParticipantYahoo! That worked. THANKS!
April 20, 2018 at 9:41 am in reply to: What is the name of the Initial Conditions Distribution table in R #6012kblankenshipParticipantIn my last post I meant to say that my R code would NOT save the result to the datasheet.
April 20, 2018 at 9:39 am in reply to: What is the name of the Initial Conditions Distribution table in R #6011kblankenshipParticipantHi Colin –
I’m now working on a database with ~900 models, and I’m encountering this issue with numeric Stratum names. It looks like the latest version of rsyncrosim on your website is v.1.0.2. Do I understand correctly that this problem still exists in the current version?What would you suggest as a work around for such a large model library? I tried unsuccessfully to add “BPS” to the beginning of each Stratum name using the following code, but it would not save the result to the datasheet.
# *************************************************************
# File/Package Setup
# *************************************************************
library(rsyncrosim)
programFolder = “C:/Program Files/SyncroSim”# *************************************************************
# Start Session & Library Setup
# *************************************************************
Ses = session(programFolder)
module(Ses)
setwd(“C:/Users/kblankenship/Documents/aLANDFIRE/MODEL/STSM/SynchroSim2/QC”)
getwd()# Specify the library, project and scenario
Lib = ssimLibrary(name=”MasterSsim09June2014-qc-50-5.ssim”, model=”stsim”, session=Ses)
Prj = project(Lib, project=”BpSModels”)#Add “BPS” to Stratum name
Stratumsheet = “STSim_Stratum”
Stratumdata = datasheet(Prj, Stratumsheet)
Stratumdata$Name<-paste(“BPS”,Stratumdata$Name, sep=””)
saveDatasheet(Prj, Stratumdata, Stratumsheet,append = FALSE)
y
Stratumdata = datasheet(Prj, Stratumsheet)December 19, 2017 at 9:10 am in reply to: What is the name of the Initial Conditions Distribution table in R #5542kblankenshipParticipantOK, I tried to rule out that I might be calling a scenario that doesn’t exist, but I don’t think that is it. I think the code below shows that I do have a scenario 1 and that I am able to open another datasheet from the scenario:
> library(rsyncrosim)
> programFolder = “C:/Program Files/SyncroSim”
> Ses = session(programFolder)
> setwd(“C:/Users/kblankenship/Documents/aLANDFIRE/MODELING/SynchroSim2/LFMaster”)
> Lib = ssimLibrary(name=”practice5.ssim”, model=”stsim”, session=Ses)
> project(Lib, summary=TRUE)
projectId name owner lastModified readOnly
1 1 BpSModels N/A 12/19/2017 at 5:58 AM FALSE
> Prj = project(Lib, project=”BpSModels”)
> scenario(Prj, summary=TRUE)
scenarioId projectId name isResult parentID owner
1 1 1 AllModels No – LANDFIRE
lastModified readOnly
1 12/15/2017 at 6:36 AM FALSE
> Scn = scenario(Prj, 1)
> datasheet(Scn, “STSim_RunControl”)
MinimumIteration MaximumIteration MinimumTimestep
1 1 10 0
MaximumTimestep IsSpatial
1 1000 NADecember 18, 2017 at 5:30 pm in reply to: What is the name of the Initial Conditions Distribution table in R #5540kblankenshipParticipantHi Colin,
I’m still having trouble. I’ve included my code below in case this helps. In ST-Sim the initial conditions distribution table for this library has 10-20 rows of data w/ the initial conditions for 5 different stratum.
Thanks, Kori> library(rsyncrosim)
> # Specify the location of the SyncroSim program on computer
> programFolder = “C:/Program Files/SyncroSim”
> Ses = session(programFolder)
> module(Ses)
name displayName version
1 dgsim Demographic Population 2.1.13
2 stsim ST-Sim State and Transition 3.1.16
3 stsim-ecodep ST-Sim Ecological Departure Add-On 3.1.16
4 stsim-stockflow ST-Sim Stocks and Flows Add-On 3.1.16
> # Set working directory to the location of the STSim library
> setwd(“C:/Users/kblankenship/Documents/aLANDFIRE/MODELING/SynchroSim2/LFMaster”)
> # Specify the library, project and scenario
> Lib = ssimLibrary(name=”practice5.ssim”, model=”stsim”, session=Ses)
> Prj = project(Lib, project=”BpSModels”)
> Scn = scenario(Prj, 1)
> datasheet(Scn, “STSim_InitialConditionsNonSpatialDistribution”)
[1] StratumID StateClassID AgeMin AgeMax RelativeAmount
<0 rows> (or 0-length row.names)kblankenshipParticipantOK, I’m one step closer. I downloaded and installed the C++ file, and I got one of my old libraries into SyncroSim 1.0.44. I then took my library, updated to S.S. 1.0.44 into S.S. 2.0.9 and received this message when trying to open my library: “The library ‘CArevised-TEST’ cannot be loaded because the Add-On ‘Dynamic Multipliers’ is missing.”
kblankenshipParticipantThanks Leonardo. I downloaded the latest full release of SyncroSim as you suggested (step 1 above), but received another error when trying to open my libraries: “Could not load file or assembly ‘System.Data.SQLite.dll’ or one of its dependencies. The specified module could not be found.” I searched the website for an even earlier version of St-Sim to try updating to but couldn’t find one.
kblankenshipParticipantThanks, Colin. Does this mean that when I re-import hidden fields into st-sim they can not be validated? I think I understand your two solutions, but I can’t reconcile them with your first statement about the built-in validation.
October 23, 2012 at 6:53 pm in reply to: Database w/ many models, but need to run them individually #1798kblankenshipParticipantThanks for your instructions but I’m having trouble at step 9. When I click the overwrite button I get this error message:
“No data found in the specified file for the property ‘Initial Conditions'”
When I click OK to that message, I get additional information that states:
“The value ‘711670’could not be found for the column ‘Stratum’. Record ignored.A couple issues I suspect are:
1) Is there a problem w/ leading 0s in the stratum name? The stratum I want to create a scenario for is named “0711670.” In the xls file that I exported that record shows up as “711670.” I tried adding the leading 0 back in by hand and reimporting but I received the same error message.
2) Is there a problem w/ blank rows at the top of the initial conditions spreadsheet before the record of interest? After I deleted the unwanted initial condition records and removed the filter, there were 4 or 5 blank rows below the column headers and before the rows that contained info for my stratum (0711670). I tried removing those rows by hand and reimporting but I received the same error message.I also tried reimporting w/ a version of the initial conditions file that had both changes implemented – removed extra rows and added leading 0.
-
AuthorPosts