<div dir="ltr">Hi all,<br><div><br>I wonder what is a valid location and what is a valid mapset. The lib/init/grass.py file says:<br><div><br>def is_mapset_valid(full_mapset):<br>    return os.access(os.path.join(full_mapset, "WIND"), os.R_OK)<br><br>def is_location_valid(gisdbase, location):<br>    return os.access(os.path.join(gisdbase, location, "PERMANENT", "DEFAULT_WIND"), os.F_OK)<br><br></div><div>This is what I've done based on the code which was there before refactoring. I wonder if it is correct. If I need to switch to a mapset, I want the region to be editable, so I need os.W_OK in that case. On the other hand, is WIND file needed? Isn't it created automatically from DEFAULT_WIND?<br><br>And further, is DEFAULT_WIND the right requirement for a valid PERMANENT mapset? Are some PROJ_* files needed?<br><br>Thanks,<br></div><div>Vaclav<br></div></div></div>