Changes between Version 2 and Version 3 of udg/ecoms/RPackage/biascorrection


Ignore:
Timestamp:
Mar 27, 2015 7:55:15 PM (7 years ago)
Author:
sixto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • udg/ecoms/RPackage/biascorrection

    v2 v3  
    99library(downscaleR)
    1010library(ecomsUDG.Raccess)
     11library(ncdf4) # Only needed to write NetCDF
    1112loginECOMS_UDG(username = "username", password = "password")
    1213# Seasonal forecast parameters:
     
    1415season <- c(12,1:6)
    1516leadMonth <- 0
    16 members <- 1
     17members <- 1:2
    1718lonLim <- c(-15,35)
    1819latLim <- c(32, 75)
     
    4344# Bias Correction
    4445ps <- biasCorrection(obs, ps, ps, method = method, multi.member = multi.member, window = window)
     46
     47# Creating a nc-file with the bias-corrected data:
     48# The function grid2NetCDF builds a nc4-file using a downscaleR object, in this case the surface pressure bias corrected with the qq-map method. The resulting NetCDF is available in the link:
     49# http://www.meteo.unican.es/work/datasets/psAdjust_System4_1_2_12_6_qqmap_WFDEI_2001_2010.nc4
     50
     51grid2NetCDF(ps, NetCDFOutFile = "psAdjust_System4_1_2_12_6_qqmap_WFDEI_2001_2010.nc4", missval = 1e20, prec = "float", compression=4, shuffle = TRUE)
    4552
    4653# Cleaning the workspace: