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

FY4A_agri_introduction(zh-CN).ipynb need agri_l1_4000m_geo, how can i do ? #49

Open
wanggang19830806 opened this issue Nov 15, 2022 · 11 comments

Comments

@wanggang19830806
Copy link

When I run:
filenames = glob.glob('F:/FY4A/AGRI/20220701/FY4A-_AGRI--_N_DISK_1047E_L1-_FDI-_MULT_NOM_20220701060000_20220701061459_4000M_V0001.HDF')
scn = Scene(filenames, reader='agri_fy4a_l1')
composite = 'true_color'
scn.load([composite])

there are two problem, what can improve it ?
Required file type 'agri_l1_4000m_geo' not found or loaded for 'satellite_zenith_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'solar_zenith_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'solar_azimuth_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'satellite_azimuth_angle'

ProxyError: HTTPSConnectionPool(host='zenodo.org', port=443): Max retries exceeded with url: /record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz (Caused by ProxyError('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)'))))

@zxdawn
Copy link
Member

zxdawn commented Nov 15, 2022

It seems you can't access the zenodo correctly. You need to make sure your internet is available to download the pyspectral data. BTW, the reader should be agri_l1.

@wanggang19830806
Copy link
Author

Dear Zhang Xin:
the new satpy readers provide agri_fy4a_l1 and agri_fy4b_l1。if add agri_l1,it will show error.
from satpy import available_readers
available_readers()
scn = Scene(filenames, reader='agri_l1')

I'm sure my internet can visit google and youtube github. but how can I available to download the pyspectral data?

@zxdawn
Copy link
Member

zxdawn commented Nov 15, 2022

Ha, thanks for the report. I tested on my machine and got the same error.

However, if I copy https://zenodo.org/record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz to browser, the data can be downloaded successfully.

@zxdawn
Copy link
Member

zxdawn commented Nov 15, 2022

Well, it should be the internet problem. Here's the test on my Chinese machine:

Without vpn:

wget https://zenodo.org/record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz                                      ✔  arctic   14:44:49
--2022-11-15 14:44:50--  https://zenodo.org/record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz
Resolving zenodo.org (zenodo.org)... 0.0.0.0
Connecting to zenodo.org (zenodo.org)|0.0.0.0|:443... failed: Connection refused.

With vpn:

wget https://zenodo.org/record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz                                  INT ✘  arctic   14:44:34
--2022-11-15 14:44:35--  https://zenodo.org/record/1288441/files/pyspectral_atm_correction_luts_no_aerosol.tgz
Connecting to 127.0.0.1:7890... connected.
Proxy request sent, awaiting response... 200 OK
Length: 54291625 (52M) [application/octet-stream]
Saving to: ‘pyspectral_atm_correction_luts_no_aerosol.tgz’

pyspectral_atm_correction_luts_no_aerosol. 100%[========================================================================================>]  51.78M  10.2MB/s    in 6.0s

2022-11-15 14:44:44 (8.60 MB/s) - ‘pyspectral_atm_correction_luts_no_aerosol.tgz’ saved [54291625/54291625]

@wanggang19830806
Copy link
Author

wanggang19830806 commented Nov 15, 2022 via email

@zxdawn
Copy link
Member

zxdawn commented Nov 15, 2022

You can turn on the debug like this:

from satpy.utils import debug_on
debug_on()

Then you will see the directory to save data. For my mac laptop, it's /Users/xin/Library/Application Support/pyspectral/rayleigh_only. Downloading and extracting the tgz file should work.

@wanggang19830806
Copy link
Author

wanggang19830806 commented Nov 15, 2022 via email

@zxdawn
Copy link
Member

zxdawn commented Nov 15, 2022

@wanggang19830806
Copy link
Author

wanggang19830806 commented Nov 15, 2022 via email

@jshn9515
Copy link

I have the same problem. It shows the message:
Required file type 'agri_l1_4000m_geo' not found or loaded for 'satellite_zenith_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'solar_zenith_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'solar_azimuth_angle'
Required file type 'agri_l1_4000m_geo' not found or loaded for 'satellite_azimuth_angle'
But the true color map can also be shown without error.
Is that OK if I ignore this?

@mraspaud
Copy link
Member

@jshn9515 I think the angles are computed if not to be found in the data. The result should not be impacted significantly.

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

4 participants