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
satpy resample call -> numby.ndarray deepcopy error #883
Comments
If you do Could you also do |
and
and print(glbl['cldfra'].attrs)
There seems to be something strange in start_ and end_times. I also have tried several different variables (file_key) and the result is the same. Maybe something in my python installation is not right? But, I got the same output with Anaconda and Miniconda installations (as expected). |
Try, after |
Great and thank you a lot! This fixed the issue. |
Oh that is odd; an OMPS pass spanning more than a year. Would it be possible for you to put the files you are using somewhere I can get to them? Where did you get them from? |
I got those files from NASA. There have been some file changes during passed years. And yes, we have a FTP server, but, I have to send the psw via e-mail. In this case, the orbit is not spanning over one year - this was reprocessed file. The file specify the following time variables
The output from |
So I'm looking at the code and I figured out what's going on with the times at least. The start/end time are actually coming from the filename and I incorrectly marked the creation time as the end time. I can fix that. For the weird attributes, what do you get for |
Also you mentioned "PCA" products. I think I've found them online, but were you able to read this with current Satpy? |
Can you point me to the exact NASA website where you got these from. I was going to fix this today, but have discovered something annoying. These new files seem to be NetCDF4 files that are being labeled as Fixing the reader to read these files is a larger task than I had thought and I will not have the time to do so. Fixing the reader would entail:
This becomes almost like writing a whole new reader, but is the best option in the long run. |
Yes, I can. Direct link for 2019 data is Regarding PCA - those are quite new files (PCA- Principal Component Algorithm), implemented just in 2018. I'm interested to develop a reader for them because we have a Direct Readout station for OMPS and we are processing PCA SO2 products there. But, also TO3 file formats are usable for ozone etc. |
To your earlier questions.
and
I just today noticed that the gdal wasn't conda-forge version. But, the update didn't change anything. |
Describe the bug
Resampling of OMPS EDR data does not run. The error comes from deepcopy with numby.ndarray. The data can be load as well as visualized with show command. The same happens with new OMPS SO2 PCA reader (and data files).
Is this a bug or something else? I'm new in satpy and in python in general and thus,... well, I don't know.
To Reproduce
Expected behavior
Swath data re-sampled into a regular lat-lon grid
Actual results
Environment Info:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: