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

Wrong data type of orbital_parameters in FY4A AGRI reader #1243

Closed
zxdawn opened this issue Jun 29, 2020 · 0 comments · Fixed by #1244
Closed

Wrong data type of orbital_parameters in FY4A AGRI reader #1243

zxdawn opened this issue Jun 29, 2020 · 0 comments · Fixed by #1244

Comments

@zxdawn
Copy link
Member

zxdawn commented Jun 29, 2020

Describe the bug
The elements of orbital_parameters should be number instead of array.
Otherwise, it can cause the error when it's saved to netcdf file:

  File "/yin_raid/xin/miniconda3/envs/tobac/lib/python3.7/site-packages/satpy/writers/cf_writer.py", line 318, in default
    return [self.default(item) for item in obj]
TypeError: iteration over a 0-d array

Expected behavior

orbital_parameters: {'satellite_nominal_latitude': 0.0, 'satellite_nominal_longitude': 104.69999694824219, 'satellite_nominal_altitude': 35786000.0}

Actual results

orbital_parameters: {'satellite_nominal_latitude': array(0., dtype=float32), 'satellite_nominal_longitude': array(104.7, dtype=float32), 'satellite_nominal_altitude': array(35786000., dtype=float32)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants