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

Is the 31(32)-band read by the modis_l1b reader converted to bright temperature by default? #2601

Closed
yhyxzx opened this issue Oct 15, 2023 · 2 comments

Comments

@yhyxzx
Copy link

yhyxzx commented Oct 15, 2023

MO_name = find_files_and_readers(start_time = datetime.datetime(2018,1,13),
                                    end_time = datetime.datetime(2018, 1, 14),
                                    base_dir = MO_dir,
                                    reader = 'modis_l1b')
MO_scn = Scene(filenames = MO_name)

MO_scn.load(["31"])

MO_31_pch= MO_scn['31'].values

print(MO_31_pch)

[[224.82077534 224.82077534 224.06764512 ... 268.48123397 269.34750602
  269.61057643]
 [225.25929876 225.11348828 224.15675673 ... 265.08996456 268.6422733
  269.05164946]
 [225.39022088 225.65119515 224.3197752  ... 261.12642697 267.41116957
  268.91539533]
 ...
 [254.71886542 248.50381537 250.49844873 ... 279.8721415  279.42006056
  277.73754198]
 [252.45219378 249.15759788 247.95806128 ... 279.92225038 279.09590572
  278.03694683]
 [250.93690751 248.38059802 251.12547422 ... 279.72884208 278.98039645
  279.05260576]]
@djhoese
Copy link
Member

djhoese commented Oct 15, 2023

Yes. Just for reference here is the YAML entry:

'31':
file_type: hdf_eos_data_1000m
name: '31'
resolution: 1000
calibration: [brightness_temperature, radiance]
coordinates: [longitude, latitude]
wavelength:
- 10.78
- 11.03
- 11.28

You can also check out MO_scn['31'].attrs which will usually include things like standard_name (the CF standard name), units, and other related metadata which should give you an insight into what format the data is in.

@yhyxzx
Copy link
Author

yhyxzx commented Oct 18, 2023

Ok,thank you!

@yhyxzx yhyxzx closed this as completed Oct 18, 2023
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