Openwind Help

Project-Design-Grid

The project design grid format can contain all the same data as a WRG. But it can also contain: roughness; inflow angles; turbulence intensity variation across the site; wind shear exponent and so on.

Header structure

Start ByteNumber of BytesTypeDescriptionComments
     
02unsigned shortFile type1001 = BINARY WRG – non-interleaved, uncompressed.
22unsigned shortVersionVersion of this type of file current = 2
41byteHorizontal units1 = meters
51byteVertical units1 = meters
630characterCharacters describing datum projection as an EPSG codee.g. “EPSG:32619” is the best way to specify WGS84, UTM 19
362Unsigned shortNumber of directionse.g. 12
382Unsigned shortNumber of heightse.g. 1
402Unsigned shortNumber of wind speedsUnused(default) = 0
428doubleX minRectangle describing bounding grid points. Covered area is res/2 larger in all directions
508doubleX max
588doubleY min
668doubleY max
748doubleResolution in X 
828doubleResolution in YUsually same as res X
902Unsigned shortTotal Number of blocksBlock descriptions start at byte 100. each block description is
928byteUnused 
1002Unsigned shortData meaning for block index 01 = elevation,2 = mean wind speed3 = A4 = K5 = Power6 = Turbulence Intensity7 = Inflow angle8 = Probability (for wind freq table at every point)9 = Direction10 = Surface roughness11 = Air Density12 = Vertical velocity13 = Wind Shear exponent
1024floatHeight for this block (above ground level)Default or N/A = -1
1062shortDirection for this block-1 means not directional. Directions start at 0 = north and work clockwise
1084floatWind Speed for this block-1(default) means not by wind speed
1128DoubleProbability for this blockUsually 1.0 (P<1.0 can be used to specify that this is one of multiple wind regimes each having its own probability)
1204Int32ID for this group of blocksUsually set to 0 – unused (can be used with P to specify multiple wind regimes within one file)
1248Int64Offset of this block in this fileStart byte
1321byteData type0 = float (default)1 = double2 = byte3 = short4 = long (32 bit) etc
1332Unsigned shortUnit (new)0 = none (default)1 = m2 = m/s3 = degree (+/-180)4 = degree (0 - 360)5 = %
13529byteunused 
100 + block index*642Unsigned shortData meaning for block index 1 
….    

Constraints are:

Block Structure

Each block is ordered in lines of X starting the bottom left hand corner. All values are stored as 4 byte floats by default.