What is a Session?¶
A session is a saved state that CoastSeg was in. A session can be used to load in the ROIs that were downloaded previously or the previously extracted shorelines.
A session is typically stored as a directory containing a minimum of two files a config.json
and a config_gdf.geojson
file that lets you restore the state coastseg was in when the session was created.
Where are Sessions Located?¶
Sessions are saved to CoastSeg/sessions
. A session contains the all the files related to extract shorelines for a particular set of ROIs in the downloaded data located in CoastSeg/data
. Each session follows a similar format depending on what actions were taken by the user. For instance, if tide correction was not applied during the session then none of the files with the tidal correction applied will be present.
Here is a sample session that had 2 ROIs where shorelines were successfully extracted and tide correction was applied to both ROIs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
How to Save a New Session¶
- Load ROIs on the map
- Extract Shorelines
- Write the session name in the textbox then click enter
- If the session already exists and you click extract shorelines the data will be overwritten.
How to Load Downloaded Data¶
- Click Load Session
- Navigate from the
sessions
directory to thedata
directory. - Click on an ROI directory
- Click the select button
- On the map navigate to where the ROIs were loaded.
To load config files for ROIs that have been downloaded before go to the data
directory within coastseg
then find the directory of the ROIs you want to upload. Inside that directory, for example the ID_3_datetime10-20-22__07_09_07
directory, there should be geojson
file named config_gdf.geojson
. You should notice the ID_<ROI ID NUMBER>
in the directory name in this case this is ROI id 3. This will load the ROI in that directory and all the other selected ROIs,shorelines, transects, and the bounding box that were on the map when it was saved.
⭐ This works even for data downloaded on someone else's computer just copy and paste the ROI directory from their computer to your data directory
How to Load Extracted Shorelines from a Session¶
- Click load session button
- Select a directory from the sessions directory