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

RuntimeError: NetCDF: Not a valid ID ONLY for FCI data #3019

Open
akasom89 opened this issue Dec 14, 2024 · 5 comments
Open

RuntimeError: NetCDF: Not a valid ID ONLY for FCI data #3019

akasom89 opened this issue Dec 14, 2024 · 5 comments

Comments

@akasom89
Copy link

Hi,

I have several scripts that have been working well with various geostationary satellites. However, after adding FCI data (which became operational and accessible to all users 10 days ago), I encountered a RuntimeError: NetCDF: Not a valid ID.

Does FCI data need to be read or processed in a way that is different from other satellites? Are there any special considerations for its usage?

I could not find any specific/different instruction for FCI in documentation.

@strandgren
Copy link
Collaborator

Hi @akasom89, are you resampling the data? In that case you cannot overwrite the Scene object and need to do either
scn_r = scn.resample() or

scn_org = scn
scn = scn.resample()

where the latter lets you preserve the variable name.

You can find more details in #1861

@akasom89
Copy link
Author

Thanks @strandgren

Yes. I am using a new variable name.

My function ends in a similar way to below :

scn2 = scn.resample()
scn2['product'] = product_dataarray
return scn2

@akasom89
Copy link
Author

Based on #1861 (comment) :
1-file handlers are in scn and when the function ends, this is garbage cleaned?
2-this is the case only with FCI? I mean non of other even still netcdf formatted images (like goes and gk2a) does not have the same mechanism?

@strandgren
Copy link
Collaborator

@akasom89 So even if you use a different variable name, you get this error?

As mentioned in #1861 (comment) it's not an issue directly related to FCI, but rather the NetCDF4FileHandler which is used to read the FCI data.

@akasom89
Copy link
Author

Yes @strandgren. I get this error even when i am using a different variable name.

I thought based on what @gerritholl mentioned, I should find a way to return both scn and scn2 simultaneously, but i have not find any idea since now.

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