[Rnomads-user] cygwin warning on ReadGrib.
Daniel Bowman
danny.c.bowman at gmail.com
Sat Mar 3 05:26:52 CET 2018
Hi Dr. Su,
This sounds like a really great project, and I'm glad rNOMADS may be a
useful tool for it. In order to diagnose the ReadGrib issue, I need
to know two things: 1. What operating system are you using (and
specifically, are you using cygwin in windows)? 2. What do you get
when you open an R session and type:
library(rNOMADS)
sessionInfo()
You can use the GribInfo() function to get an idea of what's in your
grib files.
The BuildProfile() function is a way to capture either the nearest
model node to a given location, or even interpolate between nodes to
get an "exact" value. I believe it is reasonably efficient, but if
using it on millions of records is taking more than a few days, please
let me know and I'll see if I can make it run faster.
Best,
Danny
On Thu, Mar 1, 2018 at 1:28 AM, Jason G. Su <jasonsu at berkeley.edu> wrote:
> Dear Dr. Bowman,
>
>
>
> I really appreciated the efforts you made on downloading and processing NOAA
> Grib data in an R environment. I downloaded several years of NOAA historical
> weather forecast data (grib or grib2) and wanted to assign hourly weather
> data to millions of records of asthma rescue medication use with their
> lat/lng information. There are several things that I cannot figure out and I
> am grateful if you could provide suggestions:
>
>
>
> 1. ReadGrib function never worked in my code: an error message always
> showed up as “Error in if (csv.str[1] == "cygwin warning:") { : missing
> value where TRUE/FALSE needed”. Could you provide some suggestions on why
> this occurred and how to correct for that?
>
>
>
> 2. Though I could get a list of forecasts, levels and variables through
> the ParseModelPage function data grabbed through CrawlModels, I cannot find
> a way to get similar parameters on the grib and grib2 files stored locally.
> I believe relative path function also works in rnomads package. Any
> suggestions on this?
>
>
>
> 3. I need assign date and time weather conditions to millions of medical
> records of corresponding date and time based on spatial locations. Do you
> have any suggestions on how to do that?
>
>
>
> Thanks,
> Jason G. Su
>
>
>
> -----------------------------------------
>
> Jason G. Su, PhD
>
> Associate Researcher and Principal Investigator
>
> Environmental Health Sciences
>
> School of Public Health
>
> University of California, Berkeley
>
> Berkeley, CA 94720-7360
>
>
More information about the Rnomads-user
mailing list