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

AttributeError: 'AreaDefinition' object has no attribute 'crs' #2202

Closed
gersmit opened this issue Sep 18, 2022 · 2 comments
Closed

AttributeError: 'AreaDefinition' object has no attribute 'crs' #2202

gersmit opened this issue Sep 18, 2022 · 2 comments

Comments

@gersmit
Copy link

gersmit commented Sep 18, 2022

Good morning,

I have a quick question:
Continuously ran on my Raspberry pi with Satpy and other necessary programs for making satellite images.
There was an error on the sdcard and I reinstalled the image I made of the properly working system.
Perfect except for one thing.
I'm getting an error now and can't figure out where it comes from.
Can you help me?

Many thanks in advance, Ger

The Error = AttributeError: 'AreaDefinition' object has no attribute 'crs'

TOTAAL ERROR SCRIPT
library en opslag ingesteld
MSG3-SEVI-MSG15-0100-NA-20220916131915.899000000Z-NA.nat
MSG3-SEVI-MSG15 2022-09-16 13 19
files : {'seviri_l1b_native': ['MSG3-SEVI-MSG15-0100-NA-20220916131915.899000000Z-NA.nat']}
file en scene geladen
Traceback (most recent call last):
File "regen_plot_save.py", line 73, in
scn.load(['VIS008'], calibration=["reflectance"], upper_right_corner='NE')
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 982, in load
self._read(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 890, in _read
return self._read_datasets(nodes, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 732, in _read_datasets
new_datasets = reader_instance.load(ds_ids, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 918, in load
ds = self._load_dataset_with_area(dsid, coords, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 1091, in _load_dataset_with_area
ds = _set_orientation(ds, upper_right_corner)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 968, in _set_orientation
projection_type = _get_projection_type(dataset.attrs['area'])
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 1005, in _get_projection_type
area_crs = dataset_area_attr.crs
AttributeError: 'AreaDefinition' object has no attribute 'crs'

@djhoese
Copy link
Member

djhoese commented Sep 18, 2022

This likely means the version of pyresample is old. Try updating and see how it goes.

@gersmit
Copy link
Author

gersmit commented Sep 18, 2022

@djhoese, thank you, everything is working fine now. I can continue.

@djhoese djhoese closed this as completed Sep 18, 2022
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