.. _calculations_resource: Resource Calculation Service ============================ The service CalcResourceService gives you access to generate resource maps in windPRO The service itself if relatively simple with the ``CalcResourceService.GetResourceCalc`` and ``CalcResourceService.SetResourceCalc`` for getting and setting calculations. Generating a resource map from scratch involves the main part of the flow modelling in windPRO. The steps that are needed are the following: - Add or download terrain and roughness data - Make a statgen object for statistical wind resource calculations - Do a Statgen calculation to get the wind statistics - Add a statgen object for resource map calculation and link the wind statistics - Make a WTG area to decide the limits of your calculation - Make a resource calculation linking the statgen for resource object and the WTG area object It is more informative to understand this form an example. The code below illustrates how to make a resource map from scratch. it is the same code use to illustrate :ref:`calculations_statgen`. .. literalinclude:: ../../../python/examples/fromDocs/calculations/statgen_resgen_calculation.py