Updated version of develop branch of nansencenter/openwind
Re-added model_wind.py, and deleted download_NCEP_GFS.py
Added basic land mask to plot function.
Moved reprojection of wind from model_wind to sar_wind, otherwise ModelWind objects are recreated from filename when input til SARWind class. Set wind as first argument to ModelWind constructor, as filename or Nansat object are sufficient arguments, whereas time is not (must be accompanied by a domain)
Implemented land mask and ice mask functionality in plot function, based on new Nansat mapper for myocean high resolution (1 km) Arctic ice mask (mapper_metno_hires_seaice.py)
Wind vectors now scaled with model speed in plot function.
Disabled runtime warnings in cmod (when calculating wind over land), and cleaned openwind terminal output
Updated plotting function to use local netCDF files with ice mask, as alternative to using Thredds
Extracted creation of masked wind array from plot function, to be reused in new function to write geotiff image (which may be reprojected)
Update README.md
As both ASAR and Radarsat2 mappers now have bands with SAR look direction, this calculation is removed from openwind. Plotting function is improved, now with colorbar
Merge branch 'master' of https://github.com/knutfrode/openwind
SARWind objects can now be generated both from filename and from input Nansat objects
SARWind now can take mapper name (eventually + time string YYYYmmddHHMM) as alternative to Nansat filename containing wind direction. This eliminates need for ModelWind module/class, which is functionally replaced by new Nansat mapper mapper_ncep_wind_online.py
Made template Nansat mapper which finds the wind direction file closest to requested time on your local file system. Instructions for user configuration given in docstring.
Updated README.md (documentation/usage)
merged with knutfrode/master, corrected conflicts and simplified calculate_wind-method
deleted deprecated model_wind module
#kf no change.
#kf: Add arguments of save_wind_map_image(). set metadata 'time' to U and V bands.