You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into an error when running the micro_era5 function in R. The first few lines of code below show the error when trying to run the micro_era5 function and the lines of code below show the variable names within my era5 NetCDF file. As you can see, the variable name for "msnlwrf" in the micro_era5 function is not the same as the name in the NetCDF ("avg_snlwrf"). I think the same will be true for "msdlwrf" being changed to "avg_sdlwrf". I had downloaded era5 data from the CDS on 1/19 and ran the micro_era5 function with no issues. I downloaded era5 data from the CDS on 1/23 and have ran into this error. I think the change in variable names must have occurred during the past week.
Any help with the issue would be great. Thanks!
Error in dplyr::mutate():
ℹ In argument: netlong = abs(msnlwrf) * 0.0036.
Caused by error:
! object 'msnlwrf' not found
Run rlang::last_trace() to see where the error occurred.
Hi Emma,
Would you mind posting it here<https://groups.google.com/u/1/g/nichemapr> with a reproducible example?
Many thanks,
Mike
From: Emma White ***@***.***>
Sent: Saturday, 25 January 2025 3:44 AM
To: mrke/NicheMapR ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [mrke/NicheMapR] Micro_era5: Issue with running model; missing era5 variables (Issue #32)
Hello,
I have run into an error when running the micro_era5 function in R.
Error in dplyr::mutate():
ℹ In argument: netlong = abs(msnlwrf) * 0.0036.
Caused by error:
! object 'msnlwrf' not found
Run rlang::last_trace() to see where the error occurred.
nc_data <- nc_open(file_path)
List all variable names
variable_names <- names(nc_data$var)
print(variable_names)
—
Reply to this email directly, view it on GitHub<#32>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB7IUPEJGOENLSQU53F2KPT2MJUTHAVCNFSM6AAAAABV2CAYKSVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYDSOBXGUYDEMA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
Hello,
I have run into an error when running the micro_era5 function in R. The first few lines of code below show the error when trying to run the micro_era5 function and the lines of code below show the variable names within my era5 NetCDF file. As you can see, the variable name for "msnlwrf" in the micro_era5 function is not the same as the name in the NetCDF ("avg_snlwrf"). I think the same will be true for "msdlwrf" being changed to "avg_sdlwrf". I had downloaded era5 data from the CDS on 1/19 and ran the micro_era5 function with no issues. I downloaded era5 data from the CDS on 1/23 and have ran into this error. I think the change in variable names must have occurred during the past week.
Any help with the issue would be great. Thanks!
Error in
dplyr::mutate()
:ℹ In argument:
netlong = abs(msnlwrf) * 0.0036
.Caused by error:
! object 'msnlwrf' not found
Run
rlang::last_trace()
to see where the error occurred.The text was updated successfully, but these errors were encountered: