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
Failed to load AVHRR LAC data #2001
Comments
Thanks for reporting this! Do you get this error with several files or just this one? |
I have tested another file, but not the error I got before: # code
scn = Scene(['NSS.LHRR.ND.D91330.S2140.E2146.B0278888.WI'], reader='avhrr_l1b_gaclac')
scn.load([10.8])
# error
Traceback (most recent call last):
File "avhrr.py", line 27, in <module>
scn.load([10.8])
File "/root/miniconda3/lib/python3.8/site-packages/satpy/scene.py", line 1205, in load
self._read_datasets_from_storage(**kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/scene.py", line 1225, in _read_datasets_from_storage
return self._read_dataset_nodes_from_storage(nodes, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/scene.py", line 1231, in _read_dataset_nodes_from_storage
loaded_datasets = self._load_datasets_by_readers(reader_datasets, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/scene.py", line 1256, in _load_datasets_by_readers
new_datasets = reader_instance.load(ds_ids, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/readers/yaml_reader.py", line 943, in load
ds = self._load_dataset_with_area(dsid, coords, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/readers/yaml_reader.py", line 839, in _load_dataset_with_area
ds = self._load_dataset_data(file_handlers, dsid, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/readers/yaml_reader.py", line 711, in _load_dataset_data
proj = self._load_dataset(dsid, ds_info, file_handlers, **kwargs)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/readers/yaml_reader.py", line 687, in _load_dataset
projectable = fh.get_dataset(dsid, ds_info)
File "/root/miniconda3/lib/python3.8/site-packages/satpy/readers/avhrr_l1b_gaclac.py", line 136, in get_dataset
_, data = self.reader.get_lonlat()
File "/root/miniconda3/lib/python3.8/site-packages/pygac/reader.py", line 569, in get_lonlat
self._adjust_clock_drift()
File "/root/miniconda3/lib/python3.8/site-packages/pygac/pod_reader.py", line 490, in _adjust_clock_drift
missed_lons, missed_lats = self._compute_missing_lonlat(missed_utcs)
File "/root/miniconda3/lib/python3.8/site-packages/pygac/pod_reader.py", line 431, in _compute_missing_lonlat
tle1, tle2 = self.get_tle_lines()
File "/root/miniconda3/lib/python3.8/site-packages/pygac/reader.py", line 690, in get_tle_lines
tle_data = self.read_tle_file(self.get_tle_file())
File "/root/miniconda3/lib/python3.8/site-packages/pygac/reader.py", line 666, in get_tle_file
raise RuntimeError("TLE directory not specified!")
RuntimeError: TLE directory not specified! |
That second error I'm more familiar with, you need to have a file with the TLE data to be able to navigate the scene. Have a look at the documentation for Pygac to set it up. |
Thanks for your explanation! I will try it again with your suggestion. |
Describe the bug
Failed to load AVHRR LAC data
To Reproduce
Actual results
Environment Info:
NSS.LHRR.NF.D88278.S0708.E0716.B1963535.zip
The text was updated successfully, but these errors were encountered: