-
Notifications
You must be signed in to change notification settings - Fork 16
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
Does xMCA work on gridded data too? #35
Comments
Just to be sure, xMCA only works with Also , please ensure that the dimensions are Finally, have you applied latitude correction via |
I converted to data array, so this shouldn't be a problem.
I'm pretty sure this is the major problem. Thanks a lot for providing these insights. |
I must admit I'm not sure of a package that can automatically apply this kind of weighting for you, but that's not to say it doesn't exist! However, I'm a bit skeptical that simply providing coordinates in kilometers would enable accurate calculation of weights. What you'd actually need is a more detailed understanding of the projection used to represent the data. Climate data is typically portrayed on a rectangular lon/lat grid, which, while convenient and familiar to us as observers, does distort the area represented by a grid point towards the poles, making it appear larger. The coslat correction is a handy workaround for this specific distortion, but keep in mind that this effect arises from the classic (PlateCarree) projection that's commonly used. Given that you're working with a different projection, you should be careful about determining the necessary correction, if any is needed at all. It might be unavoidable to delve deeper into your data set to understand the projection used and how it may distort the data. That said, you can certainly carry out the analysis without any corrections. However, you should be cognizant that in such a case, your results are likely to reflect EOFs of what could be described as "inflated" areas. |
Many Many Thanks for the detailed explanation @nicrie, I'm so glad you're here to provide detailed information on these. I'm working with this projection (https://nsidc.org/data/user-resources/help-center/guide-nsidcs-polar-stereographic-projection), units are in meters. I can now get the root cause and will work on it and get back if the re-projection and coslat correction works and I'm able to do EOFs using either xMCA and xeofs. Meanwhile, please get back if by any chance you accidentally come across some information on this. Thanks a ton again :) |
Hi,
My dataset looks like:
Lat and Lon in 'meters' (below)
![image](https://private-user-images.githubusercontent.com/7091088/239798098-f56958b3-da85-4e0d-a97c-f7dcfcb82353.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTkwMDksIm5iZiI6MTczOTE1ODcwOSwicGF0aCI6Ii83MDkxMDg4LzIzOTc5ODA5OC1mNTY5NThiMy1kYTg1LTRlMGQtYTk3Yy1mN2RjZmNiODIzNTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDMzODI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2Q4M2ZiZGY2YjZkMjQwYWY1MThjYzJkMDNiMDc1ZDEyZmU4YTkwYmM5NzVjNTZkMDU3ZWZjZTY2NzdkMjk3NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.95bB1A5Q1GTz8kTrjdhRC50HVkMVw9ImacpfcECCwXE)
When I applied EOFs, on this, it however, did not fail.
![image](https://private-user-images.githubusercontent.com/7091088/239798395-b051864e-e5aa-4643-82c4-6087033f0c45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTkwMDksIm5iZiI6MTczOTE1ODcwOSwicGF0aCI6Ii83MDkxMDg4LzIzOTc5ODM5NS1iMDUxODY0ZS1lNWFhLTQ2NDMtODJjNC02MDg3MDMzZjBjNDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDMzODI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjMxZTVkMDFiNGQzYTc3NTkwY2JkNjBmNmUxYzkwZDQ5MTJhMjM4NTZlYWVmMTIzYjI3NWVlNzRhYWE4MjRjNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.UmiB-nHdwDQvSLAV9EtdoY7pBoZ_ULrxsq_RoVLJmow)
But, the result looked strange.
Please check the eof[0] pattern...
the eof[0] lokks like:
Here, the lat() is empty.
Why is it?
Should I reproject the data, as xMCA may not support this format of data?
Any assistance on this would be helpful.
Thanks in advance.
The text was updated successfully, but these errors were encountered: