[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

[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

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

2016-08-18 Thread Alemu Tadesse
having an open mind is that people 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 <alemu.tade...@gmail.com> > wrote: > > Dear Al

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

[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,

[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.

Re: [R] reading daily snow depth data

2015-06-16 Thread Alemu Tadesse
What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Tue, Jun 16, 2015 at 11:38 AM, Alemu Tadesse alemu.tade...@gmail.com wrote: Dear All, I was going to read daily snow data for each state and station/city from

[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

[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,

[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

Re: [R] date time problem

2014-12-07 Thread Alemu Tadesse
in specifying timezones in R... read ?timezones. [1] http://stackoverflow.com/questions/5963269/how-to-make- a-great-r-reproducible-example [2] http://www.r-project.org/doc/Rnews/Rnews_2004-1.pdf On Sun, 7 Dec 2014, Alemu Tadesse wrote: Dear R users I am puzzled by the following result

[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

[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)

[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] 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

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

2013-11-11 Thread Alemu Tadesse
to numeric. Thank you again On Mon, Nov 11, 2013 at 3:06 AM, PIKAL Petr petr.pi...@precheza.cz 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 PM To: r-help@r

[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

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

2013-03-21 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]]