Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check the processes of calculation! #1

Open
lovechang1986 opened this issue May 13, 2018 · 2 comments
Open

Check the processes of calculation! #1

lovechang1986 opened this issue May 13, 2018 · 2 comments

Comments

@lovechang1986
Copy link

Hi, this is an awesome repo.

I had saw your codes of python and NCL, while I can't check the reason that why the result does not match eachother without compiled NCL.

On my opinine, even the results had some diff, they should not had quite bias. These were some process that may be generate bias:

  1. month to season
  2. standardized
  3. normal EOF
    Your can ouput the results of NCL and compared with Python's.

Anyway, this is great, nice work. Thank for your time.

@raybellwaves
Copy link
Owner

I've checked the three things you mention.
python and NCL match with normal eof but the calculation drifts in the reof calculation.
The NCL function is fortran and pre-compiled. It's not easy to therefore print out variables in the code to understand it better. Not to mention it is horribly documented.

@ahuang11
Copy link

ahuang11 commented Nov 6, 2019

I wasn't able to reproduce CPC's loading patterns completely, but it's kind of close with Andrew's experimental rotation branch https://github.com/ajdawson/eofs/blob/experimental-rotation/lib/eofs/experimental/rotation/kernels.py

Note I had to disable kaisernorm to get non-NaNs and I didn't normalize by STD, only took the anomalies e.g.

da_hgt_anom = (da_hgt.groupby(da_hgt['time'].dt.month) - 
    da_hgt.groupby(da_hgt['time'].dt.month).mean('time'))

NAO attempt
image
NAO on CPC https://www.cpc.ncep.noaa.gov/products/precip/CWlink/pna/nao_loading.html
image

PNA attempt
image
PNA on CPC https://www.cpc.ncep.noaa.gov/products/precip/CWlink/pna/pna_loading.html
image

Also, interestingly, https://www.ncdc.noaa.gov/teleconnections/pna/ states it uses 0-90N, inconsistent with the 20-90N listed on https://www.cpc.ncep.noaa.gov/products/precip/CWlink/daily_ao_index/history/method.shtml

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants