Package: open-radar-data
Open-Radar-DataA place to share radar data with the community, shared between the open radar packagesSample data setsThese files are used as sample data in openradar examples/notebooks and are downloaded byopen-radar-datapackage:0080_20210730_160000_01_02.scn.gz2006_20220324_000000_000.scnx.gz2013051000000600dBZ.vol71_20181220_060628.pvol.h5DWD-Vol-2_99999_20180601054047_00.h5SUR210819000227.RAWKPJV20220628072500_savevol_COSMO_LOOKUP_TEMP.ncMLA2119412050U.ncMLL2217907250U.003.ncT_PAGZ35_C_ENMI_20170421090837.hdfcfrad.20080604_002217_000_SPOL_v36_SUR.nccfrad.20211011_201557.188_to_20211011_201617.720_DOW8_PPI.nccfrad.20211011_201711.345_to_20211011_201732.860_DOW8_PPI.nccfrad.20211011_201733.023_to_20211011_201745.299_DOW8_RHI.nccfrad.20211011_202304.515_to_20211011_202326.412_DOW8_PPI.nccfrad.20211011_223602.712_to_20211011_223612.091_DOW8_RHI.nccor-main131125105503.RAW2049sample_sgp_data.ncsample_rainbow_5_59.ncgucxprecipradarcmacppiS2.c1.20220314.021559.ncgucxprecipradarcmacppiS2.c1.20220314.024239.ncgucxprecipradarcmacppiS2.c1.20220314.025840.nccorcsapr2cmacppiM1.c1.20181111.030003.ncRAW_NA_000_125_20080411181219RAW_NA_000_125_20080411181722RAW_NA_000_125_20080411182229RAW_NA_000_125_20080411182732RAW_NA_000_125_20080411183259RAW_NA_000_125_20080411183827RAW_NA_000_125_20080411184409RAW_NA_000_125_20080411184937RAW_NA_000_125_20080411185504RAW_NA_000_125_20080411190016RAW_NA_000_125_20080411190525RAW_NA_000_125_20080411191031RAW_NA_000_125_20080411191548RAW_NA_000_125_20080411192104RAW_NA_000_125_20080411192613RAW_NA_000_125_20080411193127RAW_NA_000_125_20080411193638RAW_NA_000_125_20080411194151RAW_NA_000_125_20080411194703RAW_NA_000_125_20080411195218RAW_NA_000_125_20080411195728RAW_NA_000_125_20080411200416RAW_NA_000_125_20080411200945RAW_NA_000_125_20080411201520RAW_NA_000_125_20080411202047KATX20130717_195021_V06example_plot_ppi_single_sweep.ncAdding new datasetsTo add a new dataset file, please follow these steps:Add the dataset file to thedata/directoryFrom the command line, runpython make_registry.pyscript to update the registry file residing inopen_radar_data/registry.txtCommit and push your changes to GitHubUsing datasets in notebooks and/or scriptsEnsure theopen_radar_datapackage is installed in your environmentpython-mpipinstallopen-radar-data# orpython-mpipinstallgit+https://github.com/openradar/open-radar-data# orcondainstall-cconda-forgeopen-radar-dataImportDATASETSand inspect the registry to find out which datasets are availableIn[1]:fromopen_radar_dataimportDATASETSIn[2]:DATASETS.registry_filesOut[2]:['sample_sgp_data.nc`]To fetch a data file of interest, use the.fetchmethod and provide the filename of the data file. This willdownload and cache the file if it doesn't exist already.retrieve and return the local pathIn[4]:filepath=DATASETS.fetch('sample_sgp_data.nc')In[5]:filepathOut[5]:'/Users/mgrover/Library/Caches/open-radar-data/sample_sgp_data.nc'Once you have access to the local filepath, you can then use it to load your dataset into pandas or xarray or your package of choice:In[6]:radar=pyart.io.read(filepath)Changing the default data cache locationThe default cache location (where the data are saved on your local system) is dependent on the operating system. You can use thelocate()method to identify it:fromopen_radar_dataimportlocatelocate()The location can be overwritten by theOPEN_RADAR_DATA_DIRenvironment
variable to the desired destination.