-
Notifications
You must be signed in to change notification settings - Fork 293
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
Creating a Scene object with Terra MODIS data #338
Comments
A couple things:
Hopefully we can get this all figured out for you. Good luck. |
Thanks for the quick reply! I've updated to the newest beta version of satpy (0.9.0b0) and the newest version of pyresample (1.10.0), but I'm unsure of what a geolocation file and band data file is or where I can find them, on the LAADS site I was only given one file. |
Geolocation for MODIS L1B is usually kept in a MOD03 file. |
Ok, I found the MOD03 file on LAADS with the same date and time as my file, now I need to get a hold of the band data file? |
Sorry, the MOD02 file is the band data, the MOD03 is the geolocation data. If you provide both of those to the scene ( |
Thanks for the help, I'll have a look at it tomorrow. |
I redownloaded the MOD02 and MOD03 files from LAADS and provided the files to the scene as you described, with debug_on() I get a message that satpy is unable to open the file set: Code Sample, a minimal, complete, and verifiable piece of codeimport os
from satpy import Scene
from pyresample import utils
from satpy.utils import debug_on
debug_on()
BASEDIR = "C:\scrypts\K8"
FILES1 = os.path.join(BASEDIR, "MOD021KM.A2018175.1940.061.2018176073241.hdf")
FILES2 = os.path.join(BASEDIR, "MOD03.A2018175.1940.061.2018176012619.hdf")
print("Band_Data_File = %s" %FILES1)
print("Geolocation_File = %s" %FILES2)
global_scene = Scene(reader='hdfeos_l1b', filenames = [FILES1, FILES2])
print(global_scene.available_dataset_names()) Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependenciesOS: Windows 7 |
@Krangaas look here: |
Thanks again! Installed pyhdf package and managed to create the scene object, trying to load channel "1" with global_scene.load("1"), but I seem to be missing another file. I think the datafiles for MOD02HKM and MOD02QKM are also needed? Actual Result, Traceback if applicable[DEBUG: 2018-06-28 13:05:00 : satpy.readers.yaml_reader] No coordinates found for DatasetID(name='longitude', wavelength=None, resolution=250, polarization=None, |
you can also just stay in 1 km resolution with this: global_scene = Scene(reader='hdfeos_l1b', filenames = [FILES1, FILES2], resolution=1000) |
@mraspaud I thought we fixed this so that it would realize the higher resolutions weren't available? Maybe it was just on the TODO list. |
It didn't seem to allow setting the resolution when creating the scene object: Code Sampleglobal_scene = Scene(reader='hdfeos_l1b', filenames = [FILES1, FILES2], resolution =1000) TracebackTraceback (most recent call last): So I did this instead: Code Sampleglobal_scene.load(["4","2","31"], resolution=1000) |
Yes sorry my bad, it should indeed be in the |
@djhoese that would be nice to have indeed |
I managed to get some nice looking composites out of the data, thanks again for the assistance! |
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
I want to look at weather satellite data over Svalbard and downloaded Terra MODIS data from LAADS, I am unable to create a Scene with the data though. It seems satpy is unable to find a reader for the data, but on satpy's readthedocs page (https://satpy.readthedocs.io/en/stable/) on the bottom table it says that satpy should have a reader for this type of data. I tried manually setting the reader with kwarg: reader ="hdfeos_l1b", but then I get: "ValueError: No supported files found".
I also had some difficulty creating a scene with NOAA-15 and NOAA-18 data, maybe I should open up a different issue for that problem?
Expected Output
I want to load up the data and get a printout of the available channels.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
OS: Windows 7
SatPy Version: 0.8.4
PyResample Version: 1.9.3
Python version: 2.7
The text was updated successfully, but these errors were encountered: