# Harpconvert and harpmerge anaconda powershell

**URL:** https://forum.atmospherictoolbox.org/t/harpconvert-and-harpmerge-anaconda-powershell/286
**Category:** HARP
**Created:** [March 10, 2021, 2:35pm UTC](https://forum.atmospherictoolbox.org/t/harpconvert-and-harpmerge-anaconda-powershell/286 "2021-03-10T14:35:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jlf](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@jlf](https://forum.atmospherictoolbox.org/u/jlf)
#### Post date: [March 10, 2021, 2:35pm UTC](https://forum.atmospherictoolbox.org/t/harpconvert-and-harpmerge-anaconda-powershell/286/1 "2021-03-10T14:35:44Z")

</div>

Hi,  
New here,  
I’ve used successfully processed commands with harpconvert inside win10 64, anaconda3 powershell, with the same command as used in a linux terminal, RUS Copernicus VM, but with input and output file names inside quotes as ‘in.nc’ ‘out nc’. In anaconda powershell, nc filenames inside quotes the text appears in green color font, without quotes, in white color.  
However, when trying to use harpmerge, with the same command, working in linux, I got the same error with or without quotes '.  
ERROR: could not find ‘_.nc’ or whatever combination 'SP5_.nc’, etc.  
When no input name is included in the command.  
WARNING: merged product is empty  
If another variable is written instead of  
tropospheric\_NO2\_column\_number\_density\_validity  
then an error message pops up.  
ERROR: invalid arguments  
here is the command, that works in linux docker container running in win10x64  
harpmerge -ap ‘bin(); squash(time, (latitude,longitude))’ -a ‘latitude \> 35 [degree\_north]; latitude \< 60 [degree\_north]; longitude \>-15 [degree\_east]; longitude \< 6 [degree\_east]; tropospheric\_NO2\_column\_number\_density\_validity \> 75; bin\_spatial(450,35,0.06,450,-15,0.05); derive(latitude {latitude}); derive(longitude {longitude})’ ‘S5P\_OFFL\_L2\_\_NO2\*.nc’ ‘out.nc’  
ERROR: could not find ‘S5P\_OFFL\_L2\_\_NO2\*.nc’  
Thanks for your attention  
Best  
JL

---

<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: [March 10, 2021, 3:19pm UTC](https://forum.atmospherictoolbox.org/t/harpconvert-and-harpmerge-anaconda-powershell/286/2 "2021-03-10T15:19:06Z")

</div>

I am not that familiar with PowerShell, but on Windows the use of globbing (the ‘\*’ character) generally doesn’t work.

What you can do is create a `.pth` text file (e.g. `inputs.pth`) and in there put the list of files that you want merged. Then, instead of `'S5P_OFFL_L2__NO2*.nc'` as argument, you would use `'inputs.pth'` as argument.

---

<div class="post-metadata">

### Author: ![jlf](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@jlf](https://forum.atmospherictoolbox.org/u/jlf)
#### Post date: [March 21, 2021, 9:42am UTC](https://forum.atmospherictoolbox.org/t/harpconvert-and-harpmerge-anaconda-powershell/286/3 "2021-03-21T09:42:14Z")

</div>

Thanks,  
but I get the same error, with or without quote,  
ERROR: could not find ‘filename.pth’
