Weiming-Hu / RAnEnExtra

This is a R package that contains helpful functions for the RAnEn package.
https://weiming-hu.github.io/RAnEnExtra/
MIT License
0 stars 2 forks source link

demo-4_SEA2019 and plotAnalogSample problem #4

Closed arafive closed 2 years ago

arafive commented 2 years ago

Hi. I am a PhD student and I am working with statistical tools for weather forecast purposes.

I am learning AnEn with your R codes, but in demo-4 something goes wrong.

fcst.id <- which(forecasts$ParameterNames == observations$ParameterNames[config$observation_id])
plotAnalogSample(AnEn, config, i.station = 1, i.test.day = 1,
                 obs.id = config$observation_id, fcst.id = fcst.id, 
                 parameter.names = forecasts$ParameterNames,
                 flts.fraction = 3600, legend.texts = c("Obs","Fcst"))

Error in if (length(parameter.names) != dim(forecasts)[1]) { : the argument has zero length

I didn't change anything. This problem is also in Binder.

How can I fix it?

Thanks

Weiming-Hu commented 2 years ago

Thanks for reporting this issue. Let me take a look.

Weiming-Hu commented 2 years ago

Should be fixed. Please reinstall your RAnEn and try again. Thanks.

arafive commented 2 years ago

Hi

Unfortunately, the problem still persists the same. I think the problem is in the RAnEnExtra library. Should I write it on github?

Thanks again

Daniele

Il giorno gio 17 mar 2022 alle ore 20:08 Weiming @.***> ha scritto:

Should be fixed. Please reinstall your RAnEn and try again. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/Weiming-Hu/RAnEnExtra/issues/4#issuecomment-1071232724, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNBPG253KVSXRU3T3UWLSTVAN7MPANCNFSM5Q643QEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Weiming-Hu commented 2 years ago

That is strange. When I run the binder, it actually worked for me. The issue is the particular tutorial is using an old API, and I actually only changed the tutorial. So you might want to get the updated tutorial code. Sorry about the confusion.

If the issue persists, please copy and paste the error message here again. Thanks.

arafive commented 2 years ago

Ok I got it. I substituted the script of demo-4 now it works :)

I just tried it on my pc now, but I think it will be the same on a machine in my office.

Thanks a lot. Should I close the github issue?

Il gio 17 mar 2022, 21:44 Weiming @.***> ha scritto:

That is strange. When I run the binder, it actually worked for me. The issue is the particular tutorial is using an old API, and I actually only changed the tutorial. So you might want to get the updated tutorial code. Sorry about the confusion.

If the issue persists, please copy and paste the error message here again. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/Weiming-Hu/RAnEnExtra/issues/4#issuecomment-1071431178, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNBPG3LIYQULOCZ4INGEBLVAOKRJANCNFSM5Q643QEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Weiming-Hu commented 2 years ago

Closing it for you. By the way, thanks for checking out this project. Feel free to drop a message here if you have any questions or problems.

arafive commented 2 years ago

Thanks!

Il gio 17 mar 2022, 22:04 Weiming @.***> ha scritto:

Closed #4 https://github.com/Weiming-Hu/RAnEnExtra/issues/4.

— Reply to this email directly, view it on GitHub https://github.com/Weiming-Hu/RAnEnExtra/issues/4#event-6262127776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNBPG6VJHOVJKNOEPYRSGTVAOM37ANCNFSM5Q643QEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>