<div dir="ltr"><span style="font-size:12.8px">Hi all,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Can anyone please help me to solve the error with '@' mark which comes along with mapset in python GRASS script.   I get the following error when I run "mapcal.py"</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><i>syntax error, unexpected '@', expecting '('</i><br></div><div style="font-size:12.8px"><i><br></i></div><div style="font-size:12.8px"><div style="font-size:12.8px"><span style="color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit;font-size:13px;background-color:rgb(239,240,241)"># mapcal.py</span></div></div><div style="font-size:12.8px"><span style="color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:12.8px">import grass.script as g</span><br></div><div style="font-size:12.8px"><div style="font-size:12.8px"><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif">lis=['a@mapset','b@mapset']</font></div><div style="font-size:12.8px"><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif">for i in lis:</font></div><div style="font-size:12.8px"><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif"><br></font></div><div style="font-size:12.8px"><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif">     g.mapcalc("{tmp_NDVI}=float({NIR}-Red})/float({NIR}+{Red})"</font><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif">.format(tmp_NDVI='NDVI'+str(i), NIR='B5</font><span style="color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:12.8px">@mapset</span><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif" style="font-size:12.8px">',Red='B4</font><span style="color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:12.8px">@mapset</span><font color="#858c93" face="Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif" style="font-size:12.8px">'),overwrite=True)</font><span style="font-size:13px;color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit;background-color:rgb(239,240,241)"> </span></div></div><div style="font-size:12.8px"><span style="font-size:13px;color:rgb(133,140,147);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit;background-color:rgb(239,240,241)"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px"> </span><br></div><div style="font-size:12.8px">Thanks,</div></div>