Frank DeMarco

Results 5 comments of Frank DeMarco

That example is actually a different file than the original. I unpacked the original file externally using `ncpdq -U BIG_FILE_packed.nc BIG_FILE_unpacked.nc` before opening it with xarray, so the decoding step...

Thanks for your help! I checked using the netCDF4 module, and the data is returned correctly ```python $ d = netCDF4.Dataset("BIG_FILE_packed.nc") $ d["ssrd"][d["time"][:] < d["time"][24], d["latitude"][:] == 44.8, d["longitude"][:] ==...

h5netcdf seems to be a separate issue for me as it gives me the error ``` OSError: Unable to open file (file signature not found) ``` I looked into it...

sure, no prob ```python $ xarray.open_dataset("BIG_FILE_packed.nc").ssrd.encoding {'source': 'BIG_FILE_packed.nc', 'original_shape': (743, 1801, 3600), 'dtype': dtype('int16'), 'missing_value': -32767, '_FillValue': -32767, 'scale_factor': 625.6492454183389, 'add_offset': 20500023.17537729} ```

That explains it to me! Not sure if it's still useful but I exported [the subset as a netCDF file]( https://parser.arbolmarket.com/datasets/packed_solar_data_subset.nc). ```python In [59]: packed_vals = xarray.open_dataset("packed_solar_data_subset.nc", mask_and_scale=False).ssrd.values In [60]:...