<?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: Modelbuilder Workspaces: Defaults to a folder, would like it to be a geodatabase in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775536#M3224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't suggesting using the environment, I was suggesting setting the name of the intermediate raster in your model to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;%scratchGDB%\tempRaster&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the current scratch workspace is a folder, a file gdb names "scratch.gdb" will be created in that folder.&amp;nbsp; Otherwise it will just use the current workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Nov 2014 06:31:43 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-11-08T06:31:43Z</dc:date>
    <item>
      <title>Modelbuilder Workspaces: Defaults to a folder, would like it to be a geodatabase</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775533#M3221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having an issue with modelbuilder workspaces. I have created a simple model to clip a raster, run focal statistics on it, and create contours. I have a workspace variable as an input. If I run the tool with a folder as a workspace, it works just fine. (Overall model is attached as "Overview")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, If I run it with a geodatabase workspace, I get an error (see "Error" attachment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what is causing the error. Within the Contour tool in modelbuilder, the output is set to add the ".shp" suffix (see "Contour Tool" attachment below). When I try to delete the ".shp", it automatically populates it in the output once I click apply or ok. I assume modelbuilder defaults a workspace to be a folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have two workarounds-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I can use a folder workspace. I'd prefer to run this tool in a geodatabase because rasters take up less space and perform much better in a .gdb. This is especially useful if a bigger area is being processed.&lt;/LI&gt;&lt;LI&gt;I can pre-populate the Workspace variable with a dummy geodatabase and have that be the default input. When I do this, I am able to delete the .shp suffix in the Contour tool, and it will run. In a perfect world, I would just rather have it blank for the user. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I suppose I'm wondering if it's possible to leave the workspace area blank, and use a geodatabase as a workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775533#M3221</guid>
      <dc:creator>SeanO_Brien</dc:creator>
      <dc:date>2014-10-14T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder Workspaces: Defaults to a folder, would like it to be a geodatabase</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775534#M3222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a built-in model builder variable: %scratchFolder% and %scratchGDB%. These are set up to allow you to force the use of a folder or geodatabase for intermediate datasets, whether the current workspace is a folder or GDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it is that obvious that file GDBs being the best place to store rasters. I think it really varies a lot depending on the tool being used and how big the dataset is. Temporary rasters created using arcpy map algebra are always stored as grids (in the scratchFolder!). Personally I usually set the scratch and current workspace to a folder, but of course do whatever works with your processing flow. This way when I do an arcpy &amp;lt;raster&amp;gt;.save() all it has to do is rename the raster, not copying it (important if it's a big raster!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Scratch_Folder/001w00000046000000/"&gt;ArcGIS 10.2 Help: ScratchFolder, ScratchGDB&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 04:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775534#M3222</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-31T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder Workspaces: Defaults to a folder, would like it to be a geodatabase</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775535#M3223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After playing around with it, it doesn't seem like I can override the location of the scratch geodatabase in my user folder. Even if I specify it in the tool dialog box, or alter the tool environment properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a good point about rasters in the scratch folder. However, saving storage space is a big deal for me. GDBs are just so much better when working with rasters that are multiple GBs large (as much as 70% smaller for me). It's also nice to not have a restriction on name length, which is useful when running an iterator that takes the name of the input and adds to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 16:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775535#M3223</guid>
      <dc:creator>SeanO_Brien</dc:creator>
      <dc:date>2014-10-31T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder Workspaces: Defaults to a folder, would like it to be a geodatabase</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775536#M3224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't suggesting using the environment, I was suggesting setting the name of the intermediate raster in your model to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;%scratchGDB%\tempRaster&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the current scratch workspace is a folder, a file gdb names "scratch.gdb" will be created in that folder.&amp;nbsp; Otherwise it will just use the current workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2014 06:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-workspaces-defaults-to-a-folder-would/m-p/775536#M3224</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-11-08T06:31:43Z</dc:date>
    </item>
  </channel>
</rss>

