Making .gz Files Useful For MetPy Operations #2682
-
Hello folks! I am attempting to get ahold of ACARs data from the NWS but the data files that I have found are all .gz files which are very difficult to deal with. Any ideas? getting them into a manageable netCDF file and then into a pandas dataframe would be the best option. The data I am attempting to use is here: ([https://madis-data.ncep.noaa.gov/madisPublic1/data/point/acars/netcdf/]) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I think these files are just compressed using "gzip". On Linux, you can just do "gunzip filename.nc.gz" to get the regular netcdf file back. |
Beta Was this translation helpful? Give feedback.
-
I have not tested this on windows, but xarray may be able to load it in one step import xarray as xr
# wget https://madis-data.ncep.noaa.gov/madisPublic1/data/point/acars/netcdf/20220920_0000.gz
nc = xr.open_dataset('20220920_0000.gz') |
Beta Was this translation helpful? Give feedback.
I have not tested this on windows, but xarray may be able to load it in one step