-
Notifications
You must be signed in to change notification settings - Fork 84
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
Missing daily precipitation data in winter months on ncdc() calls #412
Comments
It appears this is an issue with the data coming from the api. However while investigating the issue I noticed the library uses the old api url of https://www.ncdc.noaa.gov/cdo-web/api/v2/. According to Climate Data Online: Web Services Documentation It has been changed to https://www.ncei.noaa.gov/cdo-web/api/v2/ |
I appologize after emailing with NCEI, NCEI is ending support for API v2 The correct api url is https://www.ncei.noaa.gov/access/services/data/v1 |
Thanks so much, there have been a couple of this API switches lately and I definitely was unaware of this one. I've been lagging on this project lately but I'll get this incorporated soon. Thanks for tracking down the issue! |
Any update on this? I have a due date coming up and using this library and data is a major component of the code. |
Unfortunately, unlike the last API update they did, not only did they change the base URL but the entire structure and naming scheme of the data. All the R functions related to NCDC are completely broken currently. I am now actively working on it but I can't honestly give a timeframe for completion because I haven't gotten any of it working yet. I will keep you posted. Thanks for bumming this to the front again! |
@kross0926 - I figured out at least the data pull part of the new API so I should be able to at least hack together something quickly for your due date depending what info or metadata you need. For example a new query might look like this: precip_tmp <- ncdc2(datasetid='daily-summaries', datatypeid=c('PRCP'), stationid="US1LAWC0001",
startdate = "2015-10-01", enddate = "2016-09-30", limit=500,add_units = TRUE) Which would currently look like:
Then you could do your conversion, notice the chance of # convert to precip to inches
precip_tmp$data$precip_mm <- round(precip_tmp$data$prcp/10,2) #GHCN data retrieve is in 10ths of mm
precip_tmp$data$precip_IN <- round(precip_tmp$data$precip_mm / 25.4,2) If this would work for your immediate purposes, I could get a version pushed to a github branch that you could install tomorrow. It would be fragile (e.g. prone to break without good errors if the data query was invalid) and without the metadata for now. |
Thanks for your response and hard work on getting something functional. I think just the data pull capability would be helpful, I don't need the metadata right away. Thanks! |
@kross0926 Okay I've pushed the minimal data pull option to github. You'll have to install it via:
Then run this to see if it works:
Notice the |
This looks like it is working. As far as next needs if you could work on ncdc_stations() functions next. I was hoping they would still work but doesn't seem to be the case. I need the datasetid = NORMAL_DLY and 'daily-summaries' (used to be 'GHCND'), I usually retrieve stations within a bounding box. Thanks! |
When executing an NCDC call to get daily precipitation data, it appears the data from January to March is now missing. This has just started happening recently. I have downloaded the matching data from NOAA's online application to verify. Any ideas on what is happening? My code is below. I have attached the NCDC online download as well.
Session Info
The text was updated successfully, but these errors were encountered: