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
"cell_methods": "longitude: sum (comment: basin sum [along zig-zag grid path]) depth: sum time: mean",
However, some of the files generated by CMOR can create values with multiple parentheses sections.
htovgyre:cell_methods = "longitude: sum (comment: basin sum [along zig-zag grid path]) depth: sum time: mean (interval: 1 month)"
PrePARE is currently only designed to handle removing one parentheses section. Having multiple sections will cause everything from the first starting parenthesis to the last ending parenthesis to be removed. This will then cause an error when comparing the values between the CMIP6 table and the dataset.
=====================================================================================
Your file contains "cell_methods":"longitude: sum" and
CMIP6 tables requires "cell_methods":"longitude: sum depth: sum time: mean".
=====================================================================================
I have made a change to the regex that handles removing the comment sections correctly. I will create a PR for it shortly.
The text was updated successfully, but these errors were encountered:
The values for the
cell_methods
can contain comments within parentheses.However, some of the files generated by CMOR can create values with multiple parentheses sections.
PrePARE is currently only designed to handle removing one parentheses section. Having multiple sections will cause everything from the first starting parenthesis to the last ending parenthesis to be removed. This will then cause an error when comparing the values between the CMIP6 table and the dataset.
I have made a change to the regex that handles removing the comment sections correctly. I will create a PR for it shortly.
The text was updated successfully, but these errors were encountered: