Prediction of offshore and inshore wave spectra:a case study