emilylaiken / merradownload

Script to download data from MERRA-2 database based on lat/lon coordinates
31 stars 19 forks source link

gi NameError: name 'dfs' is not defined #8

Open MorrCarter opened 5 months ago

MorrCarter commented 5 months ago

i get this error after running th merra scraping code

Issue with file MERRA2_300.inst1_2d_asm_Nx.20071229.nc4 Issue with file MERRA2_300.inst1_2d_asm_Nx.20071230.nc4 Issue with file MERRA2_300.inst1_2d_asm_Nx.20071231.nc4 Traceback (most recent call last): File "", line 1, in File "C:\Users\afris\Desktop\pyy\merra_scraping.py", line 170, in df_hourly = pd.concat(dfs) ^^^^^^^^^^^^^^ File "C:\Users\afris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pandas\core\reshape\concat.py", line 382, in concat op = _Concatenator( ^^^^^^^^^^^^^^ File "C:\Users\afris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pandas\core\reshape\concat.py", line 445, in init objs, keys = self._clean_keys_and_objs(objs, keys) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\afris\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pandas\core\reshape\concat.py", line 507, in _clean_keys_and_objs raise ValueError("No objects to concatenate") ValueError: No objects to concatenate

dfs Traceback (most recent call last): File "", line 1, in NameError: name 'dfs' is not defined