Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot reliability diagram #9

Open
Budusa opened this issue Jun 21, 2021 · 2 comments
Open

Plot reliability diagram #9

Budusa opened this issue Jun 21, 2021 · 2 comments

Comments

@Budusa
Copy link

Budusa commented Jun 21, 2021

I would like to use a reliability diagram for verification of my data organized in 16 ensemble members and one observation. Of course, all are in the netCDF format for June-August 2018. I was able to compute other scores such as PRS, CRPS, and others. provided all other skill scores and I would like to evaluate the results using the diagram. Thank you for your help in advance. Find also how I have tried to read and organize my data as follow:

require (ncdf4)
require(easyVerification)

fcstfiles <- list.files(pattern = 'wrf_t2m_')

fcst <- sapply(fcstfiles, function(f){

nc <- nc_open(f)

on.exit(nc_close(nc))

ncvar_get(nc, 't2m')

}, simplify = 'array')

library(cmsaf)
library(raster)

ncobs <- nc_open("era5_t2m_wrf_eth.nc")
obs <- ncvar_get(ncobs, 't2m')

corr <- veriApply("EnsCorr",
fcst = fcst,
obs = obs,
ensdim = 4, tdim = 3)

@rmanzanas
Copy link
Member

Hi Budusa,

I see from your code that you're using the easyVerification package to compute skill scores others than reliability. Please note that whereas easyVerification requires matrix/array inputs, the reliabilityCategories function from visualizeR requires the specific data format of C4R.

Best regards.

@Budusa
Copy link
Author

Budusa commented Jul 5, 2021

Hi Budusa,

I see from your code that you're using the easyVerification package to compute skill scores others than reliability. Please note that whereas easyVerification requires matrix/array inputs, the reliabilityCategories function from visualizeR requires the specific data format of C4R.

Best regards.

Hi rmanzamas,

Thank you for your comment. I will go through the material and come back to you if I fail to implement.

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants