<?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 sphere for WRF data in Lambert Conformal Conic? in Coordinate Reference Systems Questions</title>
    <link>https://community.esri.com/t5/coordinate-reference-systems-questions/sphere-for-wrf-data-in-lambert-conformal-conic/m-p/823486#M1058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have some WRF model output data in NetCDF format, and I&amp;nbsp;would appreciate any guidance on projecting it from anyone with experience with&amp;nbsp;data from this model. (WRF = Weather Research Forecasting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These WRF runs use a Lambert Conformal Conic projection with a center of -121, standard parallels of 30 &amp;amp; 60 degrees North, and a latitude of origin of 45 degrees North. I think I have that figured out, but my data will be off if I don't use the right sphere/spheroid. My understanding is that WRF uses a sphere of 6370 KM with no flattening. Does this look right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PROJCS["WRF_LCC_PacificNW",
&amp;nbsp;&amp;nbsp;&amp;nbsp; GEOGCS["WRF_Sphere_6370km",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATUM["&amp;lt;custom&amp;gt;",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPHEROID["&amp;lt;custom&amp;gt;",6370000.0,0.0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMEM["Greenwich",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT["Degree",0.0174532925199433]
&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PROJECTION["Lambert_Conformal_Conic"],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["False_Easting",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["False_Northing",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Central_Meridian",-121.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Standard_Parallel_1",30.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Standard_Parallel_2",60.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Scale_Factor",1.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Latitude_Of_Origin",45.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT["Meter",1.0]
]
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is right (or if I need to adjust it), then I should be all set. I would appreciate any feedback I can get from anyone with experience in this. Based on slide 20 of &lt;A href="https://ral.ucar.edu/sites/default/files/public/7_WRFHydroGISPreprocessingTool_October2017.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;this presentation&lt;/A&gt;, it looks right, but I'd appreciate as much help as I can get!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said,&amp;nbsp;my process to bring these into ArcGIS is not for analysis is not straightforward at all, and I'd appreciate any suggestions to improve it. Here is how I do it:&amp;nbsp;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;Use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Make NetCDF Raster Layer&lt;/SPAN&gt; to import to an in-memory raster and save to a GeoTIF.&lt;/LI&gt;&lt;LI&gt;The GeoTIF has headers for the coordinate system, but it comes in as pixel coordinate space with no registration. Unfortunately, the Esri Define Projection did not work on this. I saw several other people griping about this in this forum.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;gdal_translate.exe -co PROFILE=BASELINE&lt;/SPAN&gt; to strip out the file's coordinate system headers in the GeoTIF.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I pre-generate a TFW and copy it to &amp;lt;filename&amp;gt;.tfw in the folder where &amp;lt;filename&amp;gt;.tif lives. (I do this for each time slice in the NetCDF that I export.) The NetCDF gives me the lower left, and I need the upper left in the TFW, so some basic math is needed with the cell size and number of rows.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Define Projection&lt;/SPAN&gt; to&amp;nbsp;put it into the right coordinate system. It works now that there are no GeoTIF headers and a TFW file exists.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this in Python and it's automated. It doesn't take long, but YUCK! It seems like a lot of steps to&amp;nbsp;get the data into the right coordinate system, especially considering that it came from a file where the coordinate system is well-defined, albeit in a different format. After this, I do some resampling, averaging, and export to polygons, so I feel like TIFs are a good intermediate format, but there is clearly room for improvement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:47:21 GMT</pubDate>
    <dc:creator>DavidAskov1</dc:creator>
    <dc:date>2021-12-12T09:47:21Z</dc:date>
    <item>
      <title>sphere for WRF data in Lambert Conformal Conic?</title>
      <link>https://community.esri.com/t5/coordinate-reference-systems-questions/sphere-for-wrf-data-in-lambert-conformal-conic/m-p/823486#M1058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have some WRF model output data in NetCDF format, and I&amp;nbsp;would appreciate any guidance on projecting it from anyone with experience with&amp;nbsp;data from this model. (WRF = Weather Research Forecasting)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These WRF runs use a Lambert Conformal Conic projection with a center of -121, standard parallels of 30 &amp;amp; 60 degrees North, and a latitude of origin of 45 degrees North. I think I have that figured out, but my data will be off if I don't use the right sphere/spheroid. My understanding is that WRF uses a sphere of 6370 KM with no flattening. Does this look right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;PROJCS["WRF_LCC_PacificNW",
&amp;nbsp;&amp;nbsp;&amp;nbsp; GEOGCS["WRF_Sphere_6370km",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATUM["&amp;lt;custom&amp;gt;",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPHEROID["&amp;lt;custom&amp;gt;",6370000.0,0.0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRIMEM["Greenwich",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT["Degree",0.0174532925199433]
&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PROJECTION["Lambert_Conformal_Conic"],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["False_Easting",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["False_Northing",0.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Central_Meridian",-121.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Standard_Parallel_1",30.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Standard_Parallel_2",60.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Scale_Factor",1.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; PARAMETER["Latitude_Of_Origin",45.0],
&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT["Meter",1.0]
]
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is right (or if I need to adjust it), then I should be all set. I would appreciate any feedback I can get from anyone with experience in this. Based on slide 20 of &lt;A href="https://ral.ucar.edu/sites/default/files/public/7_WRFHydroGISPreprocessingTool_October2017.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;this presentation&lt;/A&gt;, it looks right, but I'd appreciate as much help as I can get!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said,&amp;nbsp;my process to bring these into ArcGIS is not for analysis is not straightforward at all, and I'd appreciate any suggestions to improve it. Here is how I do it:&amp;nbsp;&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI&gt;Use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Make NetCDF Raster Layer&lt;/SPAN&gt; to import to an in-memory raster and save to a GeoTIF.&lt;/LI&gt;&lt;LI&gt;The GeoTIF has headers for the coordinate system, but it comes in as pixel coordinate space with no registration. Unfortunately, the Esri Define Projection did not work on this. I saw several other people griping about this in this forum.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;gdal_translate.exe -co PROFILE=BASELINE&lt;/SPAN&gt; to strip out the file's coordinate system headers in the GeoTIF.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I pre-generate a TFW and copy it to &amp;lt;filename&amp;gt;.tfw in the folder where &amp;lt;filename&amp;gt;.tif lives. (I do this for each time slice in the NetCDF that I export.) The NetCDF gives me the lower left, and I need the upper left in the TFW, so some basic math is needed with the cell size and number of rows.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Define Projection&lt;/SPAN&gt; to&amp;nbsp;put it into the right coordinate system. It works now that there are no GeoTIF headers and a TFW file exists.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing this in Python and it's automated. It doesn't take long, but YUCK! It seems like a lot of steps to&amp;nbsp;get the data into the right coordinate system, especially considering that it came from a file where the coordinate system is well-defined, albeit in a different format. After this, I do some resampling, averaging, and export to polygons, so I feel like TIFs are a good intermediate format, but there is clearly room for improvement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/coordinate-reference-systems-questions/sphere-for-wrf-data-in-lambert-conformal-conic/m-p/823486#M1058</guid>
      <dc:creator>DavidAskov1</dc:creator>
      <dc:date>2021-12-12T09:47:21Z</dc:date>
    </item>
  </channel>
</rss>

