Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch_MPE pass fail and not recognizing zipped files. #41

Open
lancewatkins opened this issue Jul 8, 2015 · 1 comment
Open

fetch_MPE pass fail and not recognizing zipped files. #41

lancewatkins opened this issue Jul 8, 2015 · 1 comment

Comments

@lancewatkins
Copy link
Contributor

The function successfully downloads files with the "nws_precip_conus_yyyymmdd.nc" file name based on date range defined by the user. However, I'm realizing it's not shooting back an error when files requested do not exist. For example, I requested a range Jan 1st 2002 through Jan 1st 2014. It downloaded all these files and it appears they are netcdf files. However, when you look at the actually ftp there is only data for 2005 onward. If I try and read in the downloaded files prior to 2005 the file format isn't recognized as a NetCDF.

Additionally, some of the "nws_precip_conus_yyyymmdd.nc" files on the ftp are double zipped as .tar.gz. However, when the fetch_MPE downloads the files they appear as just the nc file but still can't be read in. There didn't appear to be code within the fetch_MPE for checking to see if the file is zipped and if so unzipping the file.

@lancewatkins lancewatkins self-assigned this Jul 8, 2015
Jwely added a commit that referenced this issue Jul 8, 2015
@Jwely
Copy link
Member

Jwely commented Jul 8, 2015

the empty netcdf issue should now be fixed, but the fact that this function may sometimes need to download files with a tar.gz extension and extract them still needs to be addressed.

@lancewatkins lancewatkins removed their assignment Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants