xarray icon indicating copy to clipboard operation
xarray copied to clipboard

same python script (using xr.to_netcdf) produces different files

Open jinqj opened this issue 1 year ago • 1 comments

What is your issue?

Dear all,

I have a question about producing netcdf files using xr.to_netcdf(). I used the same script to process MODIS data but got some files of different sizes and other files of same size. Here is the screenshot of the results of "ls -all". You can see that some files of the same name have the same size, but other do not. I am sure my script is the same. I am wondering if anyone here encountered the similar problem. This issue is really annoying. BTW, I run the script in the same conda environment.

Thank you, Qinjian

Screen Shot 2022-07-02 at 11 45 46 PM Screen Shot 2022-07-02 at 11 45 28 PM

jinqj avatar Jul 03 '22 04:07 jinqj

Hmm.... are they being compressed and do some files contain more NaN cells so they compress better?

dcherian avatar Jul 06 '22 16:07 dcherian