-
Notifications
You must be signed in to change notification settings - Fork 63
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
Extended met not functioning as expected #9
Comments
@CRMcMahon just saw this issue now, sorry! Will look into why this is the case. |
@CRMcMahon quick question that would be helpful to diagnose/fix this: which operating system are you using to run the above analysis? |
@CRMcMahon I was able to run the following code on a Mac with no issue: library(SplitR)
trajectory <-
hysplit_trajectory(
lat = 45.13767953,
lon = -93.20761498,
height = 500,
duration = 72,
run_period = 2015,
daily_hours = 0,
direction = "backward",
met_type = "reanalysis",
extended_met = TRUE)
saveRDS(trajectory, file = "trajectory_2015.rds") So I wonder if this is a Windows (or Linux?) issue. I'll investigate the code on the other platforms but, in the meantime, I've attached the output here as a zipped RDS file (which can be opened as a data frame in R using the |
Sorry for my delayed response. Was out on vacation and message was buried. Yes, operating on Windows 64 bit. I also have access to a Mac and will use that as a work around in the interim. Thank you for the response! From: Richard Iannone [mailto:[email protected]] @CRMcMahonhttps://github.com/CRMcMahon I was able to run the following code on a Mac with no issue: library(SplitR) trajectory <- hysplit_trajectory(
saveRDS(trajectory, file = "trajectory_2015.rds") So I wonder if this is a Windows (or Linux?) issue. I'll investigate the code on the other platforms but, in the meantime, I've attached the output here as a zipped RDS file (which can be opened as a data frame in R using the readRDS() function). trajectory_2015.rds.ziphttps://github.com/rich-iannone/SplitR/files/427744/trajectory_2015.rds.zip — |
I have been trying to load the gdas0p5 meteorological file in the met_type. I get the error in matrix(0, nr, nc) : object 'met' not found. When I try loading gdas1, it works but takes too long to load. What should be the expected output after running this command? It says "trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/gdas1/gdas1.jan17.w1'". trajectory <- hysplit_trajectory(lat = 28.5040, lon = 77.3018, height = 200, duration = 24, run_period = "2017-01-01", daily_hours = c(0, 6, 12, 18), direction = "forward", met_type = "gdas0p5", extended_met = TRUE) Is it possible to load the manually downloaded met files into R using the above code? |
Please, do You have any idea to solve the above problem? Still no extended_met with Win10 64bit. Thanks! rasto.
|
traj_df.zip Also when trying to make a dispersion_model object I get the following error: And, YES, I am running my code on windows 66bit OS too. I'd appreciate any help. Thank you. |
This should now (finally) be working on Windows 10 with the latest changes in |
I am attempting to run backward trajectories with the extended_met option turned on. The resulting data frame only includes the 12 initial variables, but also has an extra row inserted after each expected record. I have attempted to run the extended met with both the reanalysis and NARR met types. Is this issue with my code/inputs or a function problem? Thanks for the help!
trajectory <-
hysplit_trajectory(
lat = 45.13767953,
lon = -93.20761498,
height = 500,
duration = 72,
run_period = c(2015),
daily_hours = c(0),
direction = "backward",
met_type = "reanalysis",
extended_met = T)
head(trajectory)
receptor year month day hour hour.inc lat lon height pressure date2 date
1 1 15.0 1 1 0 0 45.138 -93.208 500.0 909.9 2015-01-01 00:00:00 2015-01-01
2 1 0.0 NA NA NA NA NA NA NA NA 2015-01-01
3 1 14.0 12 31 23 -1 45.244 -93.843 496.6 909.8 2014-12-31 23:00:00 2015-01-01
4 1 0.0 NA NA NA NA NA NA NA NA 2015-01-01
5 1 14.0 12 31 22 -2 45.364 -94.490 492.4 909.9 2014-12-31 22:00:00 2015-01-01
6 1 104.1 NA NA NA NA NA NA NA NA 2015-01-01
The text was updated successfully, but these errors were encountered: