<div dir="ltr"><div><div>Greetings,<br><br></div>I am trying to select band 1 and then use gdal_merge to merge two tiff files in an AWS bucket.<br></div>Getting odd errors.<br><br>gdal_merge.py -o /vsis3/summer-outputs/3_dataupdated/rcp26-2020-coastal_flood-NA-false.tif /vsis3/summer-outputs/3_data_ready_for_spectra/coastal-undefended-rcp26-2020.tif /vsis3/summer-outputs/5_UK_prod_rasters/coastal-undefended-rcp26-2020.tif -of GTiff -co -b 1 -co CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE=YES -co NUM_THREADS=ALL_CPUS --config AWS_ACCESS_KEY_ID KEY_ID --config AWS_SECRET_ACCESS_KEY ACCESS_KEY<br><br>ERRORS<br> `1' not recognized as a supported file format. << band 1<br>Warning 6: creation option '-b' is not formatted with the key=value format << band 1<br>Warning 6: <b>driver GTiff does not support creation option </b>CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE << Get an error if leave this out<br>ERROR 1: <b>w+ not supported for /vsis3, unless</b> CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE is set to YES << Get an error<br>ERROR 4: Attempt to create new tiff file `/vsis3/summer-outputs/3_data_ready/updated/rcp26-2020-coastal_flood-NA-false.tif' failed: <b>Permission denied << </b>added the security key, etc<br><b>Creation failed, terminating gdal_merge.</b><div><div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri;font-size:8pt"> Regards,</span></p><p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri;font-size:8pt"><br></span></p><p style="margin:0cm 0cm 0pt"><span style="font-family:Calibri;font-size:8pt">Clive Swan</span></p>
<p style="margin:0cm 0cm 0pt"><span><font size="3"><font face="Calibri">--</font></font></span></p>
<p style="margin:0cm 0cm 0pt"><br></p></div></div></div></div></div></div></div></div></div></div>