# Regrid mcip outputs

**URL:** https://forum.cmascenter.org/t/regrid-mcip-outputs/4260
**Category:** m3tools
**Created:** [July 25, 2023, 2:42pm UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260 "2023-07-25T14:42:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kiarash\_farzad](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/kiarash_farzad/32/3371_2.png) [@kiarash\_farzad](https://forum.cmascenter.org/u/kiarash_farzad)
#### Post date: [July 25, 2023, 2:42pm UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260/1 "2023-07-25T14:42:55Z")

</div>

Hi,

I have been trying to regrid my mcip and emission files recently to produce files for my d02. My d01 is at 12km and d02 is at 3km. I was able to use a mixture of M3WNDW and M3CPLE to achieve what I needed to some extent.

For mcip files this mixture works for metcro2d, metcro3d, and metdot3d (GRDDED3==1), but it does not work on grdbdy2d, grdcro2d, grddot2d, lufraccro, and metbdy3d (GRDDED3==2).

The error is as follows:  
\*\*\* ERROR ABORT in subroutine M3WNDW  
Input file “INFILE” has type 2 (type GRDDED3==1 required)

Do you have any suggestion how I can window + disaggregate (m3wndw + m3cple) these files?

Thanks,

---

<div class="post-metadata">

### Author: ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)
#### Post date: [July 25, 2023, 2:51pm UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260/2 "2023-07-25T14:51:58Z")

</div>

**Wind fields are not re-griddable.** The (non-linear!) governing equations for them generate conservative transport; when you do linear (or, even, more-sophisticated) interpolation, you end up with fields that are not conservative.

You don’t need both _m3wndw_ and _m3cple_ to interpolate from a 12KM grid to a 3KM grid: go read the user-manual for _m3cple_: [https://www.cmascenter.org/ioapi/documentation/all\_versions/html/M3CPLE.html](https://www.cmascenter.org/ioapi/documentation/all_versions/html/M3CPLE.html)

`grdcro2d, grddot2d, lufraccro` are GRIDDED files, and so **are** acceptable inputs to _m3cple_.

For boundary-files, start with the corresponding full-coarse-grid files, _m3cple_ to an extended-grid fine-grid file, and then use _bcwndw_ – see [https://www.cmascenter.org/ioapi/documentation/all\_versions/html/BCWNDW.html](https://www.cmascenter.org/ioapi/documentation/all_versions/html/BCWNDW.html)

---

<div class="post-metadata">

### Author: ![kiarash\_farzad](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/kiarash_farzad/32/3371_2.png) [@kiarash\_farzad](https://forum.cmascenter.org/u/kiarash_farzad)
#### Post date: [July 25, 2023, 3:05pm UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260/3 "2023-07-25T15:05:35Z")

</div>

Great, thanks for the explanation and suggestion!

---

<div class="post-metadata">

### Author: ![kiarash\_farzad](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/kiarash_farzad/32/3371_2.png) [@kiarash\_farzad](https://forum.cmascenter.org/u/kiarash_farzad)
#### Post date: [October 5, 2023, 9:26pm UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260/4 "2023-10-05T21:26:53Z")

</div>

Could you please explain more on the EXTENDED-grid fine-grid file. As I have tried it on a none-extended-grid, I am losing one row and one column. In which direction should I be choosing my extension? In other words, where am I losing those 1 col and 1 row?

Thanks,

---

<div class="post-metadata">

### Author: ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)
#### Post date: [October 6, 2023, 1:14am UTC](https://forum.cmascenter.org/t/regrid-mcip-outputs/4260/5 "2023-10-06T01:14:10Z")

</div>

If the specified 12KM grid is dimensioned `(NCOLS,NROWS)`, then the extended 12KM grid would be dimensioned `(0:NCOLS+1,0:NROWS+1)` so that it contains data both for the specified 12KM grid and its boundary. Note that the origin for the extended grid is XCELL west and YCELL south of the origin for the specified 12KM grid.
