|
78 | 78 | "source": [ |
79 | 79 | "# Input/output options\n", |
80 | 80 | "args = WorkflowInputs(\n", |
81 | | - " images=[\"FLIR0077.csv\"],\n", |
82 | | - " names=\"image1\",\n", |
83 | | - " result=\"thermal_data.json\",\n", |
84 | | - " outdir=\".\",\n", |
85 | | - " writeimg=True,\n", |
86 | | - " debug=\"plot\")" |
| 81 | + " images=[\"https://raw.githubusercontent.com/danforthcenter/plantcv-tutorial-thermal/main/FLIR0077.csv\"], \n", |
| 82 | + " names=\"image1\",\n", |
| 83 | + " result=\"thermal_data.json\",\n", |
| 84 | + " outdir=\".\",\n", |
| 85 | + " writeimg=True,\n", |
| 86 | + " debug=\"plot\")" |
87 | 87 | ] |
88 | 88 | }, |
89 | 89 | { |
|
105 | 105 | }, |
106 | 106 | { |
107 | 107 | "cell_type": "markdown", |
108 | | - "id": "887affa6", |
| 108 | + "id": "4e9c6640", |
109 | 109 | "metadata": {}, |
110 | 110 | "source": [ |
111 | | - "## Read the input image\n", |
| 111 | + "## Read input image \n", |
112 | 112 | "\n", |
113 | | - "Inputs:\n", |
114 | | - "\n", |
115 | | - "filename = Image file to be read in\n", |
116 | | - "mode = How the image will be read into the notebook; either 'native' (default), 'rgb', 'rgba', 'gray', 'csv', 'envi' (hyper- and multi-spectral), or 'arcgis'. " |
| 113 | + "### Google Colaboratory Users: \n", |
| 114 | + "If you are running this notebook using Google Colaboratory, you will need to use the cell below to complete the tutorial unless you cloned the repository from GitHub to your personal Google Drive account. Once you begin developing your workflow for your data, you can delete this text cell and the code cell below so you avoid any conflicts the next time you use this notebook." |
| 115 | + ] |
| 116 | + }, |
| 117 | + { |
| 118 | + "cell_type": "code", |
| 119 | + "execution_count": null, |
| 120 | + "id": "4acd972c", |
| 121 | + "metadata": {}, |
| 122 | + "outputs": [], |
| 123 | + "source": [ |
| 124 | + "img = pcv.io.open_url(url=args.image1)\n" |
117 | 125 | ] |
118 | 126 | }, |
119 | 127 | { |
|
151 | 159 | } |
152 | 160 | ], |
153 | 161 | "source": [ |
154 | | - "# Read image\n", |
| 162 | + "# # Read image (using Jupyter notebook locally in your environment)\n", |
155 | 163 | "\n", |
156 | | - "# Inputs:\n", |
157 | | - "# filename - Image file to be read in \n", |
158 | | - "# mode - How to read in the image; either 'native' (default), 'rgb', 'gray', or 'csv'\n", |
159 | | - "thermal_data, path, filename = pcv.readimage(filename=args.image1, mode='csv')" |
| 164 | + "# # Inputs:\n", |
| 165 | + "# # filename - Image file to be read in \n", |
| 166 | + "# # mode - How to read in the image; either 'native' (default), 'rgb', 'rgba', 'gray', 'csv', 'envi' (hyper- and multi-spectral), or 'arcgis'. \n", |
| 167 | + "# thermal_data, path, filename = pcv.readimage(filename=args.image1, mode='csv')" |
160 | 168 | ] |
161 | 169 | }, |
162 | 170 | { |
|
0 commit comments