Menu Close

kblankenship

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Can’t Graph Results #19969
    kblankenshipkblankenship
    Participant

    Thanks. Clearing the folders as you suggested solved the issue. I did not need to delete the folder.

    in reply to: Error starting session in rsyncrosim #19703
    kblankenshipkblankenship
    Participant

    I 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!

    in reply to: How to access ST-Sim results in R #6384
    kblankenshipkblankenship
    Participant

    Yahoo! That worked. THANKS!

    kblankenshipkblankenship
    Participant

    In my last post I meant to say that my R code would NOT save the result to the datasheet.

    kblankenshipkblankenship
    Participant

    Hi 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)

    kblankenshipkblankenship
    Participant

    OK, 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 NA

    kblankenshipkblankenship
    Participant

    Hi 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)

    in reply to: Trouble converting from SyncroSim 2.4.6 to 2.0.9 #5359
    kblankenshipkblankenship
    Participant

    OK, 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.”

    in reply to: Trouble converting from SyncroSim 2.4.6 to 2.0.9 #5347
    kblankenshipkblankenship
    Participant

    Thanks 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.

    in reply to: St-Sim templates export w/o required fields #1855
    kblankenshipkblankenship
    Participant

    Thanks, 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.

    in reply to: Database w/ many models, but need to run them individually #1798
    kblankenshipkblankenship
    Participant

    Thanks 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.

Viewing 11 posts - 1 through 11 (of 11 total)