# Monthly average tropospheric NO2 vertical column

**URL:** https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141
**Category:** Uncategorized
**Created:** [May 25, 2020, 1:04pm UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141 "2020-05-25T13:04:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Yosef](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/y/53a042/32.png) [@Yosef](https://forum.atmospherictoolbox.org/u/Yosef)
#### Post date: [May 25, 2020, 1:04pm UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141/1 "2020-05-25T13:04:27Z")

</div>

Hi all,

Excuse me I am a beginner with VISAN.

I want to create a monthly average vertical NO2 column using Sentinel 5P level 2 product, but I don’t know how to change the code below to include all images in the input folder. The symbol “\*” doesn’t run in (Anaconda PowerShell, Windows 10).

harpmerge -ap ‘bin(); squash(time, (latitude,longitude))’ -a ‘latitude \> -55 [degree\_north]; latitude \< 60 [degree\_north]; tropospheric\_NO2\_column\_number\_density\_validity \> 75; bin\_spatial(231,-55,0.5,721,-180,0.5); derive(longitude {longitude});derive(latitude {latitude})’ S5P\_OFFL\_L2\_\_NO2\*.nc /shared/Training/ATMO01\_AirQuality\_Global/Processing/NO2/l3\_NO2\_20190124\_quality\_75.nc

I hope someone will help me.

Yosef

---

<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: [May 26, 2020, 7:39am UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141/2 "2020-05-26T07:39:40Z")

</div>

The \* pattern matching for files does not work in Windows shells. Just put the files in a subdirectory and provide a path to that subdirectory as input parameter.

---

<div class="post-metadata">

### Author: ![Yosef](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/y/53a042/32.png) [@Yosef](https://forum.atmospherictoolbox.org/u/Yosef)
#### Post date: [May 26, 2020, 9:39am UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141/3 "2020-05-26T09:39:16Z")

</div>

Hi Sander,

I am very pleased to receive your answer and I’m very thankful to you.

I tried to do this using your instructions on “Atmospheric Toolbox”.  
I am already putting the input files in a subdirectory and and providing the path to that subdirectory but I get:

ERROR: invalid variable ‘latitude\_bounds\_weight’ (should be have same initial dimensions as ‘weight’)

I also followed your instructions here and tried to exclude the lat/lon weight variables after I performed a bin() operation. The code as you mensioned before is:

-ap ‘bin(); squash(time, (latitude,longitude)); exclude(latitude\_bounds\_weight,longitude\_bounds\_weight,latitude\_weight,longitude\_weight)’

But I get the same last error. Please find the attached file.

Excuse me, do you have any idea why this happens and what can I do to corect this?

Thank you very much in advance!

> **[Error\_harpmerge.png](https://drive.google.com/file/d/1IAbgeDtNU2rw2ggmWxHCnIP7rhsgklab/view?usp=drive_open)**
>
> Google Drive file.

---

<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: [May 26, 2020, 9:51am UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141/4 "2020-05-26T09:51:51Z")

</div>

Try excluding the weights using the -a option (they need the be excluded before the merge, not after):

```
-ap 'bin(); squash(time, (latitude,longitude))' -a 'exclude(latitude_bounds_weight,longitude_bounds_weight,latitude_weight,longitude_weight)'
```

---

<div class="post-metadata">

### Author: ![Yosef](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/y/53a042/32.png) [@Yosef](https://forum.atmospherictoolbox.org/u/Yosef)
#### Post date: [May 26, 2020, 10:14am UTC](https://forum.atmospherictoolbox.org/t/monthly-average-tropospheric-no2-vertical-column/141/5 "2020-05-26T10:14:35Z")

</div>

Excuse me, do you mean that I have to write first:

-ap ‘bin(); squash(time, (latitude,longitude))’ -a ‘exclude(latitude\_bounds\_weight,longitude\_bounds\_weight,latitude\_weight,longitude\_weight)’ \the input pathname

and then:

harpmerge -ap ‘bin(); squash(time, (latitude,longitude))’ \input pathname \outputpath\outputproduct.nc
