# Empty US surrogates using SurrogateToolsDBz

**URL:** <https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035>\
**Category:** Spatial Allocator\
**Created:** [March 29, 2023, 7:32pm UTC](https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035 "2023-03-29T19:32:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fazargoshasbi](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@fazargoshasbi](https://forum.cmascenter.org/u/fazargoshasbi)\
**Post date:** [March 29, 2023, 7:32pm UTC](https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035/1 "2023-03-29T19:32:27Z")

</div>

Hi. I am trying to run SurrogateToolsDB for my second WRF domain (D02). The domain contains part of the US.

I successfully run the quickstart. However, when I wanted to apply the same methodology to my domain, it generates empty surrogates. I think the issue is related to the projection.

Here is my create\_900300.sql, which is creating the projection file

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2a40f7d1d4bba1d986d6dd1f0ef5246d2cf1d2b8.png)

Here is my GRIDDESC  
’ ’  
‘LamCon-UTSTAND’  
2 44.450 45.450 -118.000 -118.000 47.000  
’ ’  
‘bc\_d02’  
‘LamCon-UTSTAND’ -558000.000 -18000.000 9000.000 9000.000 61 64 1  
’ ’

Could anyone help on this?

Thanks in advance,  
Forood

---

<div class="post-metadata">

**Author:** ![cseppan](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cseppan](https://forum.cmascenter.org/u/cseppan)\
**Post date:** [April 4, 2023, 5:37pm UTC](https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035/2 "2023-04-04T17:37:44Z")

</div>

After you created your new projection, what steps did you take to generate the surrogates? Right now, the SurrogateToolsDB scripts don’t have particularly convenient ways to swap the projection so you basically have to run things from scratch.

When the shapefiles are loaded in, part of the processing is to convert the geometries to the target projection. The target projection is specified in the load\_shapefile\_reproject\_multi.quickstart.csh script in the line

set srid=900921

You’ll also need to update the generate\_modeling\_grid.sh script to load in your grid details. Unfortunately, this isn’t yet integrated with the GRIDDESC file.

---

<div class="post-metadata">

**Author:** ![fazargoshasbi](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@fazargoshasbi](https://forum.cmascenter.org/u/fazargoshasbi)\
**Post date:** [April 6, 2023, 5:06pm UTC](https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035/3 "2023-04-06T17:06:27Z")

</div>

Thanks cseppan,

I reloaded every shapefiles with the new srid code (900300). Then, I generated the modeling grid using the information I had in GRIDDESC. Also, in the control variable namelist file, I changed the srid code. Is there any other steps which I should follow?

---

<div class="post-metadata">

**Author:** ![cseppan](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@cseppan](https://forum.cmascenter.org/u/cseppan)\
**Post date:** [May 2, 2023, 4:46am UTC](https://forum.cmascenter.org/t/empty-us-surrogates-using-surrogatetoolsdbz/4035/4 "2023-05-02T04:46:10Z")

</div>

Next steps would be to review the log files to check for any errors. You can also check the tables that have been created in the database to confirm that the geometry fields have been converted to your new projection.
