# Error in Spatial-Allocator

**URL:** <https://forum.cmascenter.org/t/error-in-spatial-allocator/1309>\
**Category:** Spatial Allocator\
**Created:** [February 16, 2020, 11:43am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309 "2020-02-16T11:43:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [February 16, 2020, 11:43am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/1 "2020-02-16T11:43:49Z")

</div>

Hi, all!  
I tried to run srgcreate.exe(64bits) program to get surrogate file.  
But I got this error message.

**ERROR in /home/phy/Spatial-Allocator/bin/64bits/srgcreate.exe: Error in projectionPointInt: p.u=HUGE\_VAL. Exiting…**  
**0.001u 0.001s 0:00.00 0.0% 0+0k 0+0io 0pf+0w**  
**Error generating surrogate for category 100**

I haven’t solve this problem yet. I think this is associated with GRIDDESC or emission inventory boundary .shp file.

If you meet this error message or not, please reply your opinion.

Thank you!!

---

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [February 17, 2020, 8:54am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/2 "2020-02-17T08:54:26Z")

</div>

@bbaek If you have free time, please look at this problem! And Thank you!!!

---

<div class="post-metadata">

**Author:** ![dyang](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dyang](https://forum.cmascenter.org/u/dyang)\
**Post date:** [February 18, 2020, 1:25am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/3 "2020-02-18T01:25:04Z")

</div>

Please double check your GRIDDESC file and run scripts related with projection. Or send these two files to us.

---

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [February 20, 2020, 1:12pm UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/5 "2020-02-20T13:12:24Z")

</div>

Thank you for your reply! I sent my input files and scripts to @bbaek ! Because I didn’t know who to send my files so I sent my files to person whose email address is known on the CMAS website. Sorry and thank you for your help!

---

<div class="post-metadata">

**Author:** ![bbaek](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/bbaek/32/22_2.png) [@bbaek](https://forum.cmascenter.org/u/bbaek)\
**Post date:** [February 20, 2020, 2:24pm UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/6 "2020-02-20T14:24:44Z")

</div>

@phy. I got the email from you but we can not run the case on our end at this moment. Can you send us the log file with that error message you shared? We need to see more than the error message.

---

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [February 20, 2020, 2:52pm UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/8 "2020-02-20T14:52:23Z")

</div>

Hi!  
Thank you for your help about my problem!  
I got you email, and I sent you my replying email!  
I would really appreciate it if you could confirm!

---

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [February 24, 2020, 2:25pm UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/9 "2020-02-24T14:25:28Z")

</div>

Hi!  
I sent my data and email to you a few days ago…!  
So I have a favor for you…!  
If you find any problems in my data, please let me know that problem and I would be grateful to you!

---

<div class="post-metadata">

**Author:** ![farzad-faghihi](https://avatars.discourse-cdn.com/v4/letter/f/e0b2c6/32.png) [@farzad-faghihi](https://forum.cmascenter.org/u/farzad-faghihi)\
**Post date:** [July 31, 2021, 8:54am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/10 "2021-07-31T08:54:44Z")

</div>

Hi.  
I have the same error `Error in projectionPointInt: p.u=HUGE_VAL. Exiting...`  
How did you solve it ?  
Thanks.  
[srg\_grid.txt](https://forum.cmascenter.org/uploads/short-url/nw81lc4bAU8PQvtox6ureOsUDoS.txt) (4.5 KB)  
This is my log file.  
@bbaek  
@phy

---

<div class="post-metadata">

**Author:** ![phy](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@phy](https://forum.cmascenter.org/u/phy)\
**Post date:** [August 12, 2021, 5:27am UTC](https://forum.cmascenter.org/t/error-in-spatial-allocator/1309/12 "2021-08-12T05:27:29Z")

</div>

Hi,  
I’m so sorry for being late.

In my case, I didn’t type all variables about shapefile, so, I got that problem.  
Then, I tried typing all variables about my shapefile like below,

setenv DATA\_FILE\_MAP\_PRJN “+proj=tmerc,+lat\_0=38.0,+lon\_0=127.5,+k=0.9996,+x\_0=1000000.0,+y\_0=2000000.0”

setenv WEIGHT\_FILE\_MAP\_PRJN “+proj=tmerc,+lat\_0=38.0,+lon\_0=127.0,+k=1.0,+x\_0=200000.0,+y\_0=500000.0”

and it worked well.

I hope that my solution would be helpful to you.

Best,  
HyeonYeong Park
