Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error (down)Loading GHCN station data #99

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

Closed
ndichistan opened this issue May 23, 2023 · 6 comments
Closed

Error (down)Loading GHCN station data #99

ndichistan opened this issue May 23, 2023 · 6 comments

Comments

@ndichistan
Copy link

I am having trouble downloading data using the "get_ghcn_daily" function. Every attempt to download ghcn data including the default "meve" data results in Error. The stations are identified, but then there's an error downloading the data for the station. I also observed that I could not access the ftp page that the function tries to download the data from. Could you look into this.

@bocinsky
Copy link
Collaborator

Thank you for letting me know! I'll look in to it ASAP. In the mean time, do check out the rnoaa package, which provides much of the same functionality. I intend to begin using rnoaa on the backend for FedData, which should help in avoiding service interruptions in the future.

@bocinsky
Copy link
Collaborator

Fixed by switching to NCEI's https file servers... FTP service was disabled.

@ndichistan
Copy link
Author

Hi @bocinsky. Thanks for the help.
However, I tried the new version and got a series of errors and a warning message at the end without downloading any data still. I have attached an excerpt of the warning and error message. I have also attached the code.

##error
"Error (down)Loading GHCN station data for station USW00093983
(Down)Loading GHCN station data for station USW00093987
Downloading file: https://www.ncei.noaa.gov/pub/data/ghcn/daily/all/USW00093987.dly
Error (down)Loading GHCN station data for station USW00093987
Warning messages:
1: attribute variables are assumed to be spatially constant throughout all geometries
2: In CPL_write_ogr(obj, dsn, layer, driver, as.character(dataset_options), :
GDAL Error 1: C:\Users\ndichi\AppData\Local\Temp\Rtmpk5sfq6\FedData\extractions\ghcn\ghcn_BBTx/ghcn_BBTx_GHCN_stations.shp does not appear to be a file or directory."

##code
ghcn_BBTx<-get_ghcn_daily(template=station_coord, label="ghcn_BBTx", elements="PRCP", force.redo = T)

station_cord.txt

@bocinsky
Copy link
Collaborator

Ugh! The file format on the http server changed just enough to screw with things. I've implemented a correction, and am testing now. Reopening this! Thank you!

@bocinsky bocinsky reopened this May 26, 2023
@ndichistan
Copy link
Author

Ugh! The file format on the http server changed just enough to screw with things. I've implemented a correction, and am testing now. Reopening this! Thank you!

Any updates regarding this?

@bocinsky
Copy link
Collaborator

bocinsky commented Jun 1, 2023

Sorry, should have closed this. I pushed changes to Github last week that fix the issue, but am holding off on CRAN submission for now. Please install the dev version:

# install.packages("remotes")
remotes::install_github("ropensci/FedData")

I'll close this now.

@bocinsky bocinsky closed this as completed Jun 1, 2023
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