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

Not recognizing certain columns of merra2 data #298

Open
Lincoln-Xcel opened this issue Jul 3, 2024 · 3 comments
Open

Not recognizing certain columns of merra2 data #298

Lincoln-Xcel opened this issue Jul 3, 2024 · 3 comments

Comments

@Lincoln-Xcel
Copy link

Hello,
I have been trying to run the example notebooks with my own data. I have come across an error when attempting to run the first Monte Carlo simulation in notebook 2a cell #12. The error presented is the following:

"ValueError: Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required by LinearRegression."

Upon further inspection into the "pa" dataset of own data and the example with la-houte-bourne, I noticed that my Merra reanalysis is missing 3 rows (u_850, v_850, temp_850). I am thinking this might be the cause or the error, but I am confused as to why those arrays of my csv file were not picked up by the reanalysis as I formatted them same as the example data. I will continue working at this, but in the meantime do you have any thoughts or suggestions for either csv formatting specifics or other ways to add those arrays to the reanalysis.

Thank you for your help!

@RHammond2
Copy link
Collaborator

Hi @Lincoln-Xcel, thanks for reaching out!

Have you mapped your own MERRA2 fields correctly in your metadata YAML configuration to ensure your data is mapped correctly to our internal specifications? Here's the La Haute Borne setup just in case. Without seeing any other setup of yours this is the only thing I can think of.

If the above is already handled, could you provide more diagnostic information, such as your MERRA2 column names and metadata inputs?

@Lincoln-Xcel
Copy link
Author

Thank you for your help!
It turns out there was a few missing points within my Merra2 Data that were str values. Once I changed those values to zero those three columns I mentioned above were recognized.
Although all of the Merra2 data is present now, I am still given the same error message with the linear regression model. I went ahead and attempted to run the other three Monte Carlo AEP analysis setups and they work fine. Any idea as to why just the linear regression would not be working?

@RHammond2
Copy link
Collaborator

I'm glad to hear that much of the issue is resolved! Without being able to see traceback or example it's hard to say what could be causing the issue. If you could provide more information, then I could help you diagnose this further.

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