# What's the maskdata's format?

**URL:** <https://forum.cmascenter.org/t/whats-the-maskdatas-format/2919>\
**Category:** Run Time Errors and Issues\
**Tags:** cmaq\
**Created:** [December 19, 2021, 4:56am UTC](https://forum.cmascenter.org/t/whats-the-maskdatas-format/2919 "2021-12-19T04:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [December 23, 2021, 3:53pm UTC](https://forum.cmascenter.org/t/whats-the-maskdatas-format/2919/3 "2021-12-23T15:53:28Z")

</div>

It seems that your question in this new thread is related to [this other thread you started](https://forum.cmascenter.org/t/how-to-make-isam-regions-file/2877/10) in which @cjcoats provided feedback on using `m3merge` to create mask files for use by CMAQ ISAM.

The mask file(s) used by CMAQ ISAM are described in a section of [Appendix B of the User’s guide](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/Appendix/CMAQ_UG_appendixB_emissions_control.md#b4-applying-masks-for-spatial-dependence). Specifically, they are I/O API-style netCDF files that “contain a separate variable for each spatial region of interest. Each variable is a gridded field of real numbers from 0.0 to 1.0, with 0.0 outside of the region of interest and 1.0 completely inside the region”.

Given that you may not be able to access the example GRIDMASK file with US states due to country-specific blocks on Google services, here is a ncdump of the relevant header portions of that example file:

dimensions:  
TSTEP = 1 ;  
DATE-TIME = 2 ;  
LAY = 1 ;  
VAR = 49 ;  
ROW = 299 ;  
COL = 459 ;  
variables:  
int TFLAG(TSTEP, VAR, DATE-TIME) ;  
TFLAG:units = “\<YYYYDDD,HHMMSS\>” ;  
TFLAG:long\_name = "TFLAG " ;  
TFLAG:var\_desc = "Timestep-valid flags: (1) YYYYDDD or (2) HHMMSS " ;  
float AL(TSTEP, LAY, ROW, COL) ;  
AL:long\_name = "AL " ;  
AL:units = "fraction " ;  
AL:var\_desc = "AL fractional area per grid cell " ;  
float AZ(TSTEP, LAY, ROW, COL) ;  
AZ:long\_name = "AZ " ;  
AZ:units = "fraction " ;  
AZ:var\_desc = "AZ fractional area per grid cell " ;  
float AR(TSTEP, LAY, ROW, COL) ;  
AR:long\_name = "AR " ;  
AR:units = "fraction " ;  
AR:var\_desc = "AR fractional area per grid cell " ;  
… " ;  
float WV(TSTEP, LAY, ROW, COL) ;  
WV:long\_name = "WV " ;  
WV:units = "fraction " ;  
WV:var\_desc = "WV fractional area per grid cell " ;  
float WI(TSTEP, LAY, ROW, COL) ;  
WI:long\_name = "WI " ;  
WI:units = "fraction " ;  
WI:var\_desc = "WI fractional area per grid cell " ;  
float WY(TSTEP, LAY, ROW, COL) ;  
WY:long\_name = "WY " ;  
WY:units = "fraction " ;  
WY:var\_desc = "WY fractional area per grid cell " ;

// global attributes:  
:IOAPI\_VERSION = "ioapi-3.2: Id: init3.F90 1 2017-06-10 18:05:20Z coats " ;  
:EXEC\_ID = "??? " ;  
:FTYPE = 1 ;  
:CDATE = 2019303 ;  
:CTIME = 150353 ;  
:WDATE = 2019303 ;  
:WTIME = 150353 ;  
:SDATE = -635 ;  
:STIME = 0 ;  
:TSTEP = 0 ;  
:NTHIK = 1 ;  
:NCOLS = 459 ;  
:NROWS = 299 ;  
:NLAYS = 1 ;  
:NVARS = 49 ;  
:GDTYP = 2 ;  
:P\_ALP = 33. ;  
:P\_BET = 45. ;  
:P\_GAM = -97. ;  
:XCENT = -97. ;  
:YCENT = 40. ;  
:XORIG = -2556000. ;  
:YORIG = -1728000. ;  
:XCELL = 12000. ;  
:YCELL = 12000. ;  
:VGTYP = -9999 ;  
:VGTOP = -9.e+36f ;  
:VGLVLS = 0.f, 0.f ;  
:GDNAM = "US12\_459X299 " ;  
:UPNAM = "cdf2uamv " ;  
:VAR-LIST = "AL AZ AR CA CO CT DE DC FL GA ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY " ;  
:FILEDESC = “” ;  
:HISTORY = “” ;  
}

---

_[View the full topic](https://forum.cmascenter.org/t/whats-the-maskdatas-format/2919)._
