check if stock_dbxref exists before transferring new as it might violate a unique...
[sgn.git] / mason / breeders_toolbox / drone_imagery / upload_drone_imagery_dialogs.mas
blob60d6de944786a135fe55c01168b3335463c20898
1 <%args>
2 </%args>
4 <& /util/import_javascript.mas, classes => [ 'jquery.iframe-post-form', 'CXGN.BreederSearch', 'CXGN.Trial', 'moment_min', 'daterangepicker' ] &>
6 <div class="modal fade" id="upload_drone_imagery_dialog" name="upload_drone_imagery_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryDialog">
7   <div class="modal-dialog modal-xl" role="document">
8     <div class="modal-content">
9       <div class="modal-header">
10         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
11         <h4 class="modal-title" id="uploadDroneImageryDialog">Upload Aerial Imagery</h4>
12       </div>
13       <div class="modal-body">
14         <div class="container-fluid">
16             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_form" name="upload_drone_imagery_form" action="/drone_imagery/upload_drone_imagery" >
18                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow" &>
19                     <&| /util/workflow.mas:step, title=> "Intro" &>
20                         <& /page/page_title.mas, title=>"This workflow will guide you through uploading aerial images to the database" &>
21                         <ul>
22                             <li>Your field trial must already be in the database before you can upload images for it. Please go to <a href="/breeders/trials">Manage->Field Trials</a> if it is not.</li>
23                             <li><b>For Raw Image Captures</b>: If you have raw aerial images (.TIFF, .JPG, .PNG) that have not been stitched into an orthophotomosaic image of the whole field, your raw images should be uploaded using a zipfile (.zip). Include at least 25 images in the zipfile. OpenDroneMap will be used to stitch the orthophotos and digital surface maps (DSM). OpenDroneMap works for color RGB images and for MicaSense 5-channel multi-spectral images.</li>
24                             <li><b>For Orthophotomosaics</b>: If you already have orthophotomosaic image(s) of your entire field from external software, you can upload those images. Upload orthomosaics as .TIFF, .PNG, or .JPG images. Do not upload GeoTIFFs, instead upload reflectance raster images (.TIFF, .PNG, or .JPG). Orthophotomosaic images for multi-spectral cameras are expected to be perfectly super-imposable for all spectra.</li>
25                         </ul>
26                         <hr>
27                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/AlfalfaExample35MeterMicasenseAerialDroneFlightRawCaptures.zip" download>MicaSense 5 Band Raw Captures (Unstitched TIFF image-captures) (Upload zipfile to ImageBreed and let OpenDroneMap stitch orthophotos and DSM.)</a></p>
28                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/ExampleAerialDroneFlightMicasensePanel.zip" download>MicaSense 5 Band Panel Images (MicaSense calibration panel images.) (Upload zipfile for ImageBreed to calibrate Micasense raw-captures.)</a></p>
29                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/AlfalfaExample35MeterMicasenseAerialDroneFlightOrthomosaics.zip" download>MicaSense 5 Band Previously Stitched Orthophotomosaic Images (PNG Files in provided zipfile. Can upload each band separately into ImageBreed.)</a></p>
30                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/ExampleColorAerialDroneFlightRawCaptures.zip" download>Color Camera Raw Captures (Unstitched JPG image-captures) (Upload zipfile to ImageBreed and let OpenDroneMap stitch orthophotos and DSM.)</a></p>
31                         <br/>
32                         <center>
33                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to upload a single imaging event</button>
34                         <br/><br/>
35                         <button class="btn btn-default" id="upload_drone_imagery_bulk_button" >Go to bulk upload of imaging events</button>
36                         <br/><br/>
37                         <button class="btn btn-default" id="upload_drone_imagery_bulk_previous_button" >Go to bulk upload of previously processed imaging events (GeoJSON defitions included)</button>
38                         </center>
39                     </&>
40                     <&| /util/workflow.mas:step, title=> "Field Trial" &>
41                         <& /page/page_title.mas, title=>"Select your field trial" &>
43                         <div class="form-group">
44                             <label class="col-sm-3 control-label">Field Trial: </label>
45                             <div class="col-sm-9" >
46                                 <div id="upload_drone_image_trial_select_div"></div>
47                             </div>
48                         </div>
50                         <div id="upload_drone_image_field_trial_info">
51                         </div>
53                         <center>
54                         <button class="btn btn-primary" id="upload_drone_image_field_trial_select_continue">Go to Next Step</button>
55                         </center>
56                     </&>
57                     <&| /util/workflow.mas:step, title=> "Drone Run" &>
58                         <& /page/page_title.mas, title=>"Create a new drone run" &>
60                         <table class="table table-bordered table-hover" id="drone_image_upload_drone_runs_table">
61                             <thead>
62                                 <tr>
63                                     <th>Select</th>
64                                     <th>Imaging Event Name</th>
65                                     <th>Imaging Event Type</th>
66                                     <th>Imaging Event Description</th>
67                                     <th>Imaging Event Date</th>
68                                     <th>Drone Run GDD</th>
69                                     <th>Sensor</th>
70                                     <th>Field Trial Name</th>
71                                     <th>Field Trial Description</th>
72                                 </tr>
73                             </thead>
74                         </table>
76                         <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
77                         <input id="drone_run_id" name="drone_run_id" type="hidden" value=""/>
78                         <input id="drone_image_upload_drone_run_band_stitching_odm_image_count" name="drone_image_upload_drone_run_band_stitching_odm_image_count" type="hidden" value=""/>
80                         <br/>
81                         <div id="drone_image_upload_create_drone_inputs">
82                             <div class="form-group">
83                                 <label class="col-sm-3 control-label">Imaging Event Name (Must be unique): </label>
84                                 <div class="col-sm-9" >
85                                     <input class="form-control" id="drone_run_name" name="drone_run_name" type="text" placeholder="e.g. Field Trial Name + Date of Flight" />
86                                 </div>
87                             </div>
88                             <div class="form-group">
89                                 <label class="col-sm-3 control-label">Imaging Event Type:</label>
90                                 <div class="col-sm-9" >
91                                     <select class="form-control" id="drone_run_type" name="drone_run_type">
92                                         <option value="">Select One</option>
93                                         <option value="Aerial Medium to High Res">Medium to High Resolution Aerial Drone Image(s)</option>
94                                         <option value="Aerial Low Res">Low Resolution Aerial Drone Image(s)</option>
95                                     </select>
96                                 </div>
97                             </div>
98                             <div class="form-group">
99                                 <label class="col-sm-3 control-label">Sensor Type:</label>
100                                 <div class="col-sm-9" >
101                                     <select class="form-control" id="drone_image_upload_camera_info" name="drone_image_upload_camera_info">
102                                         <option value="">Select One</option>
103                                         <option value="micasense_5">Micasense 5 Bands</option>
104                                         <option value="ccd_color">CCD Sensor Color Image</option>
105                                         <option value="cmos_color">CMOS Sensor Color Image</option>
106                                         <option value="interpolated_elevation">Interpolated Elevation Image</option>
107                                         <option value="em38_interpolated_ch1.0m">EM38 Interpolated CH1.0m Image</option>
108                                         <option value="em38_interpolated_ch0.5m">EM38 Interpolated CH0.5m Image</option>
109                                         <option value="em38_interpolated_ih1.0m">EM38 Interpolated IH1.0m Image</option>
110                                         <option value="em38_interpolated_ih0.5m">EM38 Interpolated IH0.5m Image</option>
111                                     </select>
112                                 </div>
113                             </div>
114                             <div class="form-group">
115                                 <label class="col-sm-3 control-label">Imaging Vehicle: <button class="btn btn-sm btn-default" name="drone_run_imaging_vehicle_add_new" type="button">Add New Vehicle</button></label>
116                                 <div class="col-sm-9" >
117                                     <div id="drone_run_imaging_vehicle_div"></div>
118                                 </div>
119                             </div>
120                             <div class="form-group">
121                                 <label class="col-sm-3 control-label">Imaging Vehicle Battery Set:</label>
122                                 <div class="col-sm-9" >
123                                     <div id="drone_run_imaging_vehicle_battery_div"></div>
124                                 </div>
125                             </div>
126                             <div class="form-group">
127                                 <label class="col-sm-3 control-label">Imaging Event Description (e.g. flight altitude, flight plan name, overall weather conditions): </label>
128                                 <div class="col-sm-9" >
129                                     <input class="form-control" id="drone_run_description" name="drone_run_description" type="text" />
130                                 </div>
131                             </div>
132                             <div class="form-group">
133                                 <label class="col-sm-3 control-label">Imaging Event Date and Hour (Must be after the planting date):</label>
134                                 <div class="col-sm-9" >
135                                     <input class="form-control" id="drone_run_date" name="drone_run_date" title="drone_run_date" type="text" />
136                                 </div>
137                             </div>
138                             <div class="form-group">
139                                 <label class="col-sm-3 control-label">Fixed Camera Rig Name (For Fixed Camera Rigs e.g. Greenhouse or Growth Chambers) (Leave empty if not applicable):</label>
140                                 <div class="col-sm-9" >
141                                     <input class="form-control" id="drone_run_camera_rig_description" name="drone_run_camera_rig_description" title="drone_run_camera_rig_description" type="text" />
142                                 </div>
143                             </div>
144                             <div class="form-group">
145                                 <label class="col-sm-3 control-label">Base Date and Hour (For Fixed Camera Rigs e.g. Greenhouse or Growth Chambers) (Useful for fixed camera rigs capturing different pieces of a field experiment, and the capture time is not synchronized across camera rigs, but the rigs are on identical intervals. Can be the time of the first image for the rig.) (Leave empty if not applicable):</label>
146                                 <div class="col-sm-9" >
147                                     <input class="form-control" id="drone_run_base_date" name="drone_run_base_date" title="drone_run_base_date" type="text" />
148                                 </div>
149                             </div>
150                         </div>
151                         <br/>
153                         <center>
154                         <button class="btn btn-primary" id="drone_image_upload_drone_run_continue">Go to Next Step</button>
155                         </center>
156                     </&>
157                     <&| /util/workflow.mas:step, title=> "Image Info" &>
158                         <& /page/page_title.mas, title=>"Type of Image to Upload" &>
160                         <div class="well">
161                             <center><h4>Uploading already stitched orthophotomosaics or complete images of experimental field</h4></center>
162                             <ul>
163                                 <li>You can choose to upload orthophotomosaic images (PNG, TIFF) created using external software (Pix4d, Agisoft, etc). Do not upload GeoTIFFs, instead upload reflectance raster images (.TIFF, .PNG, or .JPG).</li>
164                                 <li>You can upload any image (PNG, TIFF, JPEG) which covers the entire experimental field, for example, interpolated soil data for altitude or electrical conductance EC measurements. Another example is for images from a phenotyping facility, greenhouse, or growth chamber.</li>
165                                 <li>Up to seven distinct spectral band images can be uploaded.</li>
166                                 <li>Images should be perfectly super-imposable for all spectra in an imaging event.</li>
167                             </ul>
168                         </div>
169                         <div class="well">
170                             <center><h4>Uploading raw images to stitch using OpenDroneMap</h4></center>
171                             <ul>
172                                 <li>You can upload raw images (PNG, TIFF, JPEG) from a MicaSense 5-channel camera or a color image camera, for instance collected from an aerial drone, and then orthophotomosaics will be created using OpenDroneMap and saved in ImageBreed.</li>
173                                 <li>Raw images are uploaded using a zipfile (.zip). Place all images relevant to the imaging event into one zipfile. Include atleast 25 images in the zipfile.</li>
174                                 <li>Make sure there is >75% overlap in the images, so that the images can be properly assembled.</li>
175                                 <li>A digital surface map (DSM) will also be generated and saved as a black and white image. The DSM is a representation of height of objects.</li>
176                             </ul>
177                         </div>
179                         <div class="form-group">
180                             <label class="col-sm-3 control-label">Are you not uploading orthophotomosaic(s) or complete image(s) of the experimental field?:</label>
181                             <div class="col-sm-9" >
182                                 <select class="form-control" id="drone_image_upload_drone_run_band_stitching" name="drone_image_upload_drone_run_band_stitching">
183                                     <option value="">Select One</option>
184                                     <option value="no">No, I am uploading stitched orthomosaic(s) or complete image(s)</option>
185 %  if ($c->config->{enable_opendronemap}) {
186                                     <option value="yes_open_data_map_stitch">Yes, I am uploading a zipfile of raw images to stitch using OpenDroneMap</option>
187 %  } else {
188                                     <option value="yes_open_data_map_stitch" disabled>Yes, I am uploading a zipfile of raw images to stitch using OpenDroneMap (Not configured on your system. Check Docker deployment README)</option>
189 %  }
190                                 </select>
191                             </div>
192                         </div>
193                         <div class="form-group" id="drone_run_upload_drone_run_band_number_div">
194                             <label class="col-sm-3 control-label">Number of Spectral Bands (Image Sets) To Upload:</label>
195                             <div class="col-sm-9" >
196                                 <select class="form-control" id="drone_run_band_number" name="drone_run_band_number">
197                                     <option value="">Select One</option>
198                                     <option value="one_bw">One Black and White Image</option>
199                                     <option value="one_rgb">One RGB Color Image</option>
200                                     <option value="1">One Spectral Band or DSM raster</option>
201                                     <option value="2">Two Separate Spectral Bands and/or DSM raster</option>
202                                     <option value="3">Three Separate Spectral Bands and/or DSM raster</option>
203                                     <option value="4">Four Separate Spectral Bands and/or DSM raster</option>
204                                     <option value="5">Five Separate Spectral Bands</option>
205                                     <option value="6">Six Separate Spectral Bands and/or DSM raster</option>
206                                     <option value="7">Seven Separate Spectral Bands and/or DSM raster</option>
207                                     <option value="8">Eight Separate Spectral Bands and/or DSM raster</option>
208                                 </select>
209                             </div>
210                         </div>
212                         <center>
213                         <button class="btn btn-primary" id="drone_image_upload_drone_run_band_continue">Go to Next Step</button>
214                         </center>
215                     </&>
217                 </&>
219                 <div id="upload_drone_imagery_verify_status"></div>
220             </form><br/>
221         </div>
222       </div>
223       <div class="modal-footer">
224         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
225       </div>
226     </div>
227   </div>
228 </div>
230 <div class="modal fade" id="upload_drone_imagery_dialog_odm" name="upload_drone_imagery_dialog_odm" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryODMDialog">
231   <div class="modal-dialog modal-xl" role="document">
232     <div class="modal-content">
233       <div class="modal-header">
234         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
235         <h4 class="modal-title" id="uploadDroneImageryODMDialog">Upload Aerial Imagery</h4>
236       </div>
237       <div class="modal-body">
238         <div class="container-fluid">
239             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
241             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_odm_form" name="upload_drone_imagery_odm_form" action="/drone_imagery/upload_drone_imagery" >
242                 <input type="hidden" name="drone_run_field_trial_id" value="" >
244                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
245                 <input type="hidden" name="drone_run_id" value=""/>
246                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
248                 <input type="hidden" name="drone_run_name" value="" />
249                 <input type="hidden" name="drone_run_type" value="" />
250                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
251                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
252                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
253                 <input type="hidden" name="drone_run_description" value="" />
254                 <input type="hidden" name="drone_run_date" value="" />
255                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
256                 <input type="hidden" name="drone_run_base_date" value="" />
257                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
258                 <input type="hidden" name="drone_run_band_number" value="" />
260                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_odm" &>
261                     <&| /util/workflow.mas:step, title=> "Select Images" &>
262                         <& /page/page_title.mas, title=>"Select Raw Image ZipFile" &>
264                         <div class="well well-sm">
265                             <div class="form-group">
266                                 <label class="col-sm-6 control-label">Imaging Event Images ZipFile (.zip) (At least 25 images): </label>
267                                 <div class="col-sm-6" >
268                                     <input type="file" id="upload_drone_images_zipfile_odm" name="upload_drone_images_zipfile" encoding="multipart/form-data" />
269                                 </div>
270                             </div>
272                             <!--div class="form-group"><label class="col-sm-6 control-label">Upload another zipfile after submit this one? Select Yes if all the images did not fit within the 2GB of the first zip file.: </label><div class="col-sm-6" ><select class="form-control" id="drone_image_upload_drone_run_band_stitching_odm_more_images" name="drone_image_upload_drone_run_band_stitching_odm_more_images"><option value="No">No</option><option value="Yes">Yes</option></select></div></div-->
274                         </div>
275                         <center>
276                             <button class="btn btn-primary" id="upload_drone_imagery_select_images_odm" name="upload_drone_imagery_select_images_odm">Go To Next Step</button>
277                         </center>
278                     </&>
279                     <&| /util/workflow.mas:step, title=> "Submit" &>
280                         <& /page/page_title.mas, title=>"Submit Imaging Event to Process With OpenDroneMap" &>
281                         <center>
282                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_odm_submit" id="upload_drone_imagery_odm_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
283                         </center>
284                     </&>
285                 </&>
286             </form><br/>
287         </div>
288       </div>
289       <div class="modal-footer">
290         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
291       </div>
292     </div>
293   </div>
294 </div>
296 <div class="modal fade" id="upload_drone_imagery_dialog_odm_micasense" name="upload_drone_imagery_dialog_odm_micasense" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryODMMicaSenseDialog">
297   <div class="modal-dialog modal-xl" role="document">
298     <div class="modal-content">
299       <div class="modal-header">
300         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
301         <h4 class="modal-title" id="uploadDroneImageryODMMicaSenseDialog">Upload Aerial Imagery</h4>
302       </div>
303       <div class="modal-body">
304         <div class="container-fluid">
305             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
307             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_odm_micasense_form" name="upload_drone_imagery_odm_micasense_form" action="/drone_imagery/upload_drone_imagery" >
308                 <input type="hidden" name="drone_run_field_trial_id" value="" >
310                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
311                 <input type="hidden" name="drone_run_id" value=""/>
312                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
314                 <input type="hidden" name="drone_run_name" value="" />
315                 <input type="hidden" name="drone_run_type" value="" />
316                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
317                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
318                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
319                 <input type="hidden" name="drone_run_description" value="" />
320                 <input type="hidden" name="drone_run_date" value="" />
321                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
322                 <input type="hidden" name="drone_run_base_date" value="" />
323                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
324                 <input type="hidden" name="drone_run_band_number" value="" />
326                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_odm_micasense" &>
327                     <&| /util/workflow.mas:step, title=> "Select Images" &>
328                         <& /page/page_title.mas, title=>"Select Raw Image ZipFile of MicaSense Images" &>
330                         <div class="well well-sm">
331                             <div class="form-group">
332                                 <label class="col-sm-6 control-label">Imaging Event Images ZipFile (.zip) (At least 25 images): </label>
333                                 <div class="col-sm-6" >
334                                     <input type="file" id="upload_drone_images_zipfile_odm_micasense" name="upload_drone_images_zipfile" encoding="multipart/form-data" />
335                                 </div>
336                             </div>
338                             <!--div class="form-group"><label class="col-sm-6 control-label">Upload another zipfile after submit this one? Select Yes if all the images did not fit within the 2GB of the first zip file.: </label><div class="col-sm-6" ><select class="form-control" id="drone_image_upload_drone_run_band_stitching_odm_more_images" name="drone_image_upload_drone_run_band_stitching_odm_more_images"><option value="No">No</option><option value="Yes">Yes</option></select></div></div-->
340                             <div class="form-group">
341                                 <label class="col-sm-6 control-label">MicaSense Radiometric Calibration Images ZipFile (.zip): </label>
342                                 <div class="col-sm-6" >
343                                     <input type="file" id="upload_drone_images_panel_zipfile_odm_micasense" name="upload_drone_images_panel_zipfile" encoding="multipart/form-data" />
344                                 </div>
345                             </div>';
347                             <div class="form-group">
348                                 <label class="col-sm-6 control-label">Perform Radiometric Calibration: </label>
349                                 <div class="col-sm-6" >
350                                     <select class="form-control" name="drone_image_upload_drone_run_band_stitching_odm_radiocalibration">
351                                         <option value="Yes">Yes</option>
352                                         <option value="No">No</option>
353                                     </select>
354                                 </div>
355                             </div>
357                         </div>
358                         <center>
359                             <button class="btn btn-primary" id="upload_drone_imagery_select_images_odm_micasense" name="upload_drone_imagery_select_images_odm_micasense">Go To Next Step</button>
360                         </center>
361                     </&>
362                     <&| /util/workflow.mas:step, title=> "Submit" &>
363                         <& /page/page_title.mas, title=>"Submit Imaging Event to Process With OpenDroneMap" &>
364                         <center>
365                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_odm_micasense_submit" id="upload_drone_imagery_odm_micasense_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
366                         </center>
367                     </&>
368                 </&>
370             </form><br/>
371         </div>
372       </div>
373       <div class="modal-footer">
374         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
375       </div>
376     </div>
377   </div>
378 </div>
380 <div class="modal fade" id="upload_drone_imagery_dialog_one_band" name="upload_drone_imagery_dialog_one_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryOneBandDialog">
381   <div class="modal-dialog modal-xl" role="document">
382     <div class="modal-content">
383       <div class="modal-header">
384         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
385         <h4 class="modal-title" id="uploadDroneImageryOneBandDialog">Upload Aerial Imagery</h4>
386       </div>
387       <div class="modal-body">
388         <div class="container-fluid">
389             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
391             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_one_band_form" name="upload_drone_imagery_one_band_form" action="/drone_imagery/upload_drone_imagery" >
392                 <input type="hidden" name="drone_run_field_trial_id" value="" >
394                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
395                 <input type="hidden" name="drone_run_id" value=""/>
396                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
398                 <input type="hidden" name="drone_run_name" value="" />
399                 <input type="hidden" name="drone_run_type" value="" />
400                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
401                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
402                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
403                 <input type="hidden" name="drone_run_description" value="" />
404                 <input type="hidden" name="drone_run_date" value="" />
405                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
406                 <input type="hidden" name="drone_run_base_date" value="" />
407                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
408                 <input type="hidden" name="drone_run_band_number" value="" />
410                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_one_band" &>
411                     <&| /util/workflow.mas:step, title=> "Select Images" &>
412                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
414                         <div class="well well-sm">
415                             <div class="form-group">
416                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
417                                 <div class="col-sm-9" >
418                                     <input class="form-control" id="drone_run_band_name_one_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
419                                 </div>
420                             </div>
421                             <div class="form-group">
422                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
423                                 <div class="col-sm-9" >
424                                     <input class="form-control" id="drone_run_band_description_one_1" name="drone_run_band_description_1" type="text" />
425                                 </div>
426                             </div>
427                             <div class="form-group">
428                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
429                                 <div class="col-sm-9" >
430                                     <select class="form-control" id="drone_run_band_coordinate_system_one_1" name="drone_run_band_coordinate_system_1">
431                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
432                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
433                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
434                                     </select>
435                                 </div>
436                             </div>
437                             <div class="form-group">
438                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
439                                 <div class="col-sm-9" >
440                                     <select class="form-control" id="drone_run_band_type_one_1" name="drone_run_band_type_1">
441                                         <option value="Black and White Image">Black and White Image</option>
442                                         <option value="RGB Color Image">RGB Color Image</option>
443                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
444                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
445                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
446                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
447                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
448                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
449                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
450                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
451                                     </select>
452                                 </div>
453                             </div>
454                             <div class="form-group">
455                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
456                                 <div class="col-sm-9" >
457                                     <input type="file" id="drone_run_band_stitched_ortho_image_one_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
458                                 </div>
459                             </div>
460                         </div>
462                         <center>
463                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_one" id="upload_drone_imagery_select_images_one">Go To Next Step</button>
464                         </center>
465                     </&>
466                     <&| /util/workflow.mas:step, title=> "Submit" &>
467                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
468                         <center>
469                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_one_band_submit" id="upload_drone_imagery_one_band_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
470                         </center>
471                     </&>
472                 </&>
474             </form><br/>
475         </div>
476       </div>
477       <div class="modal-footer">
478         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
479       </div>
480     </div>
481   </div>
482 </div>
484 <div class="modal fade" id="upload_drone_imagery_dialog_two_band" name="upload_drone_imagery_dialog_two_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryTwoBandDialog">
485   <div class="modal-dialog modal-xl" role="document">
486     <div class="modal-content">
487       <div class="modal-header">
488         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
489         <h4 class="modal-title" id="uploadDroneImageryTwoBandDialog">Upload Aerial Imagery</h4>
490       </div>
491       <div class="modal-body">
492         <div class="container-fluid">
493             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
495             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_two_band_form" name="upload_drone_imagery_two_band_form" action="/drone_imagery/upload_drone_imagery" >
496                 <input type="hidden" name="drone_run_field_trial_id" value="" >
498                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
499                 <input type="hidden" name="drone_run_id" value=""/>
500                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
502                 <input type="hidden" name="drone_run_name" value="" />
503                 <input type="hidden" name="drone_run_type" value="" />
504                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
505                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
506                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
507                 <input type="hidden" name="drone_run_description" value="" />
508                 <input type="hidden" name="drone_run_date" value="" />
509                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
510                 <input type="hidden" name="drone_run_base_date" value="" />
511                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
512                 <input type="hidden" name="drone_run_band_number" value="" />
514                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_two_band" &>
515                     <&| /util/workflow.mas:step, title=> "Select Images" &>
516                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
518                         <div class="well well-sm">
519                             <div class="form-group">
520                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
521                                 <div class="col-sm-9" >
522                                     <input class="form-control" id="drone_run_band_name_two_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
523                                 </div>
524                             </div>
525                             <div class="form-group">
526                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
527                                 <div class="col-sm-9" >
528                                     <input class="form-control" id="drone_run_band_description_two_1" name="drone_run_band_description_1" type="text" />
529                                 </div>
530                             </div>
531                             <div class="form-group">
532                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
533                                 <div class="col-sm-9" >
534                                     <select class="form-control" id="drone_run_band_coordinate_system_two_1" name="drone_run_band_coordinate_system_1">
535                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
536                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
537                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
538                                     </select>
539                                 </div>
540                             </div>
541                             <div class="form-group">
542                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
543                                 <div class="col-sm-9" >
544                                     <select class="form-control" id="drone_run_band_type_two_1" name="drone_run_band_type_1">
545                                         <option value="Black and White Image">Black and White Image</option>
546                                         <option value="RGB Color Image">RGB Color Image</option>
547                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
548                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
549                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
550                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
551                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
552                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
553                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
554                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
555                                     </select>
556                                 </div>
557                             </div>
558                             <div class="form-group">
559                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
560                                 <div class="col-sm-9" >
561                                     <input type="file" id="drone_run_band_stitched_ortho_image_two_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
562                                 </div>
563                             </div>
564                         </div>
565                         <div class="well well-sm">
566                             <div class="form-group">
567                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
568                                 <div class="col-sm-9" >
569                                     <input class="form-control" id="drone_run_band_name_two_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
570                                 </div>
571                             </div>
572                             <div class="form-group">
573                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
574                                 <div class="col-sm-9" >
575                                     <input class="form-control" id="drone_run_band_description_two_2" name="drone_run_band_description_2" type="text" />
576                                 </div>
577                             </div>
578                             <div class="form-group">
579                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
580                                 <div class="col-sm-9" >
581                                     <select class="form-control" id="drone_run_band_coordinate_system_two_2" name="drone_run_band_coordinate_system_2">
582                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
583                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
584                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
585                                     </select>
586                                 </div>
587                             </div>
588                             <div class="form-group">
589                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
590                                 <div class="col-sm-9" >
591                                     <select class="form-control" id="drone_run_band_type_two_2" name="drone_run_band_type_2">
592                                         <option value="Black and White Image">Black and White Image</option>
593                                         <option value="RGB Color Image">RGB Color Image</option>
594                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
595                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
596                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
597                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
598                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
599                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
600                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
601                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
602                                     </select>
603                                 </div>
604                             </div>
605                             <div class="form-group">
606                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
607                                 <div class="col-sm-9" >
608                                     <input type="file" id="drone_run_band_stitched_ortho_image_two_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
609                                 </div>
610                             </div>
611                         </div>
612                         <center>
613                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_two" id="upload_drone_imagery_select_images_two">Go To Next Step</button>
614                         </center>
615                     </&>
616                     <&| /util/workflow.mas:step, title=> "Submit" &>
617                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
618                         <center>
619                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_two_band_submit" id="upload_drone_imagery_two_band_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
620                         </center>
621                     </&>
622                 </&>
623             </form><br/>
624         </div>
625       </div>
626       <div class="modal-footer">
627         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
628       </div>
629     </div>
630   </div>
631 </div>
633 <div class="modal fade" id="upload_drone_imagery_dialog_three_band" name="upload_drone_imagery_dialog_three_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryThreeBandDialog">
634   <div class="modal-dialog modal-xl" role="document">
635     <div class="modal-content">
636       <div class="modal-header">
637         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
638         <h4 class="modal-title" id="uploadDroneImageryThreeBandDialog">Upload Aerial Imagery</h4>
639       </div>
640       <div class="modal-body">
641         <div class="container-fluid">
642             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
644             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_three_band_form" name="upload_drone_imagery_three_band_form" action="/drone_imagery/upload_drone_imagery" >
645                 <input type="hidden" name="drone_run_field_trial_id" value="" >
647                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
648                 <input type="hidden" name="drone_run_id" value=""/>
649                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
651                 <input type="hidden" name="drone_run_name" value="" />
652                 <input type="hidden" name="drone_run_type" value="" />
653                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
654                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
655                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
656                 <input type="hidden" name="drone_run_description" value="" />
657                 <input type="hidden" name="drone_run_date" value="" />
658                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
659                 <input type="hidden" name="drone_run_base_date" value="" />
660                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
661                 <input type="hidden" name="drone_run_band_number" value="" />
663                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_three_band" &>
664                     <&| /util/workflow.mas:step, title=> "Select Images" &>
665                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
667                         <div class="well well-sm">
668                             <div class="form-group">
669                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
670                                 <div class="col-sm-9" >
671                                     <input class="form-control" id="drone_run_band_name_three_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
672                                 </div>
673                             </div>
674                             <div class="form-group">
675                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
676                                 <div class="col-sm-9" >
677                                     <input class="form-control" id="drone_run_band_description_three_1" name="drone_run_band_description_1" type="text" />
678                                 </div>
679                             </div>
680                             <div class="form-group">
681                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
682                                 <div class="col-sm-9" >
683                                     <select class="form-control" id="drone_run_band_coordinate_system_three_1" name="drone_run_band_coordinate_system_1">
684                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
685                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
686                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
687                                     </select>
688                                 </div>
689                             </div>
690                             <div class="form-group">
691                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
692                                 <div class="col-sm-9" >
693                                     <select class="form-control" id="drone_run_band_type_three_1" name="drone_run_band_type_1">
694                                         <option value="Black and White Image">Black and White Image</option>
695                                         <option value="RGB Color Image">RGB Color Image</option>
696                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
697                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
698                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
699                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
700                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
701                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
702                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
703                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
704                                     </select>
705                                 </div>
706                             </div>
707                             <div class="form-group">
708                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
709                                 <div class="col-sm-9" >
710                                     <input type="file" id="drone_run_band_stitched_ortho_image_three_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
711                                 </div>
712                             </div>
713                         </div>
714                         <div class="well well-sm">
715                             <div class="form-group">
716                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
717                                 <div class="col-sm-9" >
718                                     <input class="form-control" id="drone_run_band_name_three_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
719                                 </div>
720                             </div>
721                             <div class="form-group">
722                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
723                                 <div class="col-sm-9" >
724                                     <input class="form-control" id="drone_run_band_description_three_2" name="drone_run_band_description_2" type="text" />
725                                 </div>
726                             </div>
727                             <div class="form-group">
728                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
729                                 <div class="col-sm-9" >
730                                     <select class="form-control" id="drone_run_band_coordinate_system_three_2" name="drone_run_band_coordinate_system_2">
731                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
732                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
733                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
734                                     </select>
735                                 </div>
736                             </div>
737                             <div class="form-group">
738                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
739                                 <div class="col-sm-9" >
740                                     <select class="form-control" id="drone_run_band_type_three_2" name="drone_run_band_type_2">
741                                         <option value="Black and White Image">Black and White Image</option>
742                                         <option value="RGB Color Image">RGB Color Image</option>
743                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
744                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
745                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
746                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
747                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
748                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
749                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
750                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
751                                     </select>
752                                 </div>
753                             </div>
754                             <div class="form-group">
755                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
756                                 <div class="col-sm-9" >
757                                     <input type="file" id="drone_run_band_stitched_ortho_image_three_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
758                                 </div>
759                             </div>
760                         </div>
761                         <div class="well well-sm">
762                             <div class="form-group">
763                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
764                                 <div class="col-sm-9" >
765                                     <input class="form-control" id="drone_run_band_name_three_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
766                                 </div>
767                             </div>
768                             <div class="form-group">
769                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
770                                 <div class="col-sm-9" >
771                                     <input class="form-control" id="drone_run_band_description_three_3" name="drone_run_band_description_3" type="text" />
772                                 </div>
773                             </div>
774                             <div class="form-group">
775                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
776                                 <div class="col-sm-9" >
777                                     <select class="form-control" id="drone_run_band_coordinate_system_three_3" name="drone_run_band_coordinate_system_3">
778                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
779                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
780                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
781                                     </select>
782                                 </div>
783                             </div>
784                             <div class="form-group">
785                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
786                                 <div class="col-sm-9" >
787                                     <select class="form-control" id="drone_run_band_type_three_3" name="drone_run_band_type_3">
788                                         <option value="Black and White Image">Black and White Image</option>
789                                         <option value="RGB Color Image">RGB Color Image</option>
790                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
791                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
792                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
793                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
794                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
795                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
796                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
797                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
798                                     </select>
799                                 </div>
800                             </div>
801                             <div class="form-group">
802                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
803                                 <div class="col-sm-9" >
804                                     <input type="file" id="drone_run_band_stitched_ortho_image_three_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
805                                 </div>
806                             </div>
807                         </div>
808                         <center>
809                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_three" id="upload_drone_imagery_select_images_three">Go To Next Step</button>
810                         </center>
811                     </&>
812                     <&| /util/workflow.mas:step, title=> "Submit" &>
813                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
814                         <center>
815                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_three_band_submit" id="upload_drone_imagery_three_band_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
816                         </center>
817                     </&>
818                 </&>
819             </form><br/>
820         </div>
821       </div>
822       <div class="modal-footer">
823         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
824       </div>
825     </div>
826   </div>
827 </div>
829 <div class="modal fade" id="upload_drone_imagery_dialog_four_band" name="upload_drone_imagery_dialog_four_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryFourBandDialog">
830   <div class="modal-dialog modal-xl" role="document">
831     <div class="modal-content">
832       <div class="modal-header">
833         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
834         <h4 class="modal-title" id="uploadDroneImageryFourBandDialog">Upload Aerial Imagery</h4>
835       </div>
836       <div class="modal-body">
837         <div class="container-fluid">
838             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
840             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_four_band_form" name="upload_drone_imagery_four_band_form" action="/drone_imagery/upload_drone_imagery" >
841                 <input type="hidden" name="drone_run_field_trial_id" value="" >
843                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
844                 <input type="hidden" name="drone_run_id" value=""/>
845                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
847                 <input type="hidden" name="drone_run_name" value="" />
848                 <input type="hidden" name="drone_run_type" value="" />
849                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
850                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
851                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
852                 <input type="hidden" name="drone_run_description" value="" />
853                 <input type="hidden" name="drone_run_date" value="" />
854                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
855                 <input type="hidden" name="drone_run_base_date" value="" />
856                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
857                 <input type="hidden" name="drone_run_band_number" value="" />
859                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_four_band" &>
860                     <&| /util/workflow.mas:step, title=> "Select Images" &>
861                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
863                         <div class="well well-sm">
864                             <div class="form-group">
865                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
866                                 <div class="col-sm-9" >
867                                     <input class="form-control" id="drone_run_band_name_four_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
868                                 </div>
869                             </div>
870                             <div class="form-group">
871                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
872                                 <div class="col-sm-9" >
873                                     <input class="form-control" id="drone_run_band_description_four_1" name="drone_run_band_description_1" type="text" />
874                                 </div>
875                             </div>
876                             <div class="form-group">
877                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
878                                 <div class="col-sm-9" >
879                                     <select class="form-control" id="drone_run_band_coordinate_system_four_1" name="drone_run_band_coordinate_system_1">
880                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
881                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
882                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
883                                     </select>
884                                 </div>
885                             </div>
886                             <div class="form-group">
887                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
888                                 <div class="col-sm-9" >
889                                     <select class="form-control" id="drone_run_band_type_four_1" name="drone_run_band_type_1">
890                                         <option value="Black and White Image">Black and White Image</option>
891                                         <option value="RGB Color Image">RGB Color Image</option>
892                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
893                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
894                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
895                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
896                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
897                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
898                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
899                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
900                                     </select>
901                                 </div>
902                             </div>
903                             <div class="form-group">
904                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
905                                 <div class="col-sm-9" >
906                                     <input type="file" id="drone_run_band_stitched_ortho_image_four_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
907                                 </div>
908                             </div>
909                         </div>
910                         <div class="well well-sm">
911                             <div class="form-group">
912                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
913                                 <div class="col-sm-9" >
914                                     <input class="form-control" id="drone_run_band_name_four_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
915                                 </div>
916                             </div>
917                             <div class="form-group">
918                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
919                                 <div class="col-sm-9" >
920                                     <input class="form-control" id="drone_run_band_description_four_2" name="drone_run_band_description_2" type="text" />
921                                 </div>
922                             </div>
923                             <div class="form-group">
924                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
925                                 <div class="col-sm-9" >
926                                     <select class="form-control" id="drone_run_band_coordinate_system_four_2" name="drone_run_band_coordinate_system_2">
927                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
928                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
929                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
930                                     </select>
931                                 </div>
932                             </div>
933                             <div class="form-group">
934                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
935                                 <div class="col-sm-9" >
936                                     <select class="form-control" id="drone_run_band_type_four_2" name="drone_run_band_type_2">
937                                         <option value="Black and White Image">Black and White Image</option>
938                                         <option value="RGB Color Image">RGB Color Image</option>
939                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
940                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
941                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
942                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
943                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
944                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
945                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
946                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
947                                     </select>
948                                 </div>
949                             </div>
950                             <div class="form-group">
951                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
952                                 <div class="col-sm-9" >
953                                     <input type="file" id="drone_run_band_stitched_ortho_image_four_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
954                                 </div>
955                             </div>
956                         </div>
957                         <div class="well well-sm">
958                             <div class="form-group">
959                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
960                                 <div class="col-sm-9" >
961                                     <input class="form-control" id="drone_run_band_name_four_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
962                                 </div>
963                             </div>
964                             <div class="form-group">
965                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
966                                 <div class="col-sm-9" >
967                                     <input class="form-control" id="drone_run_band_description_four_3" name="drone_run_band_description_3" type="text" />
968                                 </div>
969                             </div>
970                             <div class="form-group">
971                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
972                                 <div class="col-sm-9" >
973                                     <select class="form-control" id="drone_run_band_coordinate_system_four_3" name="drone_run_band_coordinate_system_3">
974                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
975                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
976                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
977                                     </select>
978                                 </div>
979                             </div>
980                             <div class="form-group">
981                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
982                                 <div class="col-sm-9" >
983                                     <select class="form-control" id="drone_run_band_type_four_3" name="drone_run_band_type_3">
984                                         <option value="Black and White Image">Black and White Image</option>
985                                         <option value="RGB Color Image">RGB Color Image</option>
986                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
987                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
988                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
989                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
990                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
991                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
992                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
993                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
994                                     </select>
995                                 </div>
996                             </div>
997                             <div class="form-group">
998                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
999                                 <div class="col-sm-9" >
1000                                     <input type="file" id="drone_run_band_stitched_ortho_image_four_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
1001                                 </div>
1002                             </div>
1003                         </div>
1004                         <div class="well well-sm">
1005                             <div class="form-group">
1006                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1007                                 <div class="col-sm-9" >
1008                                     <input class="form-control" id="drone_run_band_name_four_4" name="drone_run_band_name_4" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1009                                 </div>
1010                             </div>
1011                             <div class="form-group">
1012                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1013                                 <div class="col-sm-9" >
1014                                     <input class="form-control" id="drone_run_band_description_four_4" name="drone_run_band_description_4" type="text" />
1015                                 </div>
1016                             </div>
1017                             <div class="form-group">
1018                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1019                                 <div class="col-sm-9" >
1020                                     <select class="form-control" id="drone_run_band_coordinate_system_four_4" name="drone_run_band_coordinate_system_4">
1021                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1022                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1023                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1024                                     </select>
1025                                 </div>
1026                             </div>
1027                             <div class="form-group">
1028                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1029                                 <div class="col-sm-9" >
1030                                     <select class="form-control" id="drone_run_band_type_four_4" name="drone_run_band_type_4">
1031                                         <option value="Black and White Image">Black and White Image</option>
1032                                         <option value="RGB Color Image">RGB Color Image</option>
1033                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1034                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1035                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1036                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1037                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1038                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1039                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1040                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1041                                     </select>
1042                                 </div>
1043                             </div>
1044                             <div class="form-group">
1045                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1046                                 <div class="col-sm-9" >
1047                                     <input type="file" id="drone_run_band_stitched_ortho_image_four_4" name="drone_run_band_stitched_ortho_image_4" encoding="multipart/form-data" />
1048                                 </div>
1049                             </div>
1050                         </div>
1051                         <center>
1052                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_four" id="upload_drone_imagery_select_images_four">Go To Next Step</button>
1053                         </center>
1054                     </&>
1055                     <&| /util/workflow.mas:step, title=> "Submit" &>
1056                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
1057                         <center>
1058                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_four_submit" id="upload_drone_imagery_four_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
1059                         </center>
1060                     </&>
1061                 </&>
1062             </form><br/>
1063         </div>
1064       </div>
1065       <div class="modal-footer">
1066         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1067       </div>
1068     </div>
1069   </div>
1070 </div>
1072 <div class="modal fade" id="upload_drone_imagery_dialog_five_band" name="upload_drone_imagery_dialog_five_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryFiveBandDialog">
1073   <div class="modal-dialog modal-xl" role="document">
1074     <div class="modal-content">
1075       <div class="modal-header">
1076         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1077         <h4 class="modal-title" id="uploadDroneImageryFiveBandDialog">Upload Aerial Imagery</h4>
1078       </div>
1079       <div class="modal-body">
1080         <div class="container-fluid">
1081             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
1083             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_five_band_form" name="upload_drone_imagery_five_band_form" action="/drone_imagery/upload_drone_imagery" >
1084                 <input type="hidden" name="drone_run_field_trial_id" value="" >
1086                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
1087                 <input type="hidden" name="drone_run_id" value=""/>
1088                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
1090                 <input type="hidden" name="drone_run_name" value="" />
1091                 <input type="hidden" name="drone_run_type" value="" />
1092                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
1093                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
1094                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
1095                 <input type="hidden" name="drone_run_description" value="" />
1096                 <input type="hidden" name="drone_run_date" value="" />
1097                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
1098                 <input type="hidden" name="drone_run_base_date" value="" />
1099                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
1100                 <input type="hidden" name="drone_run_band_number" value="" />
1102                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_five_band" &>
1103                     <&| /util/workflow.mas:step, title=> "Select Images" &>
1104                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
1106                         <div class="well well-sm">
1107                             <div class="form-group">
1108                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1109                                 <div class="col-sm-9" >
1110                                     <input class="form-control" id="drone_run_band_name_five_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1111                                 </div>
1112                             </div>
1113                             <div class="form-group">
1114                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1115                                 <div class="col-sm-9" >
1116                                     <input class="form-control" id="drone_run_band_description_five_1" name="drone_run_band_description_1" type="text" />
1117                                 </div>
1118                             </div>
1119                             <div class="form-group">
1120                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1121                                 <div class="col-sm-9" >
1122                                     <select class="form-control" id="drone_run_band_coordinate_system_five_1" name="drone_run_band_coordinate_system_1">
1123                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1124                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1125                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1126                                     </select>
1127                                 </div>
1128                             </div>
1129                             <div class="form-group">
1130                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1131                                 <div class="col-sm-9" >
1132                                     <select class="form-control" id="drone_run_band_type_five_1" name="drone_run_band_type_1">
1133                                         <option value="Black and White Image">Black and White Image</option>
1134                                         <option value="RGB Color Image">RGB Color Image</option>
1135                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1136                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1137                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1138                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1139                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1140                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1141                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1142                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1143                                     </select>
1144                                 </div>
1145                             </div>
1146                             <div class="form-group">
1147                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1148                                 <div class="col-sm-9" >
1149                                     <input type="file" id="drone_run_band_stitched_ortho_image_five_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
1150                                 </div>
1151                             </div>
1152                         </div>
1153                         <div class="well well-sm">
1154                             <div class="form-group">
1155                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1156                                 <div class="col-sm-9" >
1157                                     <input class="form-control" id="drone_run_band_name_five_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1158                                 </div>
1159                             </div>
1160                             <div class="form-group">
1161                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1162                                 <div class="col-sm-9" >
1163                                     <input class="form-control" id="drone_run_band_description_five_2" name="drone_run_band_description_2" type="text" />
1164                                 </div>
1165                             </div>
1166                             <div class="form-group">
1167                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1168                                 <div class="col-sm-9" >
1169                                     <select class="form-control" id="drone_run_band_coordinate_system_five_2" name="drone_run_band_coordinate_system_2">
1170                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1171                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1172                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1173                                     </select>
1174                                 </div>
1175                             </div>
1176                             <div class="form-group">
1177                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1178                                 <div class="col-sm-9" >
1179                                     <select class="form-control" id="drone_run_band_type_five_2" name="drone_run_band_type_2">
1180                                         <option value="Black and White Image">Black and White Image</option>
1181                                         <option value="RGB Color Image">RGB Color Image</option>
1182                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1183                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1184                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1185                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1186                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1187                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1188                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1189                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1190                                     </select>
1191                                 </div>
1192                             </div>
1193                             <div class="form-group">
1194                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1195                                 <div class="col-sm-9" >
1196                                     <input type="file" id="drone_run_band_stitched_ortho_image_five_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
1197                                 </div>
1198                             </div>
1199                         </div>
1200                         <div class="well well-sm">
1201                             <div class="form-group">
1202                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1203                                 <div class="col-sm-9" >
1204                                     <input class="form-control" id="drone_run_band_name_five_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1205                                 </div>
1206                             </div>
1207                             <div class="form-group">
1208                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1209                                 <div class="col-sm-9" >
1210                                     <input class="form-control" id="drone_run_band_description_five_3" name="drone_run_band_description_3" type="text" />
1211                                 </div>
1212                             </div>
1213                             <div class="form-group">
1214                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1215                                 <div class="col-sm-9" >
1216                                     <select class="form-control" id="drone_run_band_coordinate_system_five_3" name="drone_run_band_coordinate_system_3">
1217                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1218                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1219                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1220                                     </select>
1221                                 </div>
1222                             </div>
1223                             <div class="form-group">
1224                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1225                                 <div class="col-sm-9" >
1226                                     <select class="form-control" id="drone_run_band_type_five_3" name="drone_run_band_type_3">
1227                                         <option value="Black and White Image">Black and White Image</option>
1228                                         <option value="RGB Color Image">RGB Color Image</option>
1229                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1230                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1231                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1232                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1233                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1234                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1235                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1236                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1237                                     </select>
1238                                 </div>
1239                             </div>
1240                             <div class="form-group">
1241                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1242                                 <div class="col-sm-9" >
1243                                     <input type="file" id="drone_run_band_stitched_ortho_image_five_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
1244                                 </div>
1245                             </div>
1246                         </div>
1247                         <div class="well well-sm">
1248                             <div class="form-group">
1249                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1250                                 <div class="col-sm-9" >
1251                                     <input class="form-control" id="drone_run_band_name_five_4" name="drone_run_band_name_4" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1252                                 </div>
1253                             </div>
1254                             <div class="form-group">
1255                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1256                                 <div class="col-sm-9" >
1257                                     <input class="form-control" id="drone_run_band_description_five_4" name="drone_run_band_description_4" type="text" />
1258                                 </div>
1259                             </div>
1260                             <div class="form-group">
1261                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1262                                 <div class="col-sm-9" >
1263                                     <select class="form-control" id="drone_run_band_coordinate_system_five_4" name="drone_run_band_coordinate_system_4">
1264                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1265                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1266                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1267                                     </select>
1268                                 </div>
1269                             </div>
1270                             <div class="form-group">
1271                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1272                                 <div class="col-sm-9" >
1273                                     <select class="form-control" id="drone_run_band_type_five_4" name="drone_run_band_type_4">
1274                                         <option value="Black and White Image">Black and White Image</option>
1275                                         <option value="RGB Color Image">RGB Color Image</option>
1276                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1277                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1278                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1279                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1280                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1281                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1282                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1283                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1284                                     </select>
1285                                 </div>
1286                             </div>
1287                             <div class="form-group">
1288                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1289                                 <div class="col-sm-9" >
1290                                     <input type="file" id="drone_run_band_stitched_ortho_image_five_4" name="drone_run_band_stitched_ortho_image_4" encoding="multipart/form-data" />
1291                                 </div>
1292                             </div>
1293                         </div>
1294                         <div class="well well-sm">
1295                             <div class="form-group">
1296                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1297                                 <div class="col-sm-9" >
1298                                     <input class="form-control" id="drone_run_band_name_five_5" name="drone_run_band_name_5" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1299                                 </div>
1300                             </div>
1301                             <div class="form-group">
1302                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1303                                 <div class="col-sm-9" >
1304                                     <input class="form-control" id="drone_run_band_description_five_5" name="drone_run_band_description_5" type="text" />
1305                                 </div>
1306                             </div>
1307                             <div class="form-group">
1308                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1309                                 <div class="col-sm-9" >
1310                                     <select class="form-control" id="drone_run_band_coordinate_system_five_5" name="drone_run_band_coordinate_system_5">
1311                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1312                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1313                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1314                                     </select>
1315                                 </div>
1316                             </div>
1317                             <div class="form-group">
1318                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1319                                 <div class="col-sm-9" >
1320                                     <select class="form-control" id="drone_run_band_type_five_5" name="drone_run_band_type_5">
1321                                         <option value="Black and White Image">Black and White Image</option>
1322                                         <option value="RGB Color Image">RGB Color Image</option>
1323                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1324                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1325                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1326                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1327                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1328                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1329                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1330                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1331                                     </select>
1332                                 </div>
1333                             </div>
1334                             <div class="form-group">
1335                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1336                                 <div class="col-sm-9" >
1337                                     <input type="file" id="drone_run_band_stitched_ortho_image_five_5" name="drone_run_band_stitched_ortho_image_5" encoding="multipart/form-data" />
1338                                 </div>
1339                             </div>
1340                         </div>
1341                         <center>
1342                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_five" id="upload_drone_imagery_select_images_five">Go To Next Step</button>
1343                         </center>
1344                     </&>
1345                     <&| /util/workflow.mas:step, title=> "Submit" &>
1346                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
1347                         <center>
1348                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_five_submit" id="upload_drone_imagery_five_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
1349                         </center>
1350                     </&>
1351                 </&>
1352             </form><br/>
1353         </div>
1354       </div>
1355       <div class="modal-footer">
1356         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1357       </div>
1358     </div>
1359   </div>
1360 </div>
1362 <div class="modal fade" id="upload_drone_imagery_dialog_six_band" name="upload_drone_imagery_dialog_six_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImagerySixBandDialog">
1363   <div class="modal-dialog modal-xl" role="document">
1364     <div class="modal-content">
1365       <div class="modal-header">
1366         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1367         <h4 class="modal-title" id="uploadDroneImagerySixBandDialog">Upload Aerial Imagery</h4>
1368       </div>
1369       <div class="modal-body">
1370         <div class="container-fluid">
1371             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
1373             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_six_band_form" name="upload_drone_imagery_six_band_form" action="/drone_imagery/upload_drone_imagery" >
1374                 <input type="hidden" name="drone_run_field_trial_id" value="" >
1376                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
1377                 <input type="hidden" name="drone_run_id" value=""/>
1378                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
1380                 <input type="hidden" name="drone_run_name" value="" />
1381                 <input type="hidden" name="drone_run_type" value="" />
1382                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
1383                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
1384                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
1385                 <input type="hidden" name="drone_run_description" value="" />
1386                 <input type="hidden" name="drone_run_date" value="" />
1387                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
1388                 <input type="hidden" name="drone_run_base_date" value="" />
1389                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
1390                 <input type="hidden" name="drone_run_band_number" value="" />
1392                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_six_band" &>
1393                     <&| /util/workflow.mas:step, title=> "Select Images" &>
1394                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
1396                         <div class="well well-sm">
1397                             <div class="form-group">
1398                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1399                                 <div class="col-sm-9" >
1400                                     <input class="form-control" id="drone_run_band_name_six_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1401                                 </div>
1402                             </div>
1403                             <div class="form-group">
1404                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1405                                 <div class="col-sm-9" >
1406                                     <input class="form-control" id="drone_run_band_description_six_1" name="drone_run_band_description_1" type="text" />
1407                                 </div>
1408                             </div>
1409                             <div class="form-group">
1410                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1411                                 <div class="col-sm-9" >
1412                                     <select class="form-control" id="drone_run_band_coordinate_system_six_1" name="drone_run_band_coordinate_system_1">
1413                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1414                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1415                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1416                                     </select>
1417                                 </div>
1418                             </div>
1419                             <div class="form-group">
1420                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1421                                 <div class="col-sm-9" >
1422                                     <select class="form-control" id="drone_run_band_type_six_1" name="drone_run_band_type_1">
1423                                         <option value="Black and White Image">Black and White Image</option>
1424                                         <option value="RGB Color Image">RGB Color Image</option>
1425                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1426                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1427                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1428                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1429                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1430                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1431                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1432                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1433                                     </select>
1434                                 </div>
1435                             </div>
1436                             <div class="form-group">
1437                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1438                                 <div class="col-sm-9" >
1439                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
1440                                 </div>
1441                             </div>
1442                         </div>
1443                         <div class="well well-sm">
1444                             <div class="form-group">
1445                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1446                                 <div class="col-sm-9" >
1447                                     <input class="form-control" id="drone_run_band_name_six_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1448                                 </div>
1449                             </div>
1450                             <div class="form-group">
1451                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1452                                 <div class="col-sm-9" >
1453                                     <input class="form-control" id="drone_run_band_description_six_2" name="drone_run_band_description_2" type="text" />
1454                                 </div>
1455                             </div>
1456                             <div class="form-group">
1457                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1458                                 <div class="col-sm-9" >
1459                                     <select class="form-control" id="drone_run_band_coordinate_system_six_2" name="drone_run_band_coordinate_system_2">
1460                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1461                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1462                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1463                                     </select>
1464                                 </div>
1465                             </div>
1466                             <div class="form-group">
1467                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1468                                 <div class="col-sm-9" >
1469                                     <select class="form-control" id="drone_run_band_type_six_2" name="drone_run_band_type_2">
1470                                         <option value="Black and White Image">Black and White Image</option>
1471                                         <option value="RGB Color Image">RGB Color Image</option>
1472                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1473                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1474                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1475                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1476                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1477                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1478                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1479                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1480                                     </select>
1481                                 </div>
1482                             </div>
1483                             <div class="form-group">
1484                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1485                                 <div class="col-sm-9" >
1486                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
1487                                 </div>
1488                             </div>
1489                         </div>
1490                         <div class="well well-sm">
1491                             <div class="form-group">
1492                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1493                                 <div class="col-sm-9" >
1494                                     <input class="form-control" id="drone_run_band_name_six_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1495                                 </div>
1496                             </div>
1497                             <div class="form-group">
1498                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1499                                 <div class="col-sm-9" >
1500                                     <input class="form-control" id="drone_run_band_description_six_3" name="drone_run_band_description_3" type="text" />
1501                                 </div>
1502                             </div>
1503                             <div class="form-group">
1504                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1505                                 <div class="col-sm-9" >
1506                                     <select class="form-control" id="drone_run_band_coordinate_system_six_3" name="drone_run_band_coordinate_system_3">
1507                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1508                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1509                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1510                                     </select>
1511                                 </div>
1512                             </div>
1513                             <div class="form-group">
1514                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1515                                 <div class="col-sm-9" >
1516                                     <select class="form-control" id="drone_run_band_type_six_3" name="drone_run_band_type_3">
1517                                         <option value="Black and White Image">Black and White Image</option>
1518                                         <option value="RGB Color Image">RGB Color Image</option>
1519                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1520                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1521                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1522                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1523                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1524                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1525                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1526                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1527                                     </select>
1528                                 </div>
1529                             </div>
1530                             <div class="form-group">
1531                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1532                                 <div class="col-sm-9" >
1533                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
1534                                 </div>
1535                             </div>
1536                         </div>
1537                         <div class="well well-sm">
1538                             <div class="form-group">
1539                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1540                                 <div class="col-sm-9" >
1541                                     <input class="form-control" id="drone_run_band_name_six_4" name="drone_run_band_name_4" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1542                                 </div>
1543                             </div>
1544                             <div class="form-group">
1545                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1546                                 <div class="col-sm-9" >
1547                                     <input class="form-control" id="drone_run_band_description_six_4" name="drone_run_band_description_4" type="text" />
1548                                 </div>
1549                             </div>
1550                             <div class="form-group">
1551                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1552                                 <div class="col-sm-9" >
1553                                     <select class="form-control" id="drone_run_band_coordinate_system_six_4" name="drone_run_band_coordinate_system_4">
1554                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1555                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1556                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1557                                     </select>
1558                                 </div>
1559                             </div>
1560                             <div class="form-group">
1561                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1562                                 <div class="col-sm-9" >
1563                                     <select class="form-control" id="drone_run_band_type_six_4" name="drone_run_band_type_4">
1564                                         <option value="Black and White Image">Black and White Image</option>
1565                                         <option value="RGB Color Image">RGB Color Image</option>
1566                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1567                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1568                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1569                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1570                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1571                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1572                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1573                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1574                                     </select>
1575                                 </div>
1576                             </div>
1577                             <div class="form-group">
1578                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1579                                 <div class="col-sm-9" >
1580                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_4" name="drone_run_band_stitched_ortho_image_4" encoding="multipart/form-data" />
1581                                 </div>
1582                             </div>
1583                         </div>
1584                         <div class="well well-sm">
1585                             <div class="form-group">
1586                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1587                                 <div class="col-sm-9" >
1588                                     <input class="form-control" id="drone_run_band_name_six_5" name="drone_run_band_name_5" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1589                                 </div>
1590                             </div>
1591                             <div class="form-group">
1592                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1593                                 <div class="col-sm-9" >
1594                                     <input class="form-control" id="drone_run_band_description_six_5" name="drone_run_band_description_5" type="text" />
1595                                 </div>
1596                             </div>
1597                             <div class="form-group">
1598                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1599                                 <div class="col-sm-9" >
1600                                     <select class="form-control" id="drone_run_band_coordinate_system_six_5" name="drone_run_band_coordinate_system_5">
1601                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1602                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1603                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1604                                     </select>
1605                                 </div>
1606                             </div>
1607                             <div class="form-group">
1608                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1609                                 <div class="col-sm-9" >
1610                                     <select class="form-control" id="drone_run_band_type_six_5" name="drone_run_band_type_5">
1611                                         <option value="Black and White Image">Black and White Image</option>
1612                                         <option value="RGB Color Image">RGB Color Image</option>
1613                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1614                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1615                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1616                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1617                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1618                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1619                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1620                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1621                                     </select>
1622                                 </div>
1623                             </div>
1624                             <div class="form-group">
1625                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1626                                 <div class="col-sm-9" >
1627                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_5" name="drone_run_band_stitched_ortho_image_5" encoding="multipart/form-data" />
1628                                 </div>
1629                             </div>
1630                         </div>
1631                         <div class="well well-sm">
1632                             <div class="form-group">
1633                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1634                                 <div class="col-sm-9" >
1635                                     <input class="form-control" id="drone_run_band_name_six_6" name="drone_run_band_name_6" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1636                                 </div>
1637                             </div>
1638                             <div class="form-group">
1639                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1640                                 <div class="col-sm-9" >
1641                                     <input class="form-control" id="drone_run_band_description_six_6" name="drone_run_band_description_6" type="text" />
1642                                 </div>
1643                             </div>
1644                             <div class="form-group">
1645                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1646                                 <div class="col-sm-9" >
1647                                     <select class="form-control" id="drone_run_band_coordinate_system_six_6" name="drone_run_band_coordinate_system_6">
1648                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1649                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1650                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1651                                     </select>
1652                                 </div>
1653                             </div>
1654                             <div class="form-group">
1655                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1656                                 <div class="col-sm-9" >
1657                                     <select class="form-control" id="drone_run_band_type_six_6" name="drone_run_band_type_6">
1658                                         <option value="Black and White Image">Black and White Image</option>
1659                                         <option value="RGB Color Image">RGB Color Image</option>
1660                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1661                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1662                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1663                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1664                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1665                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1666                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1667                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1668                                     </select>
1669                                 </div>
1670                             </div>
1671                             <div class="form-group">
1672                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1673                                 <div class="col-sm-9" >
1674                                     <input type="file" id="drone_run_band_stitched_ortho_image_six_6" name="drone_run_band_stitched_ortho_image_6" encoding="multipart/form-data" />
1675                                 </div>
1676                             </div>
1677                         </div>
1678                         <center>
1679                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_six" id="upload_drone_imagery_select_images_six">Go To Next Step</button>
1680                         </center>
1681                     </&>
1682                     <&| /util/workflow.mas:step, title=> "Submit" &>
1683                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
1684                         <center>
1685                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_six_submit" id="upload_drone_imagery_six_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
1686                         </center>
1687                     </&>
1688                 </&>
1689             </form><br/>
1690         </div>
1691       </div>
1692       <div class="modal-footer">
1693         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1694       </div>
1695     </div>
1696   </div>
1697 </div>
1699 <div class="modal fade" id="upload_drone_imagery_dialog_seven_band" name="upload_drone_imagery_dialog_seven_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImagerySevenBandDialog">
1700   <div class="modal-dialog modal-xl" role="document">
1701     <div class="modal-content">
1702       <div class="modal-header">
1703         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1704         <h4 class="modal-title" id="uploadDroneImagerySevenBandDialog">Upload Aerial Imagery</h4>
1705       </div>
1706       <div class="modal-body">
1707         <div class="container-fluid">
1708             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
1710             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_seven_band_form" name="upload_drone_imagery_seven_band_form" action="/drone_imagery/upload_drone_imagery" >
1711                 <input type="hidden" name="drone_run_field_trial_id" value="" >
1713                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
1714                 <input type="hidden" name="drone_run_id" value=""/>
1715                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
1717                 <input type="hidden" name="drone_run_name" value="" />
1718                 <input type="hidden" name="drone_run_type" value="" />
1719                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
1720                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
1721                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
1722                 <input type="hidden" name="drone_run_description" value="" />
1723                 <input type="hidden" name="drone_run_date" value="" />
1724                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
1725                 <input type="hidden" name="drone_run_base_date" value="" />
1726                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
1727                 <input type="hidden" name="drone_run_band_number" value="" />
1729                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_seven_band" &>
1730                     <&| /util/workflow.mas:step, title=> "Select Images" &>
1731                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
1733                         <div class="well well-sm">
1734                             <div class="form-group">
1735                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1736                                 <div class="col-sm-9" >
1737                                     <input class="form-control" id="drone_run_band_name_seven_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1738                                 </div>
1739                             </div>
1740                             <div class="form-group">
1741                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1742                                 <div class="col-sm-9" >
1743                                     <input class="form-control" id="drone_run_band_description_seven_1" name="drone_run_band_description_1" type="text" />
1744                                 </div>
1745                             </div>
1746                             <div class="form-group">
1747                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1748                                 <div class="col-sm-9" >
1749                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_1" name="drone_run_band_coordinate_system_1">
1750                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1751                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1752                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1753                                     </select>
1754                                 </div>
1755                             </div>
1756                             <div class="form-group">
1757                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1758                                 <div class="col-sm-9" >
1759                                     <select class="form-control" id="drone_run_band_type_seven_1" name="drone_run_band_type_1">
1760                                         <option value="Black and White Image">Black and White Image</option>
1761                                         <option value="RGB Color Image">RGB Color Image</option>
1762                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1763                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1764                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1765                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1766                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1767                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1768                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1769                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1770                                     </select>
1771                                 </div>
1772                             </div>
1773                             <div class="form-group">
1774                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1775                                 <div class="col-sm-9" >
1776                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
1777                                 </div>
1778                             </div>
1779                         </div>
1780                         <div class="well well-sm">
1781                             <div class="form-group">
1782                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1783                                 <div class="col-sm-9" >
1784                                     <input class="form-control" id="drone_run_band_name_seven_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1785                                 </div>
1786                             </div>
1787                             <div class="form-group">
1788                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1789                                 <div class="col-sm-9" >
1790                                     <input class="form-control" id="drone_run_band_description_seven_2" name="drone_run_band_description_2" type="text" />
1791                                 </div>
1792                             </div>
1793                             <div class="form-group">
1794                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1795                                 <div class="col-sm-9" >
1796                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_2" name="drone_run_band_coordinate_system_2">
1797                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1798                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1799                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1800                                     </select>
1801                                 </div>
1802                             </div>
1803                             <div class="form-group">
1804                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1805                                 <div class="col-sm-9" >
1806                                     <select class="form-control" id="drone_run_band_type_seven_2" name="drone_run_band_type_2">
1807                                         <option value="Black and White Image">Black and White Image</option>
1808                                         <option value="RGB Color Image">RGB Color Image</option>
1809                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1810                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1811                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1812                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1813                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1814                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1815                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1816                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1817                                     </select>
1818                                 </div>
1819                             </div>
1820                             <div class="form-group">
1821                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1822                                 <div class="col-sm-9" >
1823                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
1824                                 </div>
1825                             </div>
1826                         </div>
1827                         <div class="well well-sm">
1828                             <div class="form-group">
1829                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1830                                 <div class="col-sm-9" >
1831                                     <input class="form-control" id="drone_run_band_name_seven_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1832                                 </div>
1833                             </div>
1834                             <div class="form-group">
1835                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1836                                 <div class="col-sm-9" >
1837                                     <input class="form-control" id="drone_run_band_description_seven_3" name="drone_run_band_description_3" type="text" />
1838                                 </div>
1839                             </div>
1840                             <div class="form-group">
1841                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1842                                 <div class="col-sm-9" >
1843                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_3" name="drone_run_band_coordinate_system_3">
1844                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1845                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1846                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1847                                     </select>
1848                                 </div>
1849                             </div>
1850                             <div class="form-group">
1851                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1852                                 <div class="col-sm-9" >
1853                                     <select class="form-control" id="drone_run_band_type_seven_3" name="drone_run_band_type_3">
1854                                         <option value="Black and White Image">Black and White Image</option>
1855                                         <option value="RGB Color Image">RGB Color Image</option>
1856                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1857                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1858                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1859                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1860                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1861                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1862                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1863                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1864                                     </select>
1865                                 </div>
1866                             </div>
1867                             <div class="form-group">
1868                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1869                                 <div class="col-sm-9" >
1870                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
1871                                 </div>
1872                             </div>
1873                         </div>
1874                         <div class="well well-sm">
1875                             <div class="form-group">
1876                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1877                                 <div class="col-sm-9" >
1878                                     <input class="form-control" id="drone_run_band_name_seven_4" name="drone_run_band_name_4" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1879                                 </div>
1880                             </div>
1881                             <div class="form-group">
1882                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1883                                 <div class="col-sm-9" >
1884                                     <input class="form-control" id="drone_run_band_description_seven_4" name="drone_run_band_description_4" type="text" />
1885                                 </div>
1886                             </div>
1887                             <div class="form-group">
1888                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1889                                 <div class="col-sm-9" >
1890                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_4" name="drone_run_band_coordinate_system_4">
1891                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1892                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1893                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1894                                     </select>
1895                                 </div>
1896                             </div>
1897                             <div class="form-group">
1898                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1899                                 <div class="col-sm-9" >
1900                                     <select class="form-control" id="drone_run_band_type_seven_4" name="drone_run_band_type_4">
1901                                         <option value="Black and White Image">Black and White Image</option>
1902                                         <option value="RGB Color Image">RGB Color Image</option>
1903                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1904                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1905                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1906                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1907                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1908                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1909                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1910                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1911                                     </select>
1912                                 </div>
1913                             </div>
1914                             <div class="form-group">
1915                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1916                                 <div class="col-sm-9" >
1917                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_4" name="drone_run_band_stitched_ortho_image_4" encoding="multipart/form-data" />
1918                                 </div>
1919                             </div>
1920                         </div>
1921                         <div class="well well-sm">
1922                             <div class="form-group">
1923                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1924                                 <div class="col-sm-9" >
1925                                     <input class="form-control" id="drone_run_band_name_seven_5" name="drone_run_band_name_5" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1926                                 </div>
1927                             </div>
1928                             <div class="form-group">
1929                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1930                                 <div class="col-sm-9" >
1931                                     <input class="form-control" id="drone_run_band_description_seven_5" name="drone_run_band_description_5" type="text" />
1932                                 </div>
1933                             </div>
1934                             <div class="form-group">
1935                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1936                                 <div class="col-sm-9" >
1937                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_5" name="drone_run_band_coordinate_system_5">
1938                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1939                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1940                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1941                                     </select>
1942                                 </div>
1943                             </div>
1944                             <div class="form-group">
1945                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1946                                 <div class="col-sm-9" >
1947                                     <select class="form-control" id="drone_run_band_type_seven_5" name="drone_run_band_type_5">
1948                                         <option value="Black and White Image">Black and White Image</option>
1949                                         <option value="RGB Color Image">RGB Color Image</option>
1950                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1951                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1952                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
1953                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
1954                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
1955                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
1956                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
1957                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
1958                                     </select>
1959                                 </div>
1960                             </div>
1961                             <div class="form-group">
1962                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
1963                                 <div class="col-sm-9" >
1964                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_5" name="drone_run_band_stitched_ortho_image_5" encoding="multipart/form-data" />
1965                                 </div>
1966                             </div>
1967                         </div>
1968                         <div class="well well-sm">
1969                             <div class="form-group">
1970                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
1971                                 <div class="col-sm-9" >
1972                                     <input class="form-control" id="drone_run_band_name_seven_6" name="drone_run_band_name_6" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
1973                                 </div>
1974                             </div>
1975                             <div class="form-group">
1976                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
1977                                 <div class="col-sm-9" >
1978                                     <input class="form-control" id="drone_run_band_description_seven_6" name="drone_run_band_description_6" type="text" />
1979                                 </div>
1980                             </div>
1981                             <div class="form-group">
1982                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
1983                                 <div class="col-sm-9" >
1984                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_6" name="drone_run_band_coordinate_system_6">
1985                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
1986                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
1987                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
1988                                     </select>
1989                                 </div>
1990                             </div>
1991                             <div class="form-group">
1992                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
1993                                 <div class="col-sm-9" >
1994                                     <select class="form-control" id="drone_run_band_type_seven_6" name="drone_run_band_type_6">
1995                                         <option value="Black and White Image">Black and White Image</option>
1996                                         <option value="RGB Color Image">RGB Color Image</option>
1997                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
1998                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
1999                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2000                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2001                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2002                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2003                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2004                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2005                                     </select>
2006                                 </div>
2007                             </div>
2008                             <div class="form-group">
2009                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2010                                 <div class="col-sm-9" >
2011                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_6" name="drone_run_band_stitched_ortho_image_6" encoding="multipart/form-data" />
2012                                 </div>
2013                             </div>
2014                         </div>
2015                         <div class="well well-sm">
2016                             <div class="form-group">
2017                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2018                                 <div class="col-sm-9" >
2019                                     <input class="form-control" id="drone_run_band_name_seven_7" name="drone_run_band_name_7" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2020                                 </div>
2021                             </div>
2022                             <div class="form-group">
2023                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2024                                 <div class="col-sm-9" >
2025                                     <input class="form-control" id="drone_run_band_description_seven_7" name="drone_run_band_description_7" type="text" />
2026                                 </div>
2027                             </div>
2028                             <div class="form-group">
2029                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2030                                 <div class="col-sm-9" >
2031                                     <select class="form-control" id="drone_run_band_coordinate_system_seven_7" name="drone_run_band_coordinate_system_7">
2032                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2033                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2034                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2035                                     </select>
2036                                 </div>
2037                             </div>
2038                             <div class="form-group">
2039                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2040                                 <div class="col-sm-9" >
2041                                     <select class="form-control" id="drone_run_band_type_seven_7" name="drone_run_band_type_7">
2042                                         <option value="Black and White Image">Black and White Image</option>
2043                                         <option value="RGB Color Image">RGB Color Image</option>
2044                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2045                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2046                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2047                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2048                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2049                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2050                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2051                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2052                                     </select>
2053                                 </div>
2054                             </div>
2055                             <div class="form-group">
2056                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2057                                 <div class="col-sm-9" >
2058                                     <input type="file" id="drone_run_band_stitched_ortho_image_seven_7" name="drone_run_band_stitched_ortho_image_7" encoding="multipart/form-data" />
2059                                 </div>
2060                             </div>
2061                         </div>
2062                         <center>
2063                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_seven" id="upload_drone_imagery_select_images_seven">Go To Next Step</button>
2064                         </center>
2065                     </&>
2066                     <&| /util/workflow.mas:step, title=> "Submit" &>
2067                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
2068                         <center>
2069                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_seven_submit" id="upload_drone_imagery_seven_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
2070                         </center>
2071                     </&>
2072                 </&>
2073             </form><br/>
2074         </div>
2075       </div>
2076       <div class="modal-footer">
2077         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2078       </div>
2079     </div>
2080   </div>
2081 </div>
2083 <div class="modal fade" id="upload_drone_imagery_dialog_eight_band" name="upload_drone_imagery_dialog_eight_band" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryEightBandDialog">
2084   <div class="modal-dialog modal-xl" role="document">
2085     <div class="modal-content">
2086       <div class="modal-header">
2087         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2088         <h4 class="modal-title" id="uploadDroneImageryEightBandDialog">Upload Aerial Imagery</h4>
2089       </div>
2090       <div class="modal-body">
2091         <div class="container-fluid">
2092             <& /page/page_title.mas, title=>"Select Image(s) to Upload" &>
2094             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_eight_band_form" name="upload_drone_imagery_eight_band_form" action="/drone_imagery/upload_drone_imagery" >
2095                 <input type="hidden" name="drone_run_field_trial_id" value="" >
2097                 <!-- If drone run is selected above, the drone_run_project_id is passed to controller, negating need to create new drone run -->
2098                 <input type="hidden" name="drone_run_id" value=""/>
2099                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching_odm_image_count" value=""/>
2101                 <input type="hidden" name="drone_run_name" value="" />
2102                 <input type="hidden" name="drone_run_type" value="" />
2103                 <input type="hidden" name="drone_image_upload_camera_info" value="" />
2104                 <input type="hidden" name="drone_run_imaging_vehicle_id" value="" />
2105                 <input type="hidden" name="drone_run_imaging_vehicle_battery_name" value="" />
2106                 <input type="hidden" name="drone_run_description" value="" />
2107                 <input type="hidden" name="drone_run_date" value="" />
2108                 <input type="hidden" name="drone_run_camera_rig_description" value="" />
2109                 <input type="hidden" name="drone_run_base_date" value="" />
2110                 <input type="hidden" name="drone_image_upload_drone_run_band_stitching" value="" />
2111                 <input type="hidden" name="drone_run_band_number" value="" />
2113                 <&| /util/workflow.mas, id=> "drone_imagery_upload_workflow_eight_band" &>
2114                     <&| /util/workflow.mas:step, title=> "Select Images" &>
2115                         <& /page/page_title.mas, title=>"Select Orthophoto Raster Images" &>
2117                         <div class="well well-sm">
2118                             <div class="form-group">
2119                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2120                                 <div class="col-sm-9" >
2121                                     <input class="form-control" id="drone_run_band_name_eight_1" name="drone_run_band_name_1" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2122                                 </div>
2123                             </div>
2124                             <div class="form-group">
2125                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2126                                 <div class="col-sm-9" >
2127                                     <input class="form-control" id="drone_run_band_description_eight_1" name="drone_run_band_description_1" type="text" />
2128                                 </div>
2129                             </div>
2130                             <div class="form-group">
2131                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2132                                 <div class="col-sm-9" >
2133                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_1" name="drone_run_band_coordinate_system_1">
2134                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2135                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2136                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2137                                     </select>
2138                                 </div>
2139                             </div>
2140                             <div class="form-group">
2141                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2142                                 <div class="col-sm-9" >
2143                                     <select class="form-control" id="drone_run_band_type_eight_1" name="drone_run_band_type_1">
2144                                         <option value="Black and White Image">Black and White Image</option>
2145                                         <option value="RGB Color Image">RGB Color Image</option>
2146                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2147                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2148                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2149                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2150                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2151                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2152                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2153                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2154                                     </select>
2155                                 </div>
2156                             </div>
2157                             <div class="form-group">
2158                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2159                                 <div class="col-sm-9" >
2160                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_1" name="drone_run_band_stitched_ortho_image_1" encoding="multipart/form-data" />
2161                                 </div>
2162                             </div>
2163                         </div>
2164                         <div class="well well-sm">
2165                             <div class="form-group">
2166                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2167                                 <div class="col-sm-9" >
2168                                     <input class="form-control" id="drone_run_band_name_eight_2" name="drone_run_band_name_2" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2169                                 </div>
2170                             </div>
2171                             <div class="form-group">
2172                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2173                                 <div class="col-sm-9" >
2174                                     <input class="form-control" id="drone_run_band_description_eight_2" name="drone_run_band_description_2" type="text" />
2175                                 </div>
2176                             </div>
2177                             <div class="form-group">
2178                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2179                                 <div class="col-sm-9" >
2180                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_2" name="drone_run_band_coordinate_system_2">
2181                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2182                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2183                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2184                                     </select>
2185                                 </div>
2186                             </div>
2187                             <div class="form-group">
2188                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2189                                 <div class="col-sm-9" >
2190                                     <select class="form-control" id="drone_run_band_type_eight_2" name="drone_run_band_type_2">
2191                                         <option value="Black and White Image">Black and White Image</option>
2192                                         <option value="RGB Color Image">RGB Color Image</option>
2193                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2194                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2195                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2196                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2197                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2198                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2199                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2200                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2201                                     </select>
2202                                 </div>
2203                             </div>
2204                             <div class="form-group">
2205                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2206                                 <div class="col-sm-9" >
2207                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_2" name="drone_run_band_stitched_ortho_image_2" encoding="multipart/form-data" />
2208                                 </div>
2209                             </div>
2210                         </div>
2211                         <div class="well well-sm">
2212                             <div class="form-group">
2213                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2214                                 <div class="col-sm-9" >
2215                                     <input class="form-control" id="drone_run_band_name_eight_3" name="drone_run_band_name_3" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2216                                 </div>
2217                             </div>
2218                             <div class="form-group">
2219                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2220                                 <div class="col-sm-9" >
2221                                     <input class="form-control" id="drone_run_band_description_eight_3" name="drone_run_band_description_3" type="text" />
2222                                 </div>
2223                             </div>
2224                             <div class="form-group">
2225                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2226                                 <div class="col-sm-9" >
2227                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_3" name="drone_run_band_coordinate_system_3">
2228                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2229                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2230                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2231                                     </select>
2232                                 </div>
2233                             </div>
2234                             <div class="form-group">
2235                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2236                                 <div class="col-sm-9" >
2237                                     <select class="form-control" id="drone_run_band_type_eight_3" name="drone_run_band_type_3">
2238                                         <option value="Black and White Image">Black and White Image</option>
2239                                         <option value="RGB Color Image">RGB Color Image</option>
2240                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2241                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2242                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2243                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2244                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2245                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2246                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2247                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2248                                     </select>
2249                                 </div>
2250                             </div>
2251                             <div class="form-group">
2252                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2253                                 <div class="col-sm-9" >
2254                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_3" name="drone_run_band_stitched_ortho_image_3" encoding="multipart/form-data" />
2255                                 </div>
2256                             </div>
2257                         </div>
2258                         <div class="well well-sm">
2259                             <div class="form-group">
2260                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2261                                 <div class="col-sm-9" >
2262                                     <input class="form-control" id="drone_run_band_name_eight_4" name="drone_run_band_name_4" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2263                                 </div>
2264                             </div>
2265                             <div class="form-group">
2266                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2267                                 <div class="col-sm-9" >
2268                                     <input class="form-control" id="drone_run_band_description_eight_4" name="drone_run_band_description_4" type="text" />
2269                                 </div>
2270                             </div>
2271                             <div class="form-group">
2272                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2273                                 <div class="col-sm-9" >
2274                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_4" name="drone_run_band_coordinate_system_4">
2275                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2276                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2277                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2278                                     </select>
2279                                 </div>
2280                             </div>
2281                             <div class="form-group">
2282                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2283                                 <div class="col-sm-9" >
2284                                     <select class="form-control" id="drone_run_band_type_eight_4" name="drone_run_band_type_4">
2285                                         <option value="Black and White Image">Black and White Image</option>
2286                                         <option value="RGB Color Image">RGB Color Image</option>
2287                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2288                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2289                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2290                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2291                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2292                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2293                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2294                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2295                                     </select>
2296                                 </div>
2297                             </div>
2298                             <div class="form-group">
2299                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2300                                 <div class="col-sm-9" >
2301                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_4" name="drone_run_band_stitched_ortho_image_4" encoding="multipart/form-data" />
2302                                 </div>
2303                             </div>
2304                         </div>
2305                         <div class="well well-sm">
2306                             <div class="form-group">
2307                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2308                                 <div class="col-sm-9" >
2309                                     <input class="form-control" id="drone_run_band_name_eight_5" name="drone_run_band_name_5" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2310                                 </div>
2311                             </div>
2312                             <div class="form-group">
2313                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2314                                 <div class="col-sm-9" >
2315                                     <input class="form-control" id="drone_run_band_description_eight_5" name="drone_run_band_description_5" type="text" />
2316                                 </div>
2317                             </div>
2318                             <div class="form-group">
2319                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2320                                 <div class="col-sm-9" >
2321                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_5" name="drone_run_band_coordinate_system_5">
2322                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2323                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2324                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2325                                     </select>
2326                                 </div>
2327                             </div>
2328                             <div class="form-group">
2329                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2330                                 <div class="col-sm-9" >
2331                                     <select class="form-control" id="drone_run_band_type_eight_5" name="drone_run_band_type_5">
2332                                         <option value="Black and White Image">Black and White Image</option>
2333                                         <option value="RGB Color Image">RGB Color Image</option>
2334                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2335                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2336                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2337                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2338                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2339                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2340                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2341                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2342                                     </select>
2343                                 </div>
2344                             </div>
2345                             <div class="form-group">
2346                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2347                                 <div class="col-sm-9" >
2348                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_5" name="drone_run_band_stitched_ortho_image_5" encoding="multipart/form-data" />
2349                                 </div>
2350                             </div>
2351                         </div>
2352                         <div class="well well-sm">
2353                             <div class="form-group">
2354                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2355                                 <div class="col-sm-9" >
2356                                     <input class="form-control" id="drone_run_band_name_eight_6" name="drone_run_band_name_6" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2357                                 </div>
2358                             </div>
2359                             <div class="form-group">
2360                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2361                                 <div class="col-sm-9" >
2362                                     <input class="form-control" id="drone_run_band_description_eight_6" name="drone_run_band_description_6" type="text" />
2363                                 </div>
2364                             </div>
2365                             <div class="form-group">
2366                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2367                                 <div class="col-sm-9" >
2368                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_6" name="drone_run_band_coordinate_system_6">
2369                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2370                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2371                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2372                                     </select>
2373                                 </div>
2374                             </div>
2375                             <div class="form-group">
2376                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2377                                 <div class="col-sm-9" >
2378                                     <select class="form-control" id="drone_run_band_type_eight_6" name="drone_run_band_type_6">
2379                                         <option value="Black and White Image">Black and White Image</option>
2380                                         <option value="RGB Color Image">RGB Color Image</option>
2381                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2382                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2383                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2384                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2385                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2386                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2387                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2388                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2389                                     </select>
2390                                 </div>
2391                             </div>
2392                             <div class="form-group">
2393                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2394                                 <div class="col-sm-9" >
2395                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_6" name="drone_run_band_stitched_ortho_image_6" encoding="multipart/form-data" />
2396                                 </div>
2397                             </div>
2398                         </div>
2399                         <div class="well well-sm">
2400                             <div class="form-group">
2401                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2402                                 <div class="col-sm-9" >
2403                                     <input class="form-control" id="drone_run_band_name_eight_7" name="drone_run_band_name_7" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2404                                 </div>
2405                             </div>
2406                             <div class="form-group">
2407                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2408                                 <div class="col-sm-9" >
2409                                     <input class="form-control" id="drone_run_band_description_eight_7" name="drone_run_band_description_7" type="text" />
2410                                 </div>
2411                             </div>
2412                             <div class="form-group">
2413                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2414                                 <div class="col-sm-9" >
2415                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_7" name="drone_run_band_coordinate_system_7">
2416                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2417                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2418                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2419                                     </select>
2420                                 </div>
2421                             </div>
2422                             <div class="form-group">
2423                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2424                                 <div class="col-sm-9" >
2425                                     <select class="form-control" id="drone_run_band_type_eight_7" name="drone_run_band_type_7">
2426                                         <option value="Black and White Image">Black and White Image</option>
2427                                         <option value="RGB Color Image">RGB Color Image</option>
2428                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2429                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2430                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2431                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2432                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2433                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2434                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2435                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2436                                     </select>
2437                                 </div>
2438                             </div>
2439                             <div class="form-group">
2440                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2441                                 <div class="col-sm-9" >
2442                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_7" name="drone_run_band_stitched_ortho_image_7" encoding="multipart/form-data" />
2443                                 </div>
2444                             </div>
2445                         </div>
2446                         <div class="well well-sm">
2447                             <div class="form-group">
2448                                 <label class="col-sm-3 control-label">Imaging Event Band Name (Must be unique): </label>
2449                                 <div class="col-sm-9" >
2450                                     <input class="form-control" id="drone_run_band_name_eight_8" name="drone_run_band_name_8" type="text" placeholder="e.g. Field Trial Name + Date + Band Type" />
2451                                 </div>
2452                             </div>
2453                             <div class="form-group">
2454                                 <label class="col-sm-3 control-label">Imaging Event Band Description: </label>
2455                                 <div class="col-sm-9" >
2456                                     <input class="form-control" id="drone_run_band_description_eight_8" name="drone_run_band_description_8" type="text" />
2457                                 </div>
2458                             </div>
2459                             <div class="form-group">
2460                                 <label class="col-sm-3 control-label">Imaging Event Coordinate System:</label>
2461                                 <div class="col-sm-9" >
2462                                     <select class="form-control" id="drone_run_band_coordinate_system_eight_8" name="drone_run_band_coordinate_system_8">
2463                                         <option value="Pixels">Pixels (Raster Image .PNG, .JPG, .TIFF)</option>
2464                                         <option value="UTM">UTM (GeoTIFF Image .tif)</option>
2465                                         <option value="WGS84">WGS84 (GeoTIFF Image .tif)</option>
2466                                     </select>
2467                                 </div>
2468                             </div>
2469                             <div class="form-group">
2470                                 <label class="col-sm-3 control-label">Imaging Event Band Type:</label>
2471                                 <div class="col-sm-9" >
2472                                     <select class="form-control" id="drone_run_band_type_eight_8" name="drone_run_band_type_8">
2473                                         <option value="Black and White Image">Black and White Image</option>
2474                                         <option value="RGB Color Image">RGB Color Image</option>
2475                                         <option value="Blue (450-520nm)">Blue (450-520nm)</option>
2476                                         <option value="Green (515-600nm)">Green (515-600nm)</option>
2477                                         <option value="Red (600-690nm)">Red (600-690nm)</option>
2478                                         <option value="Red Edge (690-750nm)">Red Edge (690-750nm)</option>
2479                                         <option value="NIR (780-3000nm)">NIR (780-3000nm)</option>
2480                                         <option value="MIR (3000-50000nm)">MIR (3000-50000nm)</option>
2481                                         <option value="FIR (50000-1000000nm)">FIR (50000-1000000nm)</option>
2482                                         <option value="Thermal IR (9000-14000nm)">Thermal IR (9000-14000nm)</option>
2483                                     </select>
2484                                 </div>
2485                             </div>
2486                             <div class="form-group">
2487                                 <label class="col-sm-3 control-label">Image: (.jpeg, .png, .tif)</label>
2488                                 <div class="col-sm-9" >
2489                                     <input type="file" id="drone_run_band_stitched_ortho_image_eight_8" name="drone_run_band_stitched_ortho_image_8" encoding="multipart/form-data" />
2490                                 </div>
2491                             </div>
2492                         </div>
2493                         <center>
2494                             <button class="btn btn-primary" name="upload_drone_imagery_select_images_eight" id="upload_drone_imagery_select_images_eight">Go To Next Step</button>
2495                         </center>
2496                     </&>
2497                     <&| /util/workflow.mas:step, title=> "Submit" &>
2498                         <& /page/page_title.mas, title=>"Submit Imaging Event" &>
2499                         <center>
2500                             <button type="submit" class="btn btn-info" name="upload_drone_imagery_eight_submit" id="upload_drone_imagery_eight_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
2501                         </center>
2502                     </&>
2503                 </&>
2504             </form><br/>
2505         </div>
2506       </div>
2507       <div class="modal-footer">
2508         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2509       </div>
2510     </div>
2511   </div>
2512 </div>
2514 <div class="modal fade" id="upload_drone_imagery_bulk_previous_dialog" name="upload_drone_imagery_bulk_previous_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryBulkPreviousDialog">
2515   <div class="modal-dialog modal-xl" role="document">
2516     <div class="modal-content">
2517       <div class="modal-header">
2518         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2519         <h4 class="modal-title" id="uploadDroneImageryBulkPreviousDialog">Upload Aerial Imagery in Bulk For Previously Processed Imaging Events</h4>
2520       </div>
2521       <div class="modal-body">
2522         <div class="container-fluid">
2524             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_bulk_previous_form" name="upload_drone_imagery_bulk_previous_form" action="/drone_imagery/upload_drone_imagery_bulk_previous">
2526                 <&| /util/workflow.mas, id=> "drone_imagery_upload_bulk_previous_workflow" &>
2527                     <&| /util/workflow.mas:step, title=> "Intro" &>
2528                         <& /page/page_title.mas, title=>"This workflow will guide you through uploading aerial images to the database for previously processed imaging events" &>
2529                         <p>Your field trial(s) must already be in the database before you can upload images for it. Please go to <a href="/breeders/trials">Manage->Field Trials</a> if it is not. Make sure the planting date is also set!</p>
2530                         <p>In this process first upload a spreadsheet detailing the individual imaging events, then upload a zipfile containing the orthophotomosaic images for the imaging events, and finally upload a zipfile containing GeoJSON files detailing the positions of the plot-polygons for the imaging events.</p>
2532                         <hr>
2533                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/RiceExampleRGBandDSMGeoJSONImagingEvent.xls" download>Imaging Event(s) Spreadsheet</a></p>
2534                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/RiceExampleRGBandDSMOrthophotosGeoTIFFs.zip" download>Imaging Event(s) Orthophoto GeoTIFFs (Includes an RGB and DSM GeoTIFF)</a></p>
2535                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/RiceExampleGeoJSONs.zip" download>Imaging Event(s) GeoJSON</a></p>
2537                         <br/>
2538                         <center>
2539                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2540                         </center>
2541                     </&>
2542                     <&| /util/workflow.mas:step, title=> "Define Imaging Events" &>
2543                         <& /page/page_title.mas, title=>"Define Imaging Events in Bulk" &>
2545                         <h4>The uploaded Excel file (.xls) must have the following header:</h4>
2547                         <table class="table table-bordered table-hover">
2548                             <tbody>
2549                                 <tr>
2550                                     <th>Imaging Event Name</th>
2551                                     <th>Type</th>
2552                                     <th>Description</th>
2553                                     <th>Date</th>
2554                                     <th>Vehicle Name</th>
2555                                     <th>Vehicle Battery Set</th>
2556                                     <th>Sensor</th>
2557                                     <th>Field Trial Name</th>
2558                                     <th>GeoJSON Filename</th>
2559                                     <th>Image Filenames</th>
2560                                     <th>Coordinate System</th>
2561                                     <th>Rotation Angle</th>
2562                                     <th>Base Date</th>
2563                                     <th>Camera Rig</th>
2564                                 </tr>
2565                             </tbody>
2566                         </table>
2568                         <ul>
2569                             <li><b>Imaging Event Name</b>: (required) The globally unique name of the imaging event name (e.g. Field1Ortho01012020)</li>
2570                             <li><b>Type</b>: (required) Either "Aerial Medium to High Res" or "Aerial Low Res" to indicate high or low resolution imagery.</li>
2571                             <li><b>Description</b>: (required) Free-text description of the imaging event and how it was flown and/or processed.</li>
2572                             <li><b>Date</b>: (required) The date and time of the imaging event in YYYY/MM/DD hh:mm:ss format (e.g. 2021/03/02 12:00:00)</li>
2573                             <li><b>Vehicle Name</b>: (required) The name of the aerial vehicle which was used. This must already exist in the database.</li>
2574                             <li><b>Vehicle Battery Set</b>: (optional) The name of the aerial vehicle battery set which was used.</li>
2575                             <li><b>Sensor</b>: (required) The type of camera sensor used. Must be either "MicaSense 5 Channel Camera", "CCD Color Camera", or "CMOS Color Camera".</li>
2576                             <li><b>Field Trial Name</b>: (required) The name of the field trial which was imaged. This must already exist in the database.</li>
2577                             <li><b>GeoJSON Filename</b>: (required) The name of the GeoJSON plot-polygon file that corresponds to this imaging event. This filename must exist in the uploaded GeoJSON zipfile. The same GeoJSON file can be used for multiple imaging events.</li>
2578                             <li><b>Image Filenames</b>: (required) Comma-separated list of image filenames that corresponds to this imaging event (e.g. Field1Ortho01012020__nir.tiff,Field1Ortho01012020__rgb.tiff,Field1Ortho01012020__bw.tiff). The image filenames must exist in the uploaded images zipfile. The same image file can be used for multiple imaging events.</li>
2579                             <li><b>Coordinate System</b>: (required) The coordinate system for the supplied images and GeoJSON files of this imaging event. Must be either "UTM", "WGS84", or "Pixels". If either "UTM" or "WGS84" are used, then the uploaded orthophoto images must be GeoTIFFs containing the coordinate system AND the GeoJSON files must be of the same coordinate system. If "Pixels" is used, then the uploaded orthophoto images must be simple raster images (.tiff, .png., .jpeg) and not GeoTIFFs, AND the GeoJSON files must describe the pixel positions of the plot-polygons relative to the provided images.</li>
2580                             <li><b>Rotation Angle</b>: (optional) The clock-wise angle of rotation to apply to the uploaded imagery in degrees (0-360). Default is a 0 degree rotation. If a value is provided, the plot-polygon images are expected to be straight after rotation. If no value is provided or 0 is provided, then the plot-polgyon images will include only pixels that lie within the polygons; however, this is more computationally intensive.</li>
2581                             <li><b>Base Date</b>: (optional) The date and time to reference the imaging event in YYYY/MM/DD hh:mm:ss format (e.g. 2021/03/02 12:00:00). This is useful when separate, fixed, camera rigs are capturing different sections of the field experiment, and they are not capturing images at precisely the same time.</li>
2582                             <li><b>Camera Rig</b>: (optional) Free-text description of the camera rig. This is useful when separate, fixed, camera rigs are capturing different sections of the field experiment.</li>
2583                         </ul>
2585                         <br/>
2586                         <div class="well well-sm">
2587                             <div class="form-group">
2588                                 <label class="col-sm-6 control-label">Bulk Imaging Events (.xls): </label>
2589                                 <div class="col-sm-6" >
2590                                     <input type="file" id="upload_drone_imagery_bulk_imaging_events_previous" name="upload_drone_imagery_bulk_imaging_events_previous" encoding="multipart/form-data" />
2591                                 </div>
2592                             </div>
2593                         </div>
2595                         <center>
2596                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2597                         </center>
2598                     </&>
2599                     <&| /util/workflow.mas:step, title=> "Upload Orthophoto Images" &>
2600                         <& /page/page_title.mas, title=>"Upload Orthophoto Images For Imaging Events in Bulk" &>
2602                         <h4>Upload a zipfile (.zip) which contains orthophotos images (.tiff, .png, .jpeg) named in accordance with the "Image Filenames" defined in the previous step.</h4>
2603                         <h4>The images must be named as a concatenation with the spectral type of the image, with a double-underscore (__) in between (e.g. Field1Ortho01012020__blue).</h4>
2605                         <p>The allowed spectral types are: blue, green, red, rededge, nir, mir, fir, thir, rgb, and bw, corresponding to Blue (450-520nm), Green (515-600nm), Red (600-690nm), Red Edge (690-750nm), NIR (780-3000nm), MIR (3000-50000nm), FIR (50000-1000000nm), Thermal IR (9000-14000nm), RGB Color Image, and Black and White Image, respectively.</p>
2606                         <p>For an imaging event using a MicaSense 5-channel camera, the 5 separate orthophotos should be included in the zipfile and should be named as a concatenation with the spectral type (e.g. Field1Ortho01012020__blue, Field1Ortho01012020__green, Field1Ortho01012020__red, Field1Ortho01012020__rededge, and Field1Ortho01012020__nir).</p>
2607                         <p>Digital surface map (DSM) raster images can be uploaded as black and white images (e.g. Field1Ortho01012020__bw.png)</p>
2608                         <p>Do not upload duplicate spectral types for the same imaging event.</p>
2609                         <p>Images should be perfectly super-imposable for different spectra in the same imaging event.</p>
2610                         <p>The same image can be used for several imaging events.</p>
2611                         <p>If the coordinate system of the imaging event is either "UTM" of "WGS84", then the orthophoto images must be GeoTIFFs (.tiff) containing the coordinate system. If the coordinate system is "Pixels", then the orthophoto images are simple raster images (.tiff, .jpeg, .png).</p>
2613                         <br/>
2614                         <div class="well well-sm">
2615                             <div class="form-group">
2616                                 <label class="col-sm-6 control-label">Orthophoto Images ZipFile (.zip): </label>
2617                                 <div class="col-sm-6" >
2618                                     <input type="file" id="upload_drone_imagery_bulk_images_zipfile_previous" name="upload_drone_imagery_bulk_images_zipfile_previous" encoding="multipart/form-data" />
2619                                 </div>
2620                             </div>
2621                         </div>
2623                         <center>
2624                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2625                         </center>
2626                     </&>
2627                     <&| /util/workflow.mas:step, title=> "Define Plot Polygons GeoJSON" &>
2628                         <& /page/page_title.mas, title=>"Define Plot Polygons in Bulk" &>
2630                         <h4>Upload a zipfile (.zip) which contains GeoJSON (.geojson) files detailing the coordinate positions of the plot-polygons.</h4>
2632                         <p>The spreadsheets should be named in accordance with the "GeoJSON Filenames" defined in the previous step.</p>
2633                         <p>The coordinate system (e.g. WGS84, UTM) of the orthophotos should be the same as the coordinate system defining the GeoJSON files. If the coordinate system is "Pixels", then the GeoJSON files should define the pixel positions of the plot-polygons relative to the uploaded images.</p>
2634                         <p>The same GeoJSON file can be used for several imaging events.</p>
2636                         <p>The GeoJSON should be the following format:
2637                         <br/>
2638                         <div class="well well-sm">
2639                         {<br/>
2640                             &nbsp;&nbsp;"type":"FeatureCollection",<br/>
2641                             &nbsp;&nbsp;"features":[<br/>
2642                                 &nbsp;&nbsp;&nbsp;&nbsp;{<br/>
2643                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"Feature",<br/>
2644                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"properties":{<br/>
2645                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"ID":1<br/>
2646                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br/>
2647                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"geometry":{<br/>
2648                                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type":"Polygon",<br/>
2649                                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"coordinates":[<br/>
2650                                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[<br/>
2651                                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[312295.7451,1567250.9971],<br/>
2652                                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[312295.3147,1567250.5791],<br/>
2653                                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[312294.0605,1567251.8701],<br/>
2654                                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[312294.4909,1567252.2881],<br/>
2655                                                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[312295.7451,1567250.9971]<br/>
2656                                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>
2657                                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>
2658                                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>
2659                                 &nbsp;&nbsp;&nbsp;&nbsp;},<br/>
2660                                 &nbsp;&nbsp;&nbsp;&nbsp;...## ALL PLOT-POLYGONS ##<br/>
2661                             &nbsp;&nbsp;]<br/>
2662                         }
2663                         </div>
2664                         </p>
2665                         <p>The ID field should give the unique plot number for the plot polygon. The plot number is defined in the field design as a unique number e.g. (1 to 100).</p>
2666                         <p>The coordinates should match the coordinate system of "UTM", "WGS84", or "Pixels".</p>
2668                         <br/>
2669                         <div class="well well-sm">
2670                             <div class="form-group">
2671                                 <label class="col-sm-6 control-label">Plot-polygon GeoJSON ZipFile (.zip): </label>
2672                                 <div class="col-sm-6" >
2673                                     <input type="file" id="upload_drone_imagery_bulk_geojson_zipfile_previous" name="upload_drone_imagery_bulk_geojson_zipfile_previous" encoding="multipart/form-data" />
2674                                 </div>
2675                             </div>
2676                         </div>
2678                         <hr>
2679                         <center>
2680                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2681                         </center>
2682                     </&>
2683                     <&| /util/workflow.mas:step, title=> "Submit" &>
2684                         <& /page/page_title.mas, title=>"Submit to database" &>
2686                         <div id="upload_drone_imagery_bulk_previous_verify_status"></div>
2688                         <center>
2689                         <button type="submit" class="btn btn-info" name="upload_drone_imagery_bulk_previous_submit" id="upload_drone_imagery_bulk_previous_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
2690                         </center>
2691                     </&>
2693                 </&>
2694             </form><br/>
2695         </div>
2696       </div>
2697       <div class="modal-footer">
2698         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2699       </div>
2700     </div>
2701   </div>
2702 </div>
2704 <div class="modal fade" id="upload_drone_imagery_bulk_dialog" name="upload_drone_imagery_bulk_dialog" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryBulkDialog">
2705   <div class="modal-dialog modal-xl" role="document">
2706     <div class="modal-content">
2707       <div class="modal-header">
2708         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2709         <h4 class="modal-title" id="uploadDroneImageryBulkDialog">Upload Aerial Imagery in Bulk For Imaging Events</h4>
2710       </div>
2711       <div class="modal-body">
2712         <div class="container-fluid">
2714             <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_drone_imagery_bulk_form" name="upload_drone_imagery_bulk_form" action="/drone_imagery/upload_drone_imagery_bulk">
2716                 <&| /util/workflow.mas, id=> "drone_imagery_upload_bulk_workflow" &>
2717                     <&| /util/workflow.mas:step, title=> "Intro" &>
2718                         <& /page/page_title.mas, title=>"This workflow will guide you through uploading aerial images to the database" &>
2719                         <p>Your field trial(s) must already be in the database before you can upload images for it. Please go to <a href="/breeders/trials">Manage->Field Trials</a> if it is not. Make sure the planting date is also set!</p>
2720                         <p>In this process first upload a spreadsheet detailing the individual imaging events, then upload a zipfile containing the orthophotomosaic images for the imaging events.</p>
2721                         <p>This workflow is only for uploading orthophotomosaic raster images, not for uploading raw captures to be stitched in orthophotomosaics.</p>
2723                         <hr>
2724                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/BulkUploadRGBRastersImagingEvents.xls" download>Imaging Event(s) Spreadsheet</a></p>
2725                         <p><b>Example Data:</b> <a href="https://imagebreed.org/static_content/imagebreed/BulkUploadRGBRastersOrthophotos.zip" download>Imaging Event(s) Orthophoto Raster Images (Includes .JPG and .PNG)</a></p>
2727                         <br/>
2728                         <center>
2729                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2730                         </center>
2731                     </&>
2732                     <&| /util/workflow.mas:step, title=> "Define Imaging Events" &>
2733                         <& /page/page_title.mas, title=>"Define Imaging Events in Bulk" &>
2735                         <h4>The uploaded Excel file (.xls) must have the following header:</h4>
2737                         <table class="table table-bordered table-hover">
2738                             <tbody>
2739                                 <tr>
2740                                     <th>Imaging Event Name</th>
2741                                     <th>Type</th>
2742                                     <th>Description</th>
2743                                     <th>Date</th>
2744                                     <th>Vehicle Name</th>
2745                                     <th>Vehicle Battery Set</th>
2746                                     <th>Sensor</th>
2747                                     <th>Field Trial Name</th>
2748                                     <th>Image Filenames</th>
2749                                     <th>Coordinate System</th>
2750                                     <th>Base Date</th>
2751                                     <th>Camera Rig</th>
2752                                 </tr>
2753                             </tbody>
2754                         </table>
2756                         <ul>
2757                             <li><b>Imaging Event Name</b>: (required) The globally unique name of the imaging event name (e.g. Field1Ortho01012020)</li>
2758                             <li><b>Type</b>: (required) Either "Aerial Medium to High Res" or "Aerial Low Res" to indicate high or low resolution imagery.</li>
2759                             <li><b>Description</b>: (required) Free-text description of the imaging event and how it was flown and/or processed.</li>
2760                             <li><b>Date</b>: (required) The date and time of the imaging event in YYYY/MM/DD hh:mm:ss format (e.g. 2021/03/02 12:00:00)</li>
2761                             <li><b>Vehicle Name</b>: (required) The name of the aerial vehicle which was used. This must already exist in the database.</li>
2762                             <li><b>Vehicle Battery Set</b>: (optional) The name of the aerial vehicle battery set which was used.</li>
2763                             <li><b>Sensor</b>: (required) The type of camera sensor used. Must be either "MicaSense 5 Channel Camera", "CCD Color Camera", or "CMOS Color Camera".</li>
2764                             <li><b>Field Trial Name</b>: (required) The name of the field trial which was imaged. This must already exist in the database.</li>
2765                             <li><b>Image Filenames</b>: (required) Comma-separated list of image filenames that corresponds to this imaging event (e.g. Field1Ortho01012020__nir.tiff,Field1Ortho01012020__rgb.tiff,Field1Ortho01012020__bw.tiff). The image filenames must exist in the uploaded images zipfile. The same image file can be used for multiple imaging events.</li>
2766                             <li><b>Coordinate System</b>: (required) The coordinate system for the supplied images and GeoJSON files of this imaging event. Must be either "UTM", "WGS84", or "Pixels". If either "UTM" or "WGS84" are used, then the uploaded orthophoto images must be GeoTIFFs containing the coordinate system AND the GeoJSON files must be of the same coordinate system. If "Pixels" is used, then the uploaded orthophoto images must be simple raster images (.tiff, .png., .jpeg) and not GeoTIFFs, AND the GeoJSON files must describe the pixel positions of the plot-polygons relative to the provided images.</li>
2767                             <li><b>Base Date</b>: (optional) The date and time to reference the imaging event in YYYY/MM/DD hh:mm:ss format (e.g. 2021/03/02 12:00:00). This is useful when separate, fixed, camera rigs are capturing different sections of the field experiment, and they are not capturing images at precisely the same time.</li>
2768                             <li><b>Camera Rig</b>: (optional) Free-text description of the camera rig. This is useful when separate, fixed, camera rigs are capturing different sections of the field experiment.</li>
2769                         </ul>
2771                         <br/>
2772                         <div class="well well-sm">
2773                             <div class="form-group">
2774                                 <label class="col-sm-6 control-label">Bulk Imaging Events (.xls): </label>
2775                                 <div class="col-sm-6" >
2776                                     <input type="file" id="upload_drone_imagery_bulk_imaging_events" name="upload_drone_imagery_bulk_imaging_events" encoding="multipart/form-data" />
2777                                 </div>
2778                             </div>
2779                         </div>
2781                         <center>
2782                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2783                         </center>
2784                     </&>
2785                     <&| /util/workflow.mas:step, title=> "Upload Orthophoto Rasters" &>
2786                         <& /page/page_title.mas, title=>"Upload Orthophoto Rasters For Imaging Events in Bulk" &>
2788                         <h4>Upload a zipfile (.zip) which contains orthophotos images (.tiff, .png, .jpeg) named in accordance with the "Image Filenames" defined in the previous step.</h4>
2789                         <h4>The images must be named as a concatenation with the spectral type of the image, with a double-underscore (__) in between (e.g. Field1Ortho01012020__blue).</h4>
2791                         <p>The allowed spectral types are: blue, green, red, rededge, nir, mir, fir, thir, rgb, and bw, corresponding to Blue (450-520nm), Green (515-600nm), Red (600-690nm), Red Edge (690-750nm), NIR (780-3000nm), MIR (3000-50000nm), FIR (50000-1000000nm), Thermal IR (9000-14000nm), RGB Color Image, and Black and White Image, respectively.</p>
2792                         <p>For an imaging event using a MicaSense 5-channel camera, the 5 separate orthophotos should be included in the zipfile and should be named as a concatenation with the spectral type (e.g. Field1Ortho01012020__blue, Field1Ortho01012020__green, Field1Ortho01012020__red, Field1Ortho01012020__rededge, and Field1Ortho01012020__nir).</p>
2793                         <p>Digital surface map (DSM) raster images can be uploaded as black and white images (e.g. Field1Ortho01012020__bw.png)</p>
2794                         <p>Do not upload duplicate spectral types for the same imaging event.</p>
2795                         <p>Images should be perfectly super-imposable for different spectra in the same imaging event.</p>
2796                         <p>The same image can be used for several imaging events.</p>
2797                         <p>If the coordinate system of the imaging event is either "UTM" of "WGS84", then the orthophoto images must be GeoTIFFs (.tiff) containing the coordinate system. If the coordinate system is "Pixels", then the orthophoto images are simple raster images (.tiff, .jpeg, .png).</p>
2799                         <br/>
2800                         <div class="well well-sm">
2801                             <div class="form-group">
2802                                 <label class="col-sm-6 control-label">Orthophoto Images ZipFile (.zip): </label>
2803                                 <div class="col-sm-6" >
2804                                     <input type="file" id="upload_drone_imagery_bulk_images_zipfile" name="upload_drone_imagery_bulk_images_zipfile" encoding="multipart/form-data" />
2805                                 </div>
2806                             </div>
2807                         </div>
2809                         <center>
2810                         <button class="btn btn-primary" onclick="Workflow.complete(this); return false;">Go to next step</button>
2811                         </center>
2812                     </&>
2813                     <&| /util/workflow.mas:step, title=> "Submit" &>
2814                         <& /page/page_title.mas, title=>"Submit to database" &>
2816                         <div id="upload_drone_imagery_bulk_verify_status"></div>
2818                         <center>
2819                         <button type="submit" class="btn btn-primary" name="upload_drone_imagery_bulk_submit" id="upload_drone_imagery_bulk_submit">Submit. Click Once and Be Patient As This Can Take A Long Time.</button>
2820                         </center>
2821                     </&>
2823                 </&>
2824             </form><br/>
2825         </div>
2826       </div>
2827       <div class="modal-footer">
2828         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2829       </div>
2830     </div>
2831   </div>
2832 </div>
2834 <div class="modal fade" id="drone_run_imaging_vehicle_add_new_modal" name="drone_run_imaging_vehicle_add_new_modal" tabindex="-1" role="dialog" aria-labelledby="uploadDroneImageryAddNewVehicleDialog">
2835   <div class="modal-dialog" role="document">
2836     <div class="modal-content">
2837       <div class="modal-header">
2838         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2839         <h4 class="modal-title" id="uploadDroneImageryAddNewVehicleDialog">Add New Imaging Vehicle</h4>
2840       </div>
2841       <div class="modal-body">
2842         <div class="container-fluid">
2843             <div class="form-horizontal">
2844                 <div class="form-group">
2845                     <label class="col-sm-3 control-label">Imaging Vehicle Name (Must be unique): </label>
2846                     <div class="col-sm-9" >
2847                         <input class="form-control" id="drone_run_new_imaging_vehicle_name" name="drone_run_new_imaging_vehicle_name" type="text" placeholder="e.g. MyLabDrone1" />
2848                     </div>
2849                 </div>
2850                 <div class="form-group">
2851                     <label class="col-sm-3 control-label">Imaging Vehicle Description: </label>
2852                     <div class="col-sm-9" >
2853                         <input class="form-control" id="drone_run_new_imaging_vehicle_desc" name="drone_run_new_imaging_vehicle_desc" type="text" />
2854                     </div>
2855                 </div>
2856                 <div class="form-group">
2857                     <label class="col-sm-3 control-label">Battery Set Names (optional) (comma separated string of names e.g. blue,green,red,black): </label>
2858                     <div class="col-sm-9" >
2859                         <input class="form-control" id="drone_run_new_imaging_vehicle_battery_names" name="drone_run_new_imaging_vehicle_battery_names" type="text" placeholder="default_battery" value="default_battery"/>
2860                     </div>
2861                 </div>
2862             </div>
2863             <br/><br/>
2864             <center>
2865                 <button class="btn btn-primary" type="button" id="drone_run_new_imaging_vehicle_submit" name="drone_run_new_imaging_vehicle_submit">Submit</button>
2866             </center>
2867         </div>
2868       </div>
2869       <div class="modal-footer">
2870         <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2871       </div>
2872     </div>
2873   </div>
2874 </div>
2876 <script defer="defer">
2878 jQuery(document).ready(function() {
2880     get_select_box('trials', 'upload_drone_image_trial_select_div', { 'name' : 'drone_run_field_trial_id', 'id' : 'drone_run_field_trial_id', 'empty':1, 'multiple':0 });
2882     var upload_drone_imagery_vehicle_id;
2883     jQuery('#upload_drone_imagery_link').click( function() {
2884         jQuery('#upload_drone_imagery_dialog').modal("show");
2885         upload_drone_imagery_vehicle_id = jQuery('#drone_run_imaging_vehicle_id').val();
2887         if (upload_drone_imagery_vehicle_id) {
2888             _show_vehicle_battery_select();
2889         }
2890     });
2892     var upload_drone_imagery_field_trial_id;
2893     jQuery(document).on('change', '#drone_run_field_trial_id', function() {
2894         upload_drone_imagery_field_trial_id = jQuery(this).val();
2895         jQuery('#drone_image_upload_drone_runs_table').DataTable({
2896             destroy : true,
2897             ajax : '/api/drone_imagery/drone_runs?select_checkbox_name=upload_drone_imagery_drone_run_select&field_trial_ids='+upload_drone_imagery_field_trial_id+'&disable=1'
2898         });
2899     });
2901     jQuery('#upload_drone_imagery_bulk_previous_button').click(function(e){
2902         e.preventDefault();
2903         jQuery('#upload_drone_imagery_bulk_previous_dialog').modal("show");
2904         return;
2905     });
2907     jQuery('#upload_drone_imagery_bulk_button').click(function(e){
2908         e.preventDefault();
2909         jQuery('#upload_drone_imagery_bulk_dialog').modal("show");
2910         return;
2911     });
2913     jQuery('#upload_drone_image_field_trial_select_continue').click(function(){
2914         if (jQuery('#drone_run_field_trial_id').val() == ''){
2915             alert('Please select a field trial first');
2916         } else {
2917             jQuery.ajax({
2918                 url : '/ajax/breeders/trial/'+jQuery('#drone_run_field_trial_id').val()+'/details',
2919                 success: function(response){
2920                     console.log(response);
2922                     if (response.details.planting_date) {
2923                         if (response.details.location_noaa_station_id) {
2924                             Workflow.complete('#upload_drone_image_field_trial_select_continue');
2925                             Workflow.focus('#drone_imagery_upload_workflow', 2);
2926                         }
2927                         else {
2928                             jQuery('#upload_drone_image_field_trial_info').html("<div class='well well-sm'>Please set the NOAA location id for this field trial before proceeding. You can do so from the manage locations page.</div>");
2929                         }
2930                     }
2931                     else {
2932                         jQuery('#upload_drone_image_field_trial_info').html("<div class='well well-sm'>Please set the planting date for this field trial before proceeding. You can do so from the trial's <a href='/breeders/trial/"+jQuery('#drone_run_field_trial_id').val()+"' target=_blank>Detail Page</a></div>");
2933                     }
2934                     return false;
2935                 },
2936                 error: function(response){
2937                     alert('Error checking field trial details!');
2938                 }
2939             });
2940         }
2941         return false;
2942     });
2944     var drone_run_date_element = jQuery("#drone_run_date");
2945     set_daterangepicker_default (drone_run_date_element);
2946     jQuery('input[title="drone_run_date"]').daterangepicker(
2947         {
2948             "singleDatePicker": true,
2949             "showDropdowns": true,
2950             "autoUpdateInput": false,
2951             "timePicker": true,
2952             "timePicker24Hour": true,
2953         },
2954         function(start){
2955             drone_run_date_element.val(start.format('YYYY/MM/DD HH:mm:ss'));
2956         }
2957     );
2959     //var drone_run_base_date_element = jQuery("#drone_run_base_date");
2960     //jQuery('input[title="drone_run_base_date"]').daterangepicker(
2961     //    {
2962     //        "singleDatePicker": true,
2963     //        "showDropdowns": true,
2964     //        "autoUpdateInput": false,
2965     //        "timePicker": true,
2966     //        "timePicker24Hour": true,
2967     //    },
2968     //    function(start){
2969     //        drone_run_base_date_element.val(start.format('YYYY/MM/DD HH:mm:ss'));
2970     //    }
2971     //);
2973     get_select_box('imaging_event_vehicles', 'drone_run_imaging_vehicle_div', {'id':'drone_run_imaging_vehicle_id', 'name':'drone_run_imaging_vehicle_id'});
2975     function _show_vehicle_battery_select() {
2976         jQuery.ajax({
2977             url : '/api/drone_imagery/get_vehicle?vehicle_id='+upload_drone_imagery_vehicle_id,
2978             success: function(response){
2979                 console.log(response);
2980                 if (response.success) {
2981                     var html = "<select class='form-control' name='drone_run_imaging_vehicle_battery_name' id='drone_run_imaging_vehicle_battery_name'>";
2982                     for (var name in response.vehicles[0].properties.batteries) {
2983                         if (response.vehicles[0].properties.batteries.hasOwnProperty(name)) {
2984                             if (response.vehicles[0].properties.batteries[name]['obsolete'] == 0) {
2985                                 html = html + "<option value='"+name+"'>"+name+"</option>";
2986                             }
2987                         }
2988                     }
2989                     html = html + "</select>";
2990                     jQuery('#drone_run_imaging_vehicle_battery_div').html(html);
2991                 }
2992                 else if (response.error) {
2993                     alert(response.error);
2994                 }
2995                 return false;
2996             },
2997             error: function(response){
2998                 alert('Error getting vehicle!');
2999             }
3000         });
3001     }
3003     jQuery('button[name="drone_run_imaging_vehicle_add_new"]').click(function(e){
3004         e.preventDefault();
3005         jQuery('#drone_run_imaging_vehicle_add_new_modal').modal('show');
3006     });
3008     jQuery('#drone_run_new_imaging_vehicle_submit').click(function(e){
3009         e.preventDefault();
3010         var vehicle_name = jQuery('#drone_run_new_imaging_vehicle_name').val();
3011         var vehicle_desc = jQuery('#drone_run_new_imaging_vehicle_desc').val();
3012         var vehicle_batteries = jQuery('#drone_run_new_imaging_vehicle_battery_names').val();
3014         if (vehicle_name == '' || vehicle_desc == '') {
3015             alert('Please give a vehicle name and description!');
3016             return false;
3017         }
3018         if (vehicle_batteries == '') {
3019             alert('Please give at least default battery name!');
3020             return false;
3021         }
3023         jQuery.ajax({
3024             url : '/api/drone_imagery/new_imaging_vehicle?vehicle_name='+vehicle_name+'&vehicle_description='+vehicle_desc+'&battery_names='+vehicle_batteries,
3025             success: function(response){
3026                 console.log(response);
3027                 if (response.error) {
3028                     alert(response.error);
3029                 }
3030                 else if (response.success) {
3031                     alert('Vehicle added!');
3032                     get_select_box('imaging_event_vehicles', 'drone_run_imaging_vehicle_div', {'id':'drone_run_imaging_vehicle_id', 'name':'drone_run_imaging_vehicle_id'});
3033                     upload_drone_imagery_vehicle_id = response.new_vehicle_id;
3034                     _show_vehicle_battery_select();
3035                 }
3037                 return false;
3038             },
3039             error: function(response){
3040                 alert('Error adding new imaging vehicle!');
3041             }
3042         });
3043     });
3045     jQuery(document).on('change', '#drone_run_imaging_vehicle_id', function(){
3046         upload_drone_imagery_vehicle_id = jQuery(this).val();
3047         _show_vehicle_battery_select();
3048     });
3050     jQuery('#drone_image_upload_drone_run_continue').click(function(e){
3051         e.preventDefault();
3053         var selected = [];
3054         jQuery('input[name="upload_drone_imagery_drone_run_select"]:checked').each(function() {
3055             selected.push(jQuery(this).val());
3056         });
3057         if (selected.length > 1){
3058             alert('Only select one drone run!');
3059         } else {
3060             if (selected.length == 0 && jQuery('#drone_run_name').val() == ''){
3061                 alert('Select a drone run or create a new one!');
3062             } else if (selected.length == 1 && jQuery('#drone_run_name').val() != ''){
3063                 alert('If you selected a drone run, do not try to make a new one at the same time!');
3064             } else if (selected.length == 1 && jQuery('#drone_run_name').val() == ''){
3065                 jQuery('#drone_run_id').val(selected[0]);
3066                 Workflow.complete('#drone_image_upload_drone_run_continue');
3067                 Workflow.focus('#drone_imagery_upload_workflow', 3);
3068             } else if (selected.length == 0 && jQuery('#drone_run_name').val() != '') {
3069                 if (jQuery('#drone_run_description').val() == ''){
3070                     alert('Please give a drone run description.');
3071                 } else if (jQuery('#drone_run_date').val() == ''){
3072                     alert('Please give a drone run date.');
3073                 } else if (jQuery('#drone_run_type') == ''){
3074                     alert('Please select a drone run type');
3075                 } else {
3076                     jQuery('#drone_run_id').val('');
3077                     jQuery.ajax({
3078                         url : '/api/drone_imagery/upload_drone_imagery_check_drone_name?drone_run_name='+jQuery('#drone_run_name').val(),
3079                         success: function(response){
3080                             console.log(response);
3082                             if (response.success) {
3083                                 Workflow.complete('#drone_image_upload_drone_run_continue');
3084                                 Workflow.focus('#drone_imagery_upload_workflow', 3);
3085                                 return false;
3086                             }
3087                             else if (response.error) {
3088                                 alert("Error: " + response.error);
3089                             }
3090                             return false;
3091                         },
3092                         error: function(response){
3093                             alert('Error checking drone run name!');
3094                         }
3095                     });
3096                 }
3097             }
3098         }
3099         return false;
3100     });
3102     jQuery('#drone_image_upload_drone_run_band_stitching').change(function() {
3103         if (jQuery(this).val() == 'no') {
3104             jQuery('#drone_run_upload_drone_run_band_number_div').show();
3105         }
3106         else {
3107             jQuery('#drone_run_upload_drone_run_band_number_div').hide();
3108         }
3109     });
3111     var drone_run_band_unstitched = '';
3112     var new_drone_run_band_stitching_odm_more_images = '';
3113     jQuery('#drone_image_upload_drone_run_band_continue').click(function(e){
3114         e.preventDefault();
3116         var drone_run_band_number = jQuery('#drone_run_band_number').val();
3117         drone_run_band_unstitched = jQuery('#drone_image_upload_drone_run_band_stitching').val();
3118         var drone_run_camera_info = jQuery('#drone_image_upload_camera_info').val();
3119         var drone_run_id = jQuery('#drone_run_id').val();
3120         var drone_run_name = jQuery('#drone_run_name').val();
3121         var drone_run_description = jQuery('#drone_run_description').val();
3122         var drone_run_date = jQuery('#drone_run_date').val();
3123         var drone_run_type = jQuery('#drone_run_type').val();
3124         var drone_run_vehicle_id = jQuery('#drone_run_imaging_vehicle_id').val();
3125         var drone_run_vehicle_battery_name = jQuery('#drone_run_imaging_vehicle_battery_name').val();
3126         var drone_run_camera_rig_description = jQuery('#drone_run_camera_rig_description').val();
3127         var drone_run_base_date = jQuery('#drone_run_base_date').val();
3129         if (drone_run_band_unstitched == '') {
3130             alert('Please select whether you are uploading orthomosaic images.');
3131             return false;
3132         }
3133         if (drone_run_id == '' && drone_run_camera_info == '') {
3134             alert('Please select the camera type used.');
3135             return false;
3136         }
3138         if (drone_run_vehicle_id == '' || drone_run_vehicle_battery_name == '') {
3139             alert('Please select an imaging event vehicle and the associated battery! You can create a new vehicle if needed e.g. default_battery');
3140             return false;
3141         }
3142         if (drone_run_camera_info == '') {
3143             alert('Please select the camera type used.');
3144             return false;
3145         }
3147         console.log(drone_run_band_unstitched);
3148         console.log(drone_run_band_number);
3149         console.log(drone_run_camera_info);
3151         jQuery('input[name="drone_run_field_trial_id"]').val(upload_drone_imagery_field_trial_id);
3152         jQuery('input[name="drone_run_name"]').val(drone_run_name);
3153         jQuery('input[name="drone_run_type"]').val(drone_run_type);
3154         jQuery('input[name="drone_image_upload_camera_info"]').val(drone_run_camera_info);
3155         jQuery('input[name="drone_run_imaging_vehicle_id"]').val(drone_run_vehicle_id);
3156         jQuery('input[name="drone_run_imaging_vehicle_battery_name"]').val(drone_run_vehicle_battery_name);
3157         jQuery('input[name="drone_run_description"]').val(drone_run_description);
3158         jQuery('input[name="drone_run_date"]').val(drone_run_date);
3159         jQuery('input[name="drone_run_camera_rig_description"]').val(drone_run_camera_rig_description);
3160         jQuery('input[name="drone_run_base_date"]').val(drone_run_base_date);
3161         jQuery('input[name="drone_image_upload_drone_run_band_stitching"]').val(drone_run_band_unstitched);
3162         jQuery('input[name="drone_run_band_number"]').val(drone_run_band_number);
3164         if (drone_run_band_unstitched == 'no') {
3165             if (drone_run_band_number == '') {
3166                 alert('Please select the number of drone run bands you will upload');
3167             } else {
3168                 if (drone_run_band_number == 5 && drone_run_camera_info == 'micasense_5'){
3169                     jQuery('input[name="drone_run_band_name_1"]').val(drone_run_name+'_'+drone_run_date+'_Blue');
3170                     jQuery('input[name="drone_run_band_name_2"]').val(drone_run_name+'_'+drone_run_date+'_Green');
3171                     jQuery('input[name="drone_run_band_name_3"]').val(drone_run_name+'_'+drone_run_date+'_Red');
3172                     jQuery('input[name="drone_run_band_name_4"]').val(drone_run_name+'_'+drone_run_date+'_NIR');
3173                     jQuery('input[name="drone_run_band_name_5"]').val(drone_run_name+'_'+drone_run_date+'_RedEdge');
3174                     jQuery('select[name="drone_run_band_type_1"] option[value="Blue (450-520nm)"]').attr('selected','selected');
3175                     jQuery('select[name="drone_run_band_type_2"] option[value="Green (515-600nm)"]').attr('selected','selected');
3176                     jQuery('select[name="drone_run_band_type_3"] option[value="Red (600-690nm)"]').attr('selected','selected');
3177                     jQuery('select[name="drone_run_band_type_4"] option[value="NIR (780-3000nm)"]').attr('selected','selected');
3178                     jQuery('select[name="drone_run_band_type_5"] option[value="Red Edge (690-750nm)"]').attr('selected','selected');
3179                 }
3180             }
3182             if (drone_run_band_number == 1 || drone_run_band_number == 'one_bw' || drone_run_band_number == 'one_rgb') {
3183                 jQuery('#upload_drone_imagery_dialog_one_band').modal('show');
3184             }
3185             if (drone_run_band_number == 2) {
3186                 jQuery('#upload_drone_imagery_dialog_two_band').modal('show');
3187             }
3188             if (drone_run_band_number == 3) {
3189                 jQuery('#upload_drone_imagery_dialog_three_band').modal('show');
3190             }
3191             if (drone_run_band_number == 4) {
3192                 jQuery('#upload_drone_imagery_dialog_four_band').modal('show');
3193             }
3194             if (drone_run_band_number == 5) {
3195                 jQuery('#upload_drone_imagery_dialog_five_band').modal('show');
3196             }
3197             if (drone_run_band_number == 6) {
3198                 jQuery('#upload_drone_imagery_dialog_six_band').modal('show');
3199             }
3200             if (drone_run_band_number == 7) {
3201                 jQuery('#upload_drone_imagery_dialog_seven_band').modal('show');
3202             }
3203             if (drone_run_band_number == 8) {
3204                 jQuery('#upload_drone_imagery_dialog_eight_band').modal('show');
3205             }
3206         }
3207         else if (drone_run_band_unstitched == 'yes_open_data_map_stitch') {
3208             if (drone_run_camera_info == 'micasense_5') {
3209                 jQuery('#upload_drone_imagery_dialog_odm_micasense').modal('show');
3210             }
3211             else {
3212                 jQuery('#upload_drone_imagery_dialog_odm').modal('show');
3213             }
3214         }
3216         return false;
3217     });
3219     jQuery('#upload_drone_imagery_select_images_one').click(function(e){
3220         e.preventDefault();
3221         if (jQuery('#drone_run_band_name_one_1').val() == ''){
3222             alert('Give a new drone run band name!');
3223             return;
3224         } else if (jQuery('#drone_run_band_description_one_1').val() == ''){
3225             alert('Please give a drone run band description.');
3226             return;
3227         } else if (jQuery('#drone_run_band_type_one_1').val() == ''){
3228             alert('Please select a drone run band type.');
3229             return;
3230         }
3231         if (jQuery('#drone_run_band_stitched_ortho_image_one_1').val() == '') {
3232             alert('Please select an image');
3233             return;
3234         }
3236         Workflow.complete('#upload_drone_imagery_select_images_one');
3237         Workflow.focus('#drone_imagery_upload_workflow_one_band', 1);
3238         return false;
3239     });
3241     jQuery('#upload_drone_imagery_select_images_two').click(function(e){
3242         e.preventDefault();
3243         if (jQuery('#drone_run_band_name_two_1').val() == ''){
3244             alert('Give a new drone run band name!');
3245             return;
3246         } else if (jQuery('#drone_run_band_description_two_1').val() == ''){
3247             alert('Please give a drone run band description.');
3248             return;
3249         } else if (jQuery('#drone_run_band_type_two_1').val() == ''){
3250             alert('Please select a drone run band type.');
3251             return;
3252         }
3253         if (jQuery('#drone_run_band_stitched_ortho_image_two_1').val() == '') {
3254             alert('Please select an image');
3255             return;
3256         }
3257         if (jQuery('#drone_run_band_name_two_2').val() == ''){
3258             alert('Give a new drone run band name!');
3259             return;
3260         } else if (jQuery('#drone_run_band_description_two_2').val() == ''){
3261             alert('Please give a drone run band description.');
3262             return;
3263         } else if (jQuery('#drone_run_band_type_two_2').val() == ''){
3264             alert('Please select a drone run band type.');
3265             return;
3266         }
3267         if (jQuery('#drone_run_band_stitched_ortho_image_two_2').val() == '') {
3268             alert('Please select an image');
3269             return;
3270         }
3272         Workflow.complete('#upload_drone_imagery_select_images_two');
3273         Workflow.focus('#drone_imagery_upload_workflow_two_band', 1);
3274         return false;
3275     });
3277     jQuery('#upload_drone_imagery_select_images_three').click(function(e){
3278         e.preventDefault();
3279         if (jQuery('#drone_run_band_name_three_1').val() == ''){
3280             alert('Give a new drone run band name!');
3281             return;
3282         } else if (jQuery('#drone_run_band_description_three_1').val() == ''){
3283             alert('Please give a drone run band description.');
3284             return;
3285         } else if (jQuery('#drone_run_band_type_three_1').val() == ''){
3286             alert('Please select a drone run band type.');
3287             return;
3288         }
3289         if (jQuery('#drone_run_band_stitched_ortho_image_three_1').val() == '') {
3290             alert('Please select an image');
3291             return;
3292         }
3293         if (jQuery('#drone_run_band_name_three_2').val() == ''){
3294             alert('Give a new drone run band name!');
3295             return;
3296         } else if (jQuery('#drone_run_band_description_three_2').val() == ''){
3297             alert('Please give a drone run band description.');
3298             return;
3299         } else if (jQuery('#drone_run_band_type_three_2').val() == ''){
3300             alert('Please select a drone run band type.');
3301             return;
3302         }
3303         if (jQuery('#drone_run_band_stitched_ortho_image_three_2').val() == '') {
3304             alert('Please select an image');
3305             return;
3306         }
3307         if (jQuery('#drone_run_band_name_three_3').val() == ''){
3308             alert('Give a new drone run band name!');
3309             return;
3310         } else if (jQuery('#drone_run_band_description_three_3').val() == ''){
3311             alert('Please give a drone run band description.');
3312             return;
3313         } else if (jQuery('#drone_run_band_type_three_3').val() == ''){
3314             alert('Please select a drone run band type.');
3315             return;
3316         }
3317         if (jQuery('#drone_run_band_stitched_ortho_image_three_3').val() == '') {
3318             alert('Please select an image');
3319             return;
3320         }
3322         Workflow.complete('#upload_drone_imagery_select_images_three');
3323         Workflow.focus('#drone_imagery_upload_workflow_three_band', 1);
3324         return false;
3325     });
3327     jQuery('#upload_drone_imagery_select_images_four').click(function(e){
3328         e.preventDefault();
3329         if (jQuery('#drone_run_band_name_four_1').val() == ''){
3330             alert('Give a new drone run band name!');
3331             return;
3332         } else if (jQuery('#drone_run_band_description_four_1').val() == ''){
3333             alert('Please give a drone run band description.');
3334             return;
3335         } else if (jQuery('#drone_run_band_type_four_1').val() == ''){
3336             alert('Please select a drone run band type.');
3337             return;
3338         }
3339         if (jQuery('#drone_run_band_stitched_ortho_image_four_1').val() == '') {
3340             alert('Please select an image');
3341             return;
3342         }
3343         if (jQuery('#drone_run_band_name_four_2').val() == ''){
3344             alert('Give a new drone run band name!');
3345             return;
3346         } else if (jQuery('#drone_run_band_description_four_2').val() == ''){
3347             alert('Please give a drone run band description.');
3348             return;
3349         } else if (jQuery('#drone_run_band_type_four_2').val() == ''){
3350             alert('Please select a drone run band type.');
3351             return;
3352         }
3353         if (jQuery('#drone_run_band_stitched_ortho_image_four_2').val() == '') {
3354             alert('Please select an image');
3355             return;
3356         }
3357         if (jQuery('#drone_run_band_name_four_3').val() == ''){
3358             alert('Give a new drone run band name!');
3359             return;
3360         } else if (jQuery('#drone_run_band_description_four_3').val() == ''){
3361             alert('Please give a drone run band description.');
3362             return;
3363         } else if (jQuery('#drone_run_band_type_four_3').val() == ''){
3364             alert('Please select a drone run band type.');
3365             return;
3366         }
3367         if (jQuery('#drone_run_band_stitched_ortho_image_four_3').val() == '') {
3368             alert('Please select an image');
3369             return;
3370         }
3371         if (jQuery('#drone_run_band_name_four_4').val() == ''){
3372             alert('Give a new drone run band name!');
3373             return;
3374         } else if (jQuery('#drone_run_band_description_four_4').val() == ''){
3375             alert('Please give a drone run band description.');
3376             return;
3377         } else if (jQuery('#drone_run_band_type_four_4').val() == ''){
3378             alert('Please select a drone run band type.');
3379             return;
3380         }
3381         if (jQuery('#drone_run_band_stitched_ortho_image_four_4').val() == '') {
3382             alert('Please select an image');
3383             return;
3384         }
3386         Workflow.complete('#upload_drone_imagery_select_images_four');
3387         Workflow.focus('#drone_imagery_upload_workflow_four_band', 1);
3388         return false;
3389     });
3391     jQuery('#upload_drone_imagery_select_images_five').click(function(e){
3392         e.preventDefault();
3393         if (jQuery('#drone_run_band_name_five_1').val() == ''){
3394             alert('Give a new drone run band name!');
3395             return;
3396         } else if (jQuery('#drone_run_band_description_five_1').val() == ''){
3397             alert('Please give a drone run band description.');
3398             return;
3399         } else if (jQuery('#drone_run_band_type_five_1').val() == ''){
3400             alert('Please select a drone run band type.');
3401             return;
3402         }
3403         if (jQuery('#drone_run_band_stitched_ortho_image_five_1').val() == '') {
3404             alert('Please select an image');
3405             return;
3406         }
3407         if (jQuery('#drone_run_band_name_five_2').val() == ''){
3408             alert('Give a new drone run band name!');
3409             return;
3410         } else if (jQuery('#drone_run_band_description_five_2').val() == ''){
3411             alert('Please give a drone run band description.');
3412             return;
3413         } else if (jQuery('#drone_run_band_type_five_2').val() == ''){
3414             alert('Please select a drone run band type.');
3415             return;
3416         }
3417         if (jQuery('#drone_run_band_stitched_ortho_image_five_2').val() == '') {
3418             alert('Please select an image');
3419             return;
3420         }
3421         if (jQuery('#drone_run_band_name_five_3').val() == ''){
3422             alert('Give a new drone run band name!');
3423             return;
3424         } else if (jQuery('#drone_run_band_description_five_3').val() == ''){
3425             alert('Please give a drone run band description.');
3426             return;
3427         } else if (jQuery('#drone_run_band_type_five_3').val() == ''){
3428             alert('Please select a drone run band type.');
3429             return;
3430         }
3431         if (jQuery('#drone_run_band_stitched_ortho_image_five_3').val() == '') {
3432             alert('Please select an image');
3433             return;
3434         }
3435         if (jQuery('#drone_run_band_name_five_4').val() == ''){
3436             alert('Give a new drone run band name!');
3437             return;
3438         } else if (jQuery('#drone_run_band_description_five_4').val() == ''){
3439             alert('Please give a drone run band description.');
3440             return;
3441         } else if (jQuery('#drone_run_band_type_five_4').val() == ''){
3442             alert('Please select a drone run band type.');
3443             return;
3444         }
3445         if (jQuery('#drone_run_band_stitched_ortho_image_five_4').val() == '') {
3446             alert('Please select an image');
3447             return;
3448         }
3449         if (jQuery('#drone_run_band_name_five_5').val() == ''){
3450             alert('Give a new drone run band name!');
3451             return;
3452         } else if (jQuery('#drone_run_band_description_five_5').val() == ''){
3453             alert('Please give a drone run band description.');
3454             return;
3455         } else if (jQuery('#drone_run_band_type_five_5').val() == ''){
3456             alert('Please select a drone run band type.');
3457             return;
3458         }
3459         if (jQuery('#drone_run_band_stitched_ortho_image_five_5').val() == '') {
3460             alert('Please select an image');
3461             return;
3462         }
3464         Workflow.complete('#upload_drone_imagery_select_images_five');
3465         Workflow.focus('#drone_imagery_upload_workflow_five_band', 1);
3466         return false;
3467     });
3469     jQuery('#upload_drone_imagery_select_images_six').click(function(e){
3470         e.preventDefault();
3471         if (jQuery('#drone_run_band_name_six_1').val() == ''){
3472             alert('Give a new drone run band name!');
3473             return;
3474         } else if (jQuery('#drone_run_band_description_six_1').val() == ''){
3475             alert('Please give a drone run band description.');
3476             return;
3477         } else if (jQuery('#drone_run_band_type_six_1').val() == ''){
3478             alert('Please select a drone run band type.');
3479             return;
3480         }
3481         if (jQuery('#drone_run_band_stitched_ortho_image_six_1').val() == '') {
3482             alert('Please select an image');
3483             return;
3484         }
3485         if (jQuery('#drone_run_band_name_six_2').val() == ''){
3486             alert('Give a new drone run band name!');
3487             return;
3488         } else if (jQuery('#drone_run_band_description_six_2').val() == ''){
3489             alert('Please give a drone run band description.');
3490             return;
3491         } else if (jQuery('#drone_run_band_type_six_2').val() == ''){
3492             alert('Please select a drone run band type.');
3493             return;
3494         }
3495         if (jQuery('#drone_run_band_stitched_ortho_image_six_2').val() == '') {
3496             alert('Please select an image');
3497             return;
3498         }
3499         if (jQuery('#drone_run_band_name_six_3').val() == ''){
3500             alert('Give a new drone run band name!');
3501             return;
3502         } else if (jQuery('#drone_run_band_description_six_3').val() == ''){
3503             alert('Please give a drone run band description.');
3504             return;
3505         } else if (jQuery('#drone_run_band_type_six_3').val() == ''){
3506             alert('Please select a drone run band type.');
3507             return;
3508         }
3509         if (jQuery('#drone_run_band_stitched_ortho_image_six_3').val() == '') {
3510             alert('Please select an image');
3511             return;
3512         }
3513         if (jQuery('#drone_run_band_name_six_4').val() == ''){
3514             alert('Give a new drone run band name!');
3515             return;
3516         } else if (jQuery('#drone_run_band_description_six_4').val() == ''){
3517             alert('Please give a drone run band description.');
3518             return;
3519         } else if (jQuery('#drone_run_band_type_six_4').val() == ''){
3520             alert('Please select a drone run band type.');
3521             return;
3522         }
3523         if (jQuery('#drone_run_band_stitched_ortho_image_six_4').val() == '') {
3524             alert('Please select an image');
3525             return;
3526         }
3527         if (jQuery('#drone_run_band_name_six_5').val() == ''){
3528             alert('Give a new drone run band name!');
3529             return;
3530         } else if (jQuery('#drone_run_band_description_six_5').val() == ''){
3531             alert('Please give a drone run band description.');
3532             return;
3533         } else if (jQuery('#drone_run_band_type_six_5').val() == ''){
3534             alert('Please select a drone run band type.');
3535             return;
3536         }
3537         if (jQuery('#drone_run_band_stitched_ortho_image_six_5').val() == '') {
3538             alert('Please select an image');
3539             return;
3540         }
3541         if (jQuery('#drone_run_band_name_six_6').val() == ''){
3542             alert('Give a new drone run band name!');
3543             return;
3544         } else if (jQuery('#drone_run_band_description_six_6').val() == ''){
3545             alert('Please give a drone run band description.');
3546             return;
3547         } else if (jQuery('#drone_run_band_type_six_6').val() == ''){
3548             alert('Please select a drone run band type.');
3549             return;
3550         }
3551         if (jQuery('#drone_run_band_stitched_ortho_image_six_6').val() == '') {
3552             alert('Please select an image');
3553             return;
3554         }
3556         Workflow.complete('#upload_drone_imagery_select_images_six');
3557         Workflow.focus('#drone_imagery_upload_workflow_six_band', 1);
3558         return false;
3559     });
3561     jQuery('#upload_drone_imagery_select_images_seven').click(function(e){
3562         e.preventDefault();
3563         if (jQuery('#drone_run_band_name_seven_1').val() == ''){
3564             alert('Give a new drone run band name!');
3565             return;
3566         } else if (jQuery('#drone_run_band_description_seven_1').val() == ''){
3567             alert('Please give a drone run band description.');
3568             return;
3569         } else if (jQuery('#drone_run_band_type_seven_1').val() == ''){
3570             alert('Please select a drone run band type.');
3571             return;
3572         }
3573         if (jQuery('#drone_run_band_stitched_ortho_image_seven_1').val() == '') {
3574             alert('Please select an image');
3575             return;
3576         }
3577         if (jQuery('#drone_run_band_name_seven_2').val() == ''){
3578             alert('Give a new drone run band name!');
3579             return;
3580         } else if (jQuery('#drone_run_band_description_seven_2').val() == ''){
3581             alert('Please give a drone run band description.');
3582             return;
3583         } else if (jQuery('#drone_run_band_type_seven_2').val() == ''){
3584             alert('Please select a drone run band type.');
3585             return;
3586         }
3587         if (jQuery('#drone_run_band_stitched_ortho_image_seven_2').val() == '') {
3588             alert('Please select an image');
3589             return;
3590         }
3591         if (jQuery('#drone_run_band_name_seven_3').val() == ''){
3592             alert('Give a new drone run band name!');
3593             return;
3594         } else if (jQuery('#drone_run_band_description_seven_3').val() == ''){
3595             alert('Please give a drone run band description.');
3596             return;
3597         } else if (jQuery('#drone_run_band_type_seven_3').val() == ''){
3598             alert('Please select a drone run band type.');
3599             return;
3600         }
3601         if (jQuery('#drone_run_band_stitched_ortho_image_seven_3').val() == '') {
3602             alert('Please select an image');
3603             return;
3604         }
3605         if (jQuery('#drone_run_band_name_seven_4').val() == ''){
3606             alert('Give a new drone run band name!');
3607             return;
3608         } else if (jQuery('#drone_run_band_description_seven_4').val() == ''){
3609             alert('Please give a drone run band description.');
3610             return;
3611         } else if (jQuery('#drone_run_band_type_seven_4').val() == ''){
3612             alert('Please select a drone run band type.');
3613             return;
3614         }
3615         if (jQuery('#drone_run_band_stitched_ortho_image_seven_4').val() == '') {
3616             alert('Please select an image');
3617             return;
3618         }
3619         if (jQuery('#drone_run_band_name_seven_5').val() == ''){
3620             alert('Give a new drone run band name!');
3621             return;
3622         } else if (jQuery('#drone_run_band_description_seven_5').val() == ''){
3623             alert('Please give a drone run band description.');
3624             return;
3625         } else if (jQuery('#drone_run_band_type_seven_5').val() == ''){
3626             alert('Please select a drone run band type.');
3627             return;
3628         }
3629         if (jQuery('#drone_run_band_stitched_ortho_image_seven_5').val() == '') {
3630             alert('Please select an image');
3631             return;
3632         }
3633         if (jQuery('#drone_run_band_name_seven_6').val() == ''){
3634             alert('Give a new drone run band name!');
3635             return;
3636         } else if (jQuery('#drone_run_band_description_seven_6').val() == ''){
3637             alert('Please give a drone run band description.');
3638             return;
3639         } else if (jQuery('#drone_run_band_type_seven_6').val() == ''){
3640             alert('Please select a drone run band type.');
3641             return;
3642         }
3643         if (jQuery('#drone_run_band_stitched_ortho_image_seven_6').val() == '') {
3644             alert('Please select an image');
3645             return;
3646         }
3647         if (jQuery('#drone_run_band_name_seven_7').val() == ''){
3648             alert('Give a new drone run band name!');
3649             return;
3650         } else if (jQuery('#drone_run_band_description_seven_7').val() == ''){
3651             alert('Please give a drone run band description.');
3652             return;
3653         } else if (jQuery('#drone_run_band_type_seven_7').val() == ''){
3654             alert('Please select a drone run band type.');
3655             return;
3656         }
3657         if (jQuery('#drone_run_band_stitched_ortho_image_seven_7').val() == '') {
3658             alert('Please select an image');
3659             return;
3660         }
3662         Workflow.complete('#upload_drone_imagery_select_images_seven');
3663         Workflow.focus('#drone_imagery_upload_workflow_seven_band', 1);
3664         return false;
3665     });
3667     jQuery('#upload_drone_imagery_select_images_eight').click(function(e){
3668         e.preventDefault();
3669         if (jQuery('#drone_run_band_name_eight_1').val() == ''){
3670             alert('Give a new drone run band name!');
3671             return;
3672         } else if (jQuery('#drone_run_band_description_eight_1').val() == ''){
3673             alert('Please give a drone run band description.');
3674             return;
3675         } else if (jQuery('#drone_run_band_type_eight_1').val() == ''){
3676             alert('Please select a drone run band type.');
3677             return;
3678         }
3679         if (jQuery('#drone_run_band_stitched_ortho_image_eight_1').val() == '') {
3680             alert('Please select an image');
3681             return;
3682         }
3683         if (jQuery('#drone_run_band_name_eight_2').val() == ''){
3684             alert('Give a new drone run band name!');
3685             return;
3686         } else if (jQuery('#drone_run_band_description_eight_2').val() == ''){
3687             alert('Please give a drone run band description.');
3688             return;
3689         } else if (jQuery('#drone_run_band_type_eight_2').val() == ''){
3690             alert('Please select a drone run band type.');
3691             return;
3692         }
3693         if (jQuery('#drone_run_band_stitched_ortho_image_eight_2').val() == '') {
3694             alert('Please select an image');
3695             return;
3696         }
3697         if (jQuery('#drone_run_band_name_eight_3').val() == ''){
3698             alert('Give a new drone run band name!');
3699             return;
3700         } else if (jQuery('#drone_run_band_description_eight_3').val() == ''){
3701             alert('Please give a drone run band description.');
3702             return;
3703         } else if (jQuery('#drone_run_band_type_eight_3').val() == ''){
3704             alert('Please select a drone run band type.');
3705             return;
3706         }
3707         if (jQuery('#drone_run_band_stitched_ortho_image_eight_3').val() == '') {
3708             alert('Please select an image');
3709             return;
3710         }
3711         if (jQuery('#drone_run_band_name_eight_4').val() == ''){
3712             alert('Give a new drone run band name!');
3713             return;
3714         } else if (jQuery('#drone_run_band_description_eight_4').val() == ''){
3715             alert('Please give a drone run band description.');
3716             return;
3717         } else if (jQuery('#drone_run_band_type_eight_4').val() == ''){
3718             alert('Please select a drone run band type.');
3719             return;
3720         }
3721         if (jQuery('#drone_run_band_stitched_ortho_image_eight_4').val() == '') {
3722             alert('Please select an image');
3723             return;
3724         }
3725         if (jQuery('#drone_run_band_name_eight_5').val() == ''){
3726             alert('Give a new drone run band name!');
3727             return;
3728         } else if (jQuery('#drone_run_band_description_eight_5').val() == ''){
3729             alert('Please give a drone run band description.');
3730             return;
3731         } else if (jQuery('#drone_run_band_type_eight_5').val() == ''){
3732             alert('Please select a drone run band type.');
3733             return;
3734         }
3735         if (jQuery('#drone_run_band_stitched_ortho_image_eight_5').val() == '') {
3736             alert('Please select an image');
3737             return;
3738         }
3739         if (jQuery('#drone_run_band_name_eight_6').val() == ''){
3740             alert('Give a new drone run band name!');
3741             return;
3742         } else if (jQuery('#drone_run_band_description_eight_6').val() == ''){
3743             alert('Please give a drone run band description.');
3744             return;
3745         } else if (jQuery('#drone_run_band_type_eight_6').val() == ''){
3746             alert('Please select a drone run band type.');
3747             return;
3748         }
3749         if (jQuery('#drone_run_band_stitched_ortho_image_eight_6').val() == '') {
3750             alert('Please select an image');
3751             return;
3752         }
3753         if (jQuery('#drone_run_band_name_eight_7').val() == ''){
3754             alert('Give a new drone run band name!');
3755             return;
3756         } else if (jQuery('#drone_run_band_description_eight_7').val() == ''){
3757             alert('Please give a drone run band description.');
3758             return;
3759         } else if (jQuery('#drone_run_band_type_eight_7').val() == ''){
3760             alert('Please select a drone run band type.');
3761             return;
3762         }
3763         if (jQuery('#drone_run_band_stitched_ortho_image_eight_7').val() == '') {
3764             alert('Please select an image');
3765             return;
3766         }
3767         if (jQuery('#drone_run_band_name_eight_8').val() == ''){
3768             alert('Give a new drone run band name!');
3769             return;
3770         } else if (jQuery('#drone_run_band_description_eight_8').val() == ''){
3771             alert('Please give a drone run band description.');
3772             return;
3773         } else if (jQuery('#drone_run_band_type_eight_8').val() == ''){
3774             alert('Please select a drone run band type.');
3775             return;
3776         }
3777         if (jQuery('#drone_run_band_stitched_ortho_image_eight_8').val() == '') {
3778             alert('Please select an image');
3779             return;
3780         }
3782         Workflow.complete('#upload_drone_imagery_select_images_eight');
3783         Workflow.focus('#drone_imagery_upload_workflow_eight_band', 1);
3784         return false;
3785     });
3787     jQuery('#upload_drone_imagery_select_images_odm').click(function(e){
3788         e.preventDefault();
3789         if (jQuery('#upload_drone_images_zipfile_odm').val() == ''){
3790             alert('Please select a zipfile of images');
3791             return;
3792         }
3794         var file_input = document.getElementById('upload_drone_images_zipfile_odm');
3795         if (!file_input.files[0] || file_input.files.length > 1) {
3796             alert('Please select only a single zipfile.');
3797             return;
3798         }
3800         Workflow.complete('#upload_drone_imagery_select_images_odm');
3801         Workflow.focus('#drone_imagery_upload_workflow_odm', 1);
3802         return false;
3803     });
3805     jQuery('#upload_drone_imagery_select_images_odm_micasense').click(function(e){
3806         e.preventDefault();
3807         if (jQuery('#upload_drone_images_zipfile_odm_micasense').val() == ''){
3808             alert('Please select a zipfile of images');
3809             return;
3810         }
3812         var file_input = document.getElementById('upload_drone_images_zipfile_odm_micasense');
3813         if (!file_input.files[0] || file_input.files.length > 1) {
3814             alert('Please select only a single zipfile.');
3815             return;
3816         }
3818         if (jQuery('#upload_drone_images_panel_zipfile_odm_micasense').val() == ''){
3819             alert('Please select a zipfile of Micasense radiocalibration panel images');
3820             return;
3821         }
3823         Workflow.complete('#upload_drone_imagery_select_images_odm_micasense');
3824         Workflow.focus('#drone_imagery_upload_workflow_odm_micasense', 1);
3825         return false;
3826     });
3828     jQuery('#upload_drone_imagery_odm_form').submit(function() {
3829         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3830         jQuery('#working_modal').modal('show');
3831         return true;
3832     });
3834     jQuery('#upload_drone_imagery_odm_micasense_form').submit(function() {
3835         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3836         jQuery('#working_modal').modal('show');
3837         return true;
3838     });
3840     jQuery('#upload_drone_imagery_bulk_previous_form').submit(function() {
3841         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3842         jQuery('#working_modal').modal('show');
3843         return true;
3844     });
3846     jQuery('#upload_drone_imagery_bulk_form').submit(function() {
3847         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3848         jQuery('#working_modal').modal('show');
3849         return true;
3850     });
3852     jQuery('#upload_drone_imagery_one_band_form').submit(function() {
3853         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3854         jQuery('#working_modal').modal('show');
3855         return true;
3856     });
3858     jQuery('#upload_drone_imagery_two_band_form').submit(function() {
3859         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3860         jQuery('#working_modal').modal('show');
3861         return true;
3862     });
3864     jQuery('#upload_drone_imagery_three_band_form').submit(function() {
3865         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3866         jQuery('#working_modal').modal('show');
3867         return true;
3868     });
3870     jQuery('#upload_drone_imagery_four_band_form').submit(function() {
3871         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3872         jQuery('#working_modal').modal('show');
3873         return true;
3874     });
3876     jQuery('#upload_drone_imagery_five_band_form').submit(function() {
3877         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3878         jQuery('#working_modal').modal('show');
3879         return true;
3880     });
3882     jQuery('#upload_drone_imagery_six_band_form').submit(function() {
3883         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3884         jQuery('#working_modal').modal('show');
3885         return true;
3886     });
3888     jQuery('#upload_drone_imagery_seven_band_form').submit(function() {
3889         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3890         jQuery('#working_modal').modal('show');
3891         return true;
3892     });
3894     jQuery('#upload_drone_imagery_eight_band_form').submit(function() {
3895         jQuery('#working_msg').html('This can potentially take time to complete. Ensure the file(s) have completely transferred to the server before closing this tab.');
3896         jQuery('#working_modal').modal('show');
3897         return true;
3898     });
3900     // Now handled non-AJAX to get around 2GB file limit
3902     // jQuery('#upload_drone_imagery_submit').click(function(){
3903     //    upload_drone_imagery_form();
3904     // });
3906     // function upload_drone_imagery_form() {
3907     //    jQuery('#upload_drone_imagery_form').submit(function(e) {
3908     //        jQuery(':disabled').each(function(e) {
3909     //            jQuery(this).removeAttr('disabled');
3910     //        })
3911     //    });
3912     //    jQuery('#upload_drone_imagery_form').attr("action", "/api/drone_imagery/upload_drone_imagery");
3913     //    jQuery("#upload_drone_imagery_form").submit();
3914     // }
3916     // jQuery('#upload_drone_imagery_form').iframePostForm({
3917     //    json: true,
3918     //    post: function () {
3919     //        jQuery('#working_modal').modal("show");
3920     //        if (drone_run_band_unstitched == 'yes_open_data_map_stitch' && new_drone_run_band_stitching_odm_more_images == 'No') {
3921     //            jQuery('#working_msg').html("It can take a very long time to assemble the orthophotomosaic depending on the number of images uploaded. Times range from 15 minutes to 6 hours depending on the number of images, not including upload time.");
3922     //        }
3923     //    },
3924     //    complete: function (response) {
3925     //        console.log(response);
3926     //        jQuery('#working_msg').html("");
3927     //
3928     //        jQuery('#working_modal').modal("hide");
3929     //        if (response.error) {
3930     //            jQuery('#drone_run_id').val(response.drone_run_project_id);
3931     //            jQuery('#drone_image_upload_drone_run_band_stitching_odm_image_count').val(response.current_image_count);
3932     //            alert(response.error);
3933     //            return;
3934     //        }
3935     //        if (drone_run_band_unstitched == 'no' || (drone_run_band_unstitched == 'yes_open_data_map_stitch' && new_drone_run_band_stitching_odm_more_images == 'No')) {
3936     //            location.reload();
3937     //        }
3938     //        else if (drone_run_band_unstitched == 'yes_open_data_map_stitch' && new_drone_run_band_stitching_odm_more_images == 'Yes') {
3939     //            jQuery('#drone_run_id').val(response.drone_run_project_id);
3940     //            jQuery('#drone_image_upload_drone_run_band_stitching_odm_image_count').val(response.current_image_count);
3941     //
3942     //            alert('Select another zip file and submit! If this is your last file to upload, make sure to change the select to No.');
3943     //            return;
3944     //        }
3945     //    }
3946     // });
3950 </script>