# EPIC Site Information Generation Tool

**URL:** <https://forum.cmascenter.org/t/epic-site-information-generation-tool/1588>\
**Category:** Spatial Allocator\
**Created:** [June 19, 2020, 6:00pm UTC](https://forum.cmascenter.org/t/epic-site-information-generation-tool/1588 "2020-06-19T18:00:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ll70](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@ll70](https://forum.cmascenter.org/u/ll70)\
**Post date:** [June 19, 2020, 6:00pm UTC](https://forum.cmascenter.org/t/epic-site-information-generation-tool/1588/1 "2020-06-19T18:00:27Z")

</div>

I have one question about the EPIC Site Information Generation Tool. For the BELD4 file for the domain (beld4\_cmaq12km\_2006.nc), is it packaged in the database of Spatial Allocator or I need to generate that using landuseTool\_WRFCMAQ\_BELD4.csh? I try to find this file in data folder of Spatial Allocator and also FEST-C data but I didn’t find that. Could you offer more information?  
Also, can I use the NLCD 2011 (2016 edition, the new version) to generate the files using Spatial Allocator for FESTC since the NLCD website only offers the new edition data, not the 2011 edition (I couldn’t find a place to download the old version of NLCD 2011)?  
Any feedback you can give would be greatly appreciated.  
Thanks.

---

<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:** [June 23, 2020, 2:16am UTC](https://forum.cmascenter.org/t/epic-site-information-generation-tool/1588/2 "2020-06-23T02:16:10Z")

</div>

I don’t think that beld4\_cmaq12km\_2006.nc is packed in Spatial Allocator package.  
In festc, this file can be created under a scenario you created ( based on your research domain ) in festc interface.  
If you already downloaded 2011 NLCD and MODIS data, you can use them to create the \*nc file, doesn’t matter 2016 version or older version. The utility in festc interface is the first one "BELD4 Data Generation. " The program used is: $SA\_HOME/bin/64bits/computeGridLandUse\_beld4.exe

---

<div class="post-metadata">

**Author:** ![ll70](https://avatars.discourse-cdn.com/v4/letter/l/d07c76/32.png) [@ll70](https://forum.cmascenter.org/u/ll70)\
**Post date:** [June 23, 2020, 6:25pm UTC](https://forum.cmascenter.org/t/epic-site-information-generation-tool/1588/3 "2020-06-23T18:25:02Z")

</div>

Thank you for your answer. I have already downloaded 2011 NLCD and MODISv6 data for creating the beld4 NC file for the CONUS domain and used them to run computeGridLandUse\_beld4.exe. However, I got some problem (I also see some people posted a similar question before but without any solution after that):

Projecting Shapefile…  
Projecting 12US1.shp to +proj=aea +lat\_1=29.5 +lat\_2=45.5 +lat\_0=23 +lon\_0=-96 +x\_0=0 +y\_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no\_defs and stored it in a temp file: tmp62Input file size is 161190, 104424  
ERROR 3: Failed to write scanline 7743 to file.

ERROR 1: An error occured while writing a dirty block  
ERROR 4: Unable to open tmp1093988704\_img.bil to obtain file list.  
0…6063271\_prj.shp  
/home/ll70/models/Spatial-Allocator/src/libs/gdal-2.0.2/local/bin/ogr2ogr -t\_srs "+proj=aea +lat\_1=29.5 +lat\_2=45.5 +lat\_0=23 +lon\_0=-96 +x\_0=0 +y\_0=0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no\_defs " tmp626063271\_prj.shp 12US1.shp  
Completed in projecting the shapefile.

Rasterizing projected Shapefile…  
Rasterized grid Shapefile is stored in file: tmp1093988704\_img.bil  
/home/ll70/models/Spatial-Allocator/src/libs/gdal-2.0.2/local/bin/gdal\_translate -ot UInt32 -a\_ullr -2651655.000000 3745995.000000 2916795.000000 136185.000000 -scale 0 255 0 0 -outsize 185615 120327 -of EHdr /projects/dsc1/ll70/model/Spatial-Allocator/data/sat/NLCD2011/NLCD\_2011\_Land\_Cover\_L48\_20190424.img tmp1093988704\_img.bil  
Error in system call: /home/ll70/models/Spatial-Allocator/src/libs/gdal-2.0.2/local/bin/gdal\_translate -ot UInt32 -a\_ullr -2651655.000000 3745995.000000 2916795.000000 136185.000000 -scale 0 255 0 0 -outsize 185615 120327 -of EHdr /projects/dsc1/ll70/model/Spatial-Allocator/data/sat/NLCD2011/NLCD\_2011\_Land\_Cover\_L48\_20190424.img tmp1093988704\_img.bil

I have no idea about the reason for this problem. Could you give some suggestion to solve this problem?  
Any feedback you can give me would be greatly appreciated.

Thanks,  
Lina
