[R] Merra2 files

2016-11-26 Thread Alemu Tadesse
Dear R users, I am wondering if someone has a script to download and read Merra 2 files. I really appreciate your help. Best, Alemu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see htt

[R] I have a python API script that works and would like to translate it to R

2016-11-14 Thread Alemu Tadesse
Hi R-Geeks, I have a python rest API script that works very well. I am learning R and would like to translate it to R. I am wondering if there is a person who uses API and knows both langues (Python and R) and willing to help me so that I can share the Python script. Thanks, AT [[alte

Re: [R] Regressing the residuals on the country dummies

2016-08-18 Thread Alemu Tadesse
ople keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Aug 18, 2016 at 11:29 AM, Alemu Tadesse > wrote: > > Dear All, > > > > I am wondering if someone knows an R eq

Re: [R] Regressing the residuals on the country dummies

2016-08-18 Thread Alemu Tadesse
Dear All, I am wondering if someone knows an R equivalent of the following API call in python. "-" import time import pandas as pd start_time = time.clock() timer =time.clock() import pkg_resources pkg_resources.require("pysimplesoap==1.05a") from pysimplesoap.client import SoapClient impo

[R] Merra hourly data

2015-06-17 Thread Alemu Tadesse
I am wondering if any has a script to download hourly Merra data (I am interested in wind speed and temperature) Thank you for your help AT [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

Re: [R] reading daily snow depth data

2015-06-16 Thread Alemu Tadesse
0 0 0 0 ... > > $ V15: num 0 0 0 0 0 ... > > $ V16: num 0 - 0 0 0 ... > > $ V17: num 0 - 0 0 0 ... > > $ V18: num 0 - 0 0 0 ... > > $ V19: num 0 - 0 0 0 ... > > $ V20: num 0 - 0 0 0 ... > > $ V21: num 0 - 0 0 0 ... > >

[R] reading daily snow depth data

2015-06-16 Thread Alemu Tadesse
Dear All, I was going to read daily snow data for each state and station/city from the following link. I was not able to separate a given state's data from the rest of the contents of the file, read the data to a data frame and save it to file. http://www1.ncdc.noaa.gov/pub/data/snowmonitoring/f

[R] average wind direction calculation

2015-03-22 Thread Alemu Tadesse
Dear All, I am wondering if you have an R script or know an R package for an average wind direction Best, Alemu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

[R] help with RODBC

2015-03-04 Thread Alemu Tadesse
I want to apply the following query to my database. P2<-sqlQuery(ch1,'select *, TimeStamp_Local, ref_density, ref_dewpoint, ref_dir, ref_precip, ref_press, ref_rh, ref_snowfall, ref_snowdepth, ref_temperature_avg, ref_temperature_m

Re: [R] date time problem

2014-12-07 Thread Alemu Tadesse
;- as.POSIXct( rawtime1, tz="America/New_York" ) > format( testtime3, tz="Etc/GMT", usetz=TRUE ) > > If you want the output to omit the timezone information you can omit the > usetz argument: > > format( testtime3, tz="Etc/GMT" ) > > If you have not

[R] date time problem

2014-12-07 Thread Alemu Tadesse
Dear R users I am puzzled by the following result from R script. I am trying to convert local time to UTC time. Time zone is -5, therefore I used the following approach. Below is the script. > Corrected_SA_data$date_time[k-1] [1] "2007-03-11 01:00:00" > Corrected_SA_data$TZ[k-1] [1] -5 > Correcte

[R] grided files

2014-10-31 Thread Alemu Tadesse
Dear All, I have a file the sample of which is attached. I was trying to read the data and put it in a data frame. For example in this file, I have 1998 snow depth data and each block of data belongs to one month.Each data point belongs to a given latitude and longitude (which is in another fi

[R] problem with Zenith angle calculation

2014-10-30 Thread Alemu Tadesse
Dea R users, In the package insol I was trying to calculate sunzenith angle. I am using two different date formats as shown below and both give me different results. Comapring the results from NOAA website the one below is correct. xx<-JD(ISOdate(2010,10,1,11)) sv=sunvector(xx,lat,lon,tmz) zenith

[R] reading data from a web

2014-10-29 Thread Alemu Tadesse
Dear All, I have data of the format shown in the link http://www.data.jma.go.jp/gmd/env/data/radiation/data/geppo/201004/DR201004_sap.txt that I need to read. I have downloaded all the data from the link and I have it on my computer. I used the following script (got it from web) and was able to r

[R] I cannot get files from this site

2014-10-24 Thread Alemu Tadesse
Dear r-help users, I have been trying to download files from this link ftp://ftp.bsrn.awi.de/tat/tat0100.dat.gz sinsce yesterday using download.file (which I use very often for such task) and unfortunately it did not work for me for this ftp site. I can manually download the files - but not with s

Re: [R] Date handling in R is hard to understand

2013-11-11 Thread Alemu Tadesse
numeric. Thank you again On Mon, Nov 11, 2013 at 3:06 AM, PIKAL Petr wrote: > Hi > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > > project.org] On Behalf Of Alemu Tadesse > > Sent: Friday, November 08, 2013 8:41 P

[R] Date handling in R is hard to understand

2013-11-08 Thread Alemu Tadesse
Dear All, I usually work with time series data. The data may come in AM/PM date format or on 24 hour time basis. R can not recognize the two differences automatically - at least for me. I have to specifically tell R in which time format the data is. It seems that Pandas knows how to handle date wi

Re: [R] why a moving average fun takes too long time!!

2013-03-20 Thread Alemu Tadesse
I have so many gz files of the type (filename.nc.gz) where nc stands for netcdf file. I used the following commands : path="C:/Documents and settings/AER/NorthAmerica-West/zipedfiles/" # examples of zipped files files <- list.files(path, recursive=TRUE, full.names=TRUE) files <- grep(".*\\.gz$",

Re: [R] R encrypt/decrypt

2013-01-09 Thread Alemu Tadesse
Dear All, I am wondering if there is a script in R or Python that can convert shape files to KML oKMZ files. I used a free online shp2kml.exe file my locations all went to Africa. But, I know they are in the USA. Thanks, Alemu [[alternative HTML version deleted]] __