<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Adriana:</div><div class="gmail_default" style="font-size:small">You may want to add "delete(file1)" below "print(file1)" since as you wrote file1 contains 30 files for June and 31 files for July?</div><div class="gmail_default" style="font-size:small">Laura</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2019 at 7:39 AM <<a href="mailto:adriana.bossolasco@cnrs-orleans.fr">adriana.bossolasco@cnrs-orleans.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Everyone<br>
<br>
I have a problem for read monthly files with systemfunc<br>
I know that the problem is because the first month that I read is JUN <br>
which have 30 days and the when I try to read JUL with 31 days my code <br>
says:<br>
<br>
fatal:Dimension sizes of left hand side and right hand side of <br>
assignment do not match<br>
<br>
How can I fix this? Maybe is very basic but I don't realize<br>
<br>
I copy my code here<br>
<br>
begin<br>
;************************************************<br>
; variable and file handling<br>
;************************************************<br>
<br>
<br>
year1=2001<br>
year2=2002<br>
nyear=year2-year1<br>
print(nyear)<br>
month1=6<br>
month2=8<br>
nmonths=month2-month1<br>
<br>
do i = 1,nyear<br>
do j = 1,nmonths<br>
print(nmonths)<br>
print(nyear)<br>
if (month1+j-1 .ge. 10) then<br>
mois=10<br>
else<br>
mois="0"+(j-1+month1) ;<br>
end if<br>
print(mois)<br>
<br>
file1 = systemfunc(" ls <br>
/PROJETS/MOUSSON-NEW/MAM_GEOS_8y_rest/MAM_GEOS_8y_rest.cam.h0.200"+i+"-"+mois+"*-<a href="http://43200.nc" rel="noreferrer" target="_blank">43200.nc</a>")<br>
print(file1)<br>
<br>
end do<br>
end do<br>
<br>
end<br>
<br>
<br>
-- <br>
Adriana Bossolasco<br>
LPC2E UMR 7328 (CNRS, Université d'Orléans)<br>
3A avenue de la Recherche Scientifique<br>
45071 Orléans Cedex 2 - FRANCE<br>
Tel +33 (0)2 38 25 52 85<br>
e-mail: <a href="mailto:adriana.bossolasco@cnrs-orleans.fr" target="_blank">adriana.bossolasco@cnrs-orleans.fr</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM) </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div>