Function to define a lon/lat region giving the coordinates of the vertexs of a given polygon. A netCDF file with the corresponand mask is provided as result
lonlat_polygon(values,ncfile,varn)
values= [asciipolygfile]
[asciipolygfile]: ASCII file with the clocwise consecutive polygon vertexs as: ('#' for coments)
[lon1] [lat1]
(...)
[lonN] [latN]
ncfile= name of the file with the variable to fill
varn= [lonvname],[latvname] name of the longitude and latitude variable in the file
$ python ${pyHOME}/nc_var.py -o field_stats -S 'full,None,None' -f startphy.nc -v all