Actually i want to calculate alongshore wind along sumatra coast that makes an angle 135 with the horizontal plane.^ As you are mentioning the 135 degree angle, we can do some calculation to convert your normal u (towards East) and v (towards North) winds to along/cross -shore winds by simplifying the coast to be straight line with your 135 degree angle. If such simplification is fine for you, thenAlong shore wind = |v| * ( 1/sqrt(2) ) - |u| * ( 1/sqrt(2) )Cross shore wind= - [ |v| * ( 1/sqrt(2) ) + |u| * ( 1/sqrt(2) )) ]
1/sqrt(2) = sin(45) or cos(45). |v| means magnitude of v.