Reply To: Working with fire and harvest maps: tg_35, tg_36, tg_37

#25175
sarah-chisholmsarah-chisholm
Moderator

Hi Andy,

You can get maps of transition types with their corresponding names using the ‘Export’ tab in the bottom left window of SyncroSim (next to where Charts, Maps, and Images are listed). Here, you should see a drop-down item for ‘ST-Sim’ with an option for ‘Maps’ and finally ‘Transitions’. Select the type of transition maps you’d like (ex. ‘Iteration’ will export maps for each timestep and iteration), click on the ‘Open’ button in the top right corner of the window, and choose where you’d like to save your maps. You’ll find that these exported maps have the full transition type in their file names. Note that this method will export maps for all transition types (i.e. you can’t filter for the transitions you’d like).

An alternative method using rsyncrosim is to call the ‘stsim_TransitionGroup’ datasheet with the includeKey argument set to TRUE. This will return a dataframe of transition group names and their corresponding IDs, which match the IDs in the tif file names you mentioned above (ex. tg_35). Here’s what the code might look like:

mySession <- session(x = "path/to/installation/folder")
myLibrary <- ssimLibrary(name = "path/to/library", session = mySession)
myProject <- project(myLibrary, "Name of project")
datasheet(myProject, name = "stsim_TransitionGroup", includeKey = TRUE)