&do I = 2 &to 44 &sys mkdir pop_150m\sampled\ws%I% &do num &list apr aug dec feb jan jul jun mar may nov oct sep setwindow C:\riverhistory\hcdop\grids\sub_basins\ws%I%\mask%I% C:\riverhistory\hcdop\grids\hcdop_geo150 pop_150m\sampled\ws%I%\pop_%num% = con(C:\riverhistory\hcdop\grids\sub_basins\ws%I%\mask%I% == %I%, pop_150m\pop_%num%,C:\riverhistory\hcdop\grids\sub_basins\ws%I%\mask%I%) arc gridascii pop_150m\sampled\ws%I%\pop_%num% pop_150m\sampled\ws%I%\pop_%num%.asc &sys C:\riverhistory\hcdop\arcgrid2bin float pop_150m\sampled\ws%I%\pop_%num%.asc pop_150m\sampled\ws%I%\pop_%num%.bin &end &end