<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270855#M67189</link>
    <description>&lt;P&gt;Apologies! I'm not too often posting scripts...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcpy import env
from arcpy.sa import *#Spatial Analyst module
import os
from datetime import datetime
import subprocess
import glob

arcpy.env.overwriteOutput = True
arcpy.env.matchMultidimensionalVariable = False
arcpy.CheckOutExtension("Spatial")
start_time = datetime.now()

# Divide LPAWC*100 by LAPWC


# get first set of rasters
LPAWC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWCDate.gdb" #'source 1'

arcpy.env.workspace = LPAWC
rasters_LPAWC = arcpy.ListRasters()
rasters_LPAWC = [os.path.join(LPAWC, r) for r in rasters_LPAWC] # necessary for zip, but permits folder2 to get to work...



# get second set of rasters
LPAWFC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWFC.gdb" #'source 2'
arcpy.env.workspace = LPAWFC
rasters_LPAWFC = arcpy.ListRasters()
rasters_LPAWFC = [os.path.join(LPAWFC, rs) for rs in rasters_LPAWFC] # necessary for zip


# folder path2
folder2 = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPWCfinal.gdb"+ "\\"

#loop for multiply by 100 and divide by LPAWC to get percent nFK
for LPAWC_ras, LPAWFC_ras in zip(rasters_LPAWC, rasters_LPAWFC):
    r1 = Raster(LPAWC_ras)
    r2 = Raster(LPAWFC_ras)
    output_raster2 = 100*r1/r2
    out_raster2 =  folder2 + arcpy.Describe(r1).baseName + "_prznFK" #'{}{}'.format(r1,"_prznFK")
    output_raster2.save(out_raster2)
    print("{} Processed Successfully!".format(out_raster2)) 



end_time = datetime.now()
print('Prozessdauer: {}'.format(end_time - start_time))&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 23 Mar 2023 13:38:09 GMT</pubDate>
    <dc:creator>IngoWolff</dc:creator>
    <dc:date>2023-03-23T13:38:09Z</dc:date>
    <item>
      <title>ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270834#M67187</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I want to do a raster calculation as done here:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/332925/looping-through-two-raster-folders-to-perform-raster-calculation" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/332925/looping-through-two-raster-folders-to-perform-raster-calculation&lt;/A&gt;&amp;nbsp; and here: &lt;A href="https://gis.stackexchange.com/questions/333082/looping-through-two-raster-folders-to-perform-raster-calculation-gives-error-000" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/333082/looping-through-two-raster-folders-to-perform-raster-calculation-gives-error-000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is more or less running correctly, but the output is written into the first env.workspace or second env.workspace. I simply cannot get the output rasters into my dedicated output directory.&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;Here my code snipped:&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;from arcpy.sa import *#Spatial Analyst module&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;from datetime import datetime&lt;/P&gt;&lt;P&gt;import subprocess&lt;/P&gt;&lt;P&gt;import glob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;arcpy.env.matchMultidimensionalVariable = False&lt;/P&gt;&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#-----------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Divide LPAWC*100 by LAPWC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# get first set of rasters&lt;/P&gt;&lt;P&gt;LPAWC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWCDate.gdb" #'source 1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = LPAWC&lt;/P&gt;&lt;P&gt;rasters_LPAWC = arcpy.ListRasters()&lt;/P&gt;&lt;P&gt;rasters_LPAWC = [os.path.join(LPAWC, r) for r in rasters_LPAWC] # necessary for zip, but permits folder2 to get to work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# get second set of rasters&lt;/P&gt;&lt;P&gt;LPAWFC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWFC.gdb" #'source 2'&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = LPAWFC&lt;/P&gt;&lt;P&gt;rasters_LPAWFC = arcpy.ListRasters()&lt;/P&gt;&lt;P&gt;rasters_LPAWFC = [os.path.join(LPAWFC, rs) for rs in rasters_LPAWFC] # necessary for zip, but permits folder2 to get to work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# folder path2&lt;/P&gt;&lt;P&gt;folder2 = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPWCfinal.gdb"+ "\\" # not working!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#loop for multiply by 100 and divide by LPAWC to get percent nFK&lt;/P&gt;&lt;P&gt;for LPAWC_ras, LPAWFC_ras in zip(rasters_LPAWC, rasters_LPAWFC):&lt;/P&gt;&lt;P&gt;r1 = Raster(LPAWC_ras)&lt;/P&gt;&lt;P&gt;r2 = Raster(LPAWFC_ras)&lt;/P&gt;&lt;P&gt;output_raster2 = 100*r1/r2&lt;/P&gt;&lt;P&gt;out_raster2 = folder2 + arcpy.Describe(r1).baseName + "_prznFK" #'{}{}'.format(r1,"_prznFK")&lt;/P&gt;&lt;P&gt;output_raster2.save(out_raster2)&lt;/P&gt;&lt;P&gt;print("{} Processed Successfully!".format(out_raster2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ingo&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 12:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270834#M67187</guid>
      <dc:creator>IngoWolff</dc:creator>
      <dc:date>2023-03-23T12:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270848#M67188</link>
      <description>&lt;P&gt;indentation and line numbers would help&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 13:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270848#M67188</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-23T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270855#M67189</link>
      <description>&lt;P&gt;Apologies! I'm not too often posting scripts...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcpy import env
from arcpy.sa import *#Spatial Analyst module
import os
from datetime import datetime
import subprocess
import glob

arcpy.env.overwriteOutput = True
arcpy.env.matchMultidimensionalVariable = False
arcpy.CheckOutExtension("Spatial")
start_time = datetime.now()

# Divide LPAWC*100 by LAPWC


# get first set of rasters
LPAWC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWCDate.gdb" #'source 1'

arcpy.env.workspace = LPAWC
rasters_LPAWC = arcpy.ListRasters()
rasters_LPAWC = [os.path.join(LPAWC, r) for r in rasters_LPAWC] # necessary for zip, but permits folder2 to get to work...



# get second set of rasters
LPAWFC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWFC.gdb" #'source 2'
arcpy.env.workspace = LPAWFC
rasters_LPAWFC = arcpy.ListRasters()
rasters_LPAWFC = [os.path.join(LPAWFC, rs) for rs in rasters_LPAWFC] # necessary for zip


# folder path2
folder2 = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPWCfinal.gdb"+ "\\"

#loop for multiply by 100 and divide by LPAWC to get percent nFK
for LPAWC_ras, LPAWFC_ras in zip(rasters_LPAWC, rasters_LPAWFC):
    r1 = Raster(LPAWC_ras)
    r2 = Raster(LPAWFC_ras)
    output_raster2 = 100*r1/r2
    out_raster2 =  folder2 + arcpy.Describe(r1).baseName + "_prznFK" #'{}{}'.format(r1,"_prznFK")
    output_raster2.save(out_raster2)
    print("{} Processed Successfully!".format(out_raster2)) 



end_time = datetime.now()
print('Prozessdauer: {}'.format(end_time - start_time))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 13:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270855#M67189</guid>
      <dc:creator>IngoWolff</dc:creator>
      <dc:date>2023-03-23T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270866#M67190</link>
      <description>&lt;P&gt;between line 41 and 42, try throwing in a print statement to print to make sure the preferred outputs are correct&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270866#M67190</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-23T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270874#M67192</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;ok, the print statement gives the correct output workspace ans anticipated rastername...but only if i comment the .save - command from line 42 (then 43) out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Ingo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270874#M67192</guid>
      <dc:creator>IngoWolff</dc:creator>
      <dc:date>2023-03-23T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270998#M67196</link>
      <description>&lt;P&gt;Can you share the output of your prints?&amp;nbsp; I think it may be something to do with the raw strings then how you're concatenating them, it misreads the string and puts it into the workspace, I much prefer to use os.path.join&lt;BR /&gt;&lt;BR /&gt;perhaps try&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/clearenvironment.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/clearenvironment.htm&lt;/A&gt;&amp;nbsp;and see if it fails with a helpful message when trying to write to that location.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1270998#M67196</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-03-23T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271362#M67207</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;cheers for tipping me to&lt;/P&gt;&lt;P&gt;arcpy.ClearEnvironment("my_workspace")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it es not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Running script: "K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\Zentrale_Scripte\NFK_mGROWA.py"
Traceback (most recent call last):
  File "K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\Zentrale_Scripte\NFK_mGROWA.py", line 163, in &amp;lt;module&amp;gt;
    arcpy.ClearEnvironment(LPAWC)
  File "C:\Program Files\ESRI\ArcGISPro\Resources\ArcPy\arcpy\__init__.py", line 275, in ClearEnvironment
    return gp.clearEnvironment(environment_name)
  File "C:\Program Files\ESRI\ArcGISPro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 126, in clearEnvironment
    self._gp.ClearEnvironment(*gp_fixargs(args, True)))
AttributeError: Object: Cannot clear environment &amp;lt;K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWCDate.gdb&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just added the command for bothe einvironment workspace below my output directory "folder2".&lt;/P&gt;&lt;P&gt;When I comment both "ClearEnvironment" commands out, the cript says&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Running script: "K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\Zentrale_Scripte\NFK_mGROWA.py"
Traceback (most recent call last):
  File "K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\Zentrale_Scripte\NFK_mGROWA.py", line 172, in &amp;lt;module&amp;gt;
    output_raster2.save(out_raster2)
RuntimeError: ERROR 000875: Output raster: Der Workspace von K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPWCfinal.gdb\L1pawc20230222_prznFK ist ein ungültiger Ausgabe-Workspace.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the output-wokspace is not valid (I have no clue why ths error message comes in German...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ingo&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271362#M67207</guid>
      <dc:creator>IngoWolff</dc:creator>
      <dc:date>2023-03-24T14:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271366#M67208</link>
      <description>&lt;P&gt;It's in German as its more efficient.&lt;/P&gt;&lt;P&gt;I think you just want to clear the workspace environment like the sample, try it exactly as below:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.ClearEnvironment("workspace")

# prints None
print(arcpy.env.workspace)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271366#M67208</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-03-24T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271399#M67209</link>
      <description>&lt;P&gt;Is there any way you can try the process in a simpler folder without spaces and not beginning with numbers?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 15:51:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271399#M67209</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-24T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000875: I cannot get my raster into the dedicated output workspace while using ZIP- loop</title>
      <link>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271811#M67225</link>
      <description>&lt;P&gt;Ok, cheers for the advice with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.ClearEnvironment("workspace")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seemed not working though, until I just created a new output path! It sometimes is so odd, why some output .gdbs are easily accepted within ArcCatalog, but not in a stand alone script!&lt;/P&gt;&lt;P&gt;However, this is my script now working, despite long path names which I need for my working routine...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcpy import env
from arcpy.sa import *#Spatial Analyst module
import os
from datetime import datetime
import subprocess
import glob

arcpy.env.overwriteOutput = True
arcpy.env.matchMultidimensionalVariable = False
arcpy.CheckOutExtension("Spatial")
start_time = datetime.now()

#-----------------------------

# Divide LPAWC*100 by LAPWC


# get first set of rasters
LPAWC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWCDate.gdb" #'source 1'

arcpy.env.workspace = LPAWC
rasters_LPAWC = arcpy.ListRasters()
rasters_LPAWC = [os.path.join(LPAWC, r) for r in rasters_LPAWC] # necessary for zip, but permits folder2 to get to work...
arcpy.ClearEnvironment("workspace")
# prints None
print(arcpy.env.workspace)

# get second set of rasters
LPAWFC = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPAWFC.gdb" #'source 2'
arcpy.env.workspace = LPAWFC
rasters_LPAWFC = arcpy.ListRasters()
rasters_LPAWFC = [os.path.join(LPAWFC, rs) for rs in rasters_LPAWFC] # necessary for zip
arcpy.ClearEnvironment("workspace")
# prints None
print(arcpy.env.workspace)



# folder path
folder2 = r"K:\6202_Klimawandel_Folgen_Anpassung\620203_Werkbank\mGROWA\WHM_Klimaatlas_Neuentwicklungen\LPWC_nfk.gdb" + "\\"


#loop for multiply by 100 and divide by LPAWC to get percent nFK
for LPAWC_ras, LPAWFC_ras in zip(rasters_LPAWC, rasters_LPAWFC):
    r1 = Raster(LPAWC_ras)
    r2 = Raster(LPAWFC_ras)
    output_raster2 = 100*r1/r2
    out_raster2 =  folder2 + arcpy.Describe(r1).baseName + "_prznFK"
    output_raster2.save(out_raster2)
    print("{} Processed Successfully!".format(out_raster2))


end_time = datetime.now()
print('Prozessdauer: {}'.format(end_time - start_time))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Ingo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. German and efficiency is like oil and water, seriously!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000875-i-cannot-get-my-raster-into-the/m-p/1271811#M67225</guid>
      <dc:creator>IngoWolff</dc:creator>
      <dc:date>2023-03-27T07:38:10Z</dc:date>
    </item>
  </channel>
</rss>

