-
Notifications
You must be signed in to change notification settings - Fork 300
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
fix: li missing platform name #2993
base: main
Are you sure you want to change the base?
Changes from 6 commits
bc6ddbb
d4f711a
aab4ee8
5389569
b026cc0
c1c7357
b8a873c
3d1db6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,6 +191,7 @@ | |
import xarray as xr | ||
from pyproj import Proj | ||
|
||
from satpy.readers.fci_l1c_nc import _platform_name_translate | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're now using this across modules, should we remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From my view yes. But will wait for other feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without viewing the rest of this PR, I agree that something imported across modules should not have the |
||
from satpy.readers.netcdf_utils import NetCDF4FsspecFileHandler | ||
|
||
logger = logging.getLogger(__name__) | ||
|
@@ -516,10 +517,13 @@ def register_dataset(self, var_name, oc_name=None): | |
|
||
ds_name = var_name if oc_name is None else f"{var_name}_{oc_name}_sector" | ||
|
||
platform = self.filename_info["mission_prefix"] + "I" + self.filename_info["spacecraft_id"] | ||
|
||
ds_info = { | ||
"name": ds_name, | ||
"variable_name": var_name, | ||
"sensor": "li", | ||
"platform_name": _platform_name_translate[platform], | ||
"file_type": self.filetype_info["file_type"] | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move this to
fci_base.py
so it can also be used byfci_l2_nc.py
(see #3026). Or even anmtg_base.py
to be used by both FCI and LI.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Wasn't aware of that otherwise would have done it directly :-).