<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div>I am now transitioning to python and I recently installed PynGL and now converting one NCL script to python. I would like to concatenate two arrays and in NCL it was easy using "array_append_record". For python, I used "<span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px;background-color:rgb(254,244,156)">np.concatenate(array1,array2,axis=0)</span>" but it gives me this error:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> File "MERGE_netcdf_test.py", line 86, in <module></span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> merge_data = np.concatenate(ext_525_v11,ext_525_v2,axis=0)</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">TypeError: 'NioVariable' object cannot be interpreted as an integer</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>I am not sure what that means. Here are the two variables I am trying to concatenate:</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Variable: ext_525</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 5253120 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> 1313280 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 4</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[year | 38] x [month | 12] x [lat | 32] x [alt | 90]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> year: [1979..2016]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> month: [1..12]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> lat: [-77.5..77.5]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> alt: [0.5..45]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Number of Attributes: 2</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> _FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>-999</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> mwv :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>0.525</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Variable: MERGED_EXT_525</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Total Size: 2350080 bytes</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> 587520 values</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 4</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[year | 17] x [month | 12] x [lat | 32] x [alt | 90]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Coordinates: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> year: [2002..2018]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> month: [1..12]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> lat: [-77.5..77.5]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> alt: [0.5..45]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures">Number of Attributes: 6</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> mwv :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>0.525</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> description :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>zonally averaged cloud cleared extinction at 525 nm</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> average_op_ncl :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>dim_avg_n over dimension(s): profiles</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> long_name :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>merged extinction from OSIRIS, CALIPSO, and SAGEIII-ISS at 525 nm</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> units :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>1/km</span></p>
<p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(254,244,156)"><span style="font-variant-ligatures:no-common-ligatures"> _FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>-999</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><br></div><div>And my apologies of posting this question in NCL talk. I don't know if I could post this question to any other forum so posting it here. <br></div><div><br></div><div>Thanks,</div><div>Mahesh</div></div></div></div></div></div>