# Creating L3 grids for MIPAS data

**URL:** https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439
**Category:** HARP
**Created:** [December 17, 2021, 5:52am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439 "2021-12-17T05:52:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![zion0210](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/z/5daacb/32.png) [@zion0210](https://forum.atmospherictoolbox.org/u/zion0210)
#### Post date: [December 17, 2021, 5:52am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/1 "2021-12-17T05:52:37Z")

</div>

Hi All.

I am using the HARP v1.11 command line which is included in anaconda3 just now. I want to get daily or monthly average level 3 data for the MIPAS/ENVISAT device. There is my code below:

`harpmerge -ap 'bin(); squash(time, (latitude,longitude))' -a 'latitude > 45 [degree_north]; latitude < 75 [degree_north]; bin_spatial(48,45,0.5,96,40,0.5); derive(latitude {latitude}); derive(longitude {longitude})' MIPAS_2PS_CH4 _____ 20020731T*.nc out.nc`

Result:  
`ERROR: MIPAS_2PS_CH4 _____ 20020731T002938_20020731T020934_02175_01.nc: unsupported product`

What’s wrong with my code?

It works well for S5P.

Where can I find examples of using HARP tools for other satellite devices?

Regards,  
zion0210

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [December 17, 2021, 8:10am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/2 "2021-12-17T08:10:21Z")

</div>

It seems that last year they released MIPAS L2 data with a new netcdf format. Although this can be read with the CODA software, it is not yet supported with HARP. We will put it on our list of things to implement.

---

<div class="post-metadata">

### Author: ![zion0210](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/z/5daacb/32.png) [@zion0210](https://forum.atmospherictoolbox.org/u/zion0210)
#### Post date: [December 18, 2021, 6:18am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/3 "2021-12-18T06:18:32Z")

</div>

Hi!

So, now I have two versions of the data - 7.03 and 8.22. 8.22 is netcdf data. I got v7.03 data and run HARP. But I got the following error:  
`ERROR: dimension 3 (of type 'vertical') of variable 'HNO3_number_density_weight' is incompatible with product; variable = 18, product = 17 (/home/jenkins/workspace/CondaPackages/conda3-linux-64/miniconda3/conda-bld/harp_1589906949770/work/libharp/harp-product.c:1300)`  
How can I fix this problem?

Maybe you can suggest me another software to create L3 data.

Regards,  
zion0210

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [December 20, 2021, 3:08pm UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/4 "2021-12-20T15:08:08Z")

</div>

What command are you running and using which product(s) exactly?  
I would need to be able to replicate what you are doing if you want assistance.

---

<div class="post-metadata">

### Author: ![zion0210](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/z/5daacb/32.png) [@zion0210](https://forum.atmospherictoolbox.org/u/zion0210)
#### Post date: [December 22, 2021, 4:22am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/5 "2021-12-22T04:22:15Z")

</div>

Hi.

There is my code below:  
`harpmerge -ap 'bin(); squash(time, (latitude,longitude))' -a 'latitude > 45 [degree_north]; latitude < 75 [degree_north]; bin_spatial(48,45,0.5,96,40,0.5); derive(latitude {latitude}); derive(longitude {longitude})' MIP_NL __2PWDSI20020725_*.N1 MIP_NL__ 2P.nc`  
Result:  
ERROR: dimension 3 (of type ‘vertical’) of variable `'HNO3_number_density_weight' is incompatible with product; variable = 18, product = 17 (/home/jenkins/workspace/CondaPackages/conda3-linux-64/miniconda3/conda-bld/harp_1589906949770/work/libharp/harp-product.c:1300)`

Regards,  
zion0210

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [December 22, 2021, 7:44am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/6 "2021-12-22T07:44:18Z")

</div>

You are probably using an older HARP version. I don’t get that error myself.  
Make sure you install harp using the conda-forge channel: `conda install -c conda-forge harp`.

---

<div class="post-metadata">

### Author: ![zion0210](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/z/5daacb/32.png) [@zion0210](https://forum.atmospherictoolbox.org/u/zion0210)
#### Post date: [December 23, 2021, 6:56am UTC](https://forum.atmospherictoolbox.org/t/creating-l3-grids-for-mipas-data/439/7 "2021-12-23T06:56:42Z")

</div>

Hi.

I updated conda and installed HARP from conda-forge repository again.  
I had HARP v1.11 before, after update v1.13.  
It worked for my issue.  
I hope that in the future HARP will support MIPAS netCDF data.

Regards,  
zion0210
