Displaying 20 results from an estimated 3000 matches similar to: "doubt in climate variability analysis in R! - code"
2010 Oct 29
2
doubt in climate variability analysis in R!
Hello all,
I am trying to use "clim.pact" package for my work, but since this is the beginning for me to use gridded datasets in "R", I am having some trouble.
I want to do seasonal analyses like trends, anomalies, variograms, EOF and probably kriging too to downscale my 1 degree gridded data to 0.5. So, as a first step, I compiled my entire dataset (with 25
2012 Jul 04
3
Please help
Dear All,
I am a research student in environment. I have only little programming knowledge. I am currently doing the last project about rainfall impact on ground water quality in an area. It happens that I have to use R to read rainfall data (3 dimension) from ASC file (*.asc), and then write them into one NCDF file (*.nc).
I have been working very hard on study R, but I
2012 Mar 17
1
memory, i am getting mad in reading climate data
I faced this problem when typing:
temperature <- get.var.ncdf( ex.nc, 'Temperature' )
*unable to allocate a vector of size 2.8 GB*
By the way my computer memory is 4G and the original size of the file is
1.4G,netcdf file
I don't know what is the problem.Any suggestion please
I tried also
memory limit(4000)
4000
but didnt solve the problem.any help
--
View this message in
2011 Dec 12
2
i can't read large NETCDF file like CRU
i use library(ncdf) to read this file as follow
library(ncdf)
sst.nc = open.ncdf(title)
lonall = get.var.ncdf(sst.nc,'lon')
latall = get.var.ncdf(sst.nc,'lat')
precip = get.var.ncdf(sst.nc,'pre')
close(sst.nc)
if i use this method my pc freeze and not respond until i restart it is
there
--
View this message in context:
2012 Apr 02
2
how to read netcdf file in R
Dear R Users,
I am using R 2.14.1 on windows
How to read netcdf files in R ?
Which packeges do we need to install for this,
and what commands are used for reading netcdf files.
Thanks,
Best Regards,
Yogesh Tiwari
--
Yogesh K. Tiwari (Dr.rer.nat),
Scientist,
Centre for Climate Change Research,
Indian Institute of Tropical Meteorology,
Homi Bhabha Road,
Pashan,
Pune-411008
INDIA
Phone:
2008 Jul 09
1
netCDF to TIFF
Greetings R users!
I am working with the ENSEMBLE climate data (10 min resolution daily
temperatures images for all of Europe 1950-2006). The data comes
packaged in a single netCDF file. I would like to read the data in and
export a subset (2002-2006) as geotiffs (one image per day). So far, I
can successfully read in the data and view the images within an R
display window. However, I have yet to
2011 Sep 07
3
Editing the variables attributes section in the netCDF header of netCDF files created using the package ncdf.
Hi,
I am using the package ncdf to create netCDF files and I want to mimic the the header of an exiting netCDF file created outside of R. Below is what the existing header looks like (part of it that is different):
netcdf ccd1984_05_08 {
dimensions:
lat = 1974 ;
lon = 1894 ;
time = UNLIMITED ; // (1 currently)
variables:
int time(time) ;
2011 Sep 12
1
Problem in put.var.ncdf
Dear all,
I have a problem in writing a variable to a NetCDF-File.
My code works pretty well until the step put.var.ncdf():
# Get variables
#---------------------
data1 <- open.ncdf("PREC_me_03-1500.nc")
prec1 <- get.var.ncdf(data1,"PRECT")
dim.time <- get.var.ncdf(data1,"time2")
close.ncdf(data1)
# Calculation
#---------------------
spi24.me <-
2011 Jul 14
1
Error: "non-numeric argument to binary operator"
Hi
I am posting in the topic related to the "non-numeric argument to binary
operator" as I got similar problem while running the netcdf code. I have
attached the file with this post. It is a climate data from NOAA site. The code
follows as:
library(survival)
library(RNetCDF)
library(ncdf)
setwd("c:/projects/netcdfcsfiles")
Conn42 =
2011 Jul 07
1
Select element out of several ncdf variables
Hi there
I'm working with ncdf data. I have different dataset for 4 runs, 4 seasons
and 3 timeslices (48 datasets in total). The datasets have the following
dimensions: 96 longitudes, 48 latitudes and 30 time steps. To read all of
them in, I wrote the following loop:
runs <- c("03","04","05","06")
years <- c(1851,1961,2061)
seasons <-
2010 Sep 23
1
NetCDF file: adding a variable
I am trying to create a NetCDF file with bathymetry (a matrix) and then to
add a grid type (an integer) as variables.
This is the relevant part of the code:
library(ncdf)
wfile="my_file.nc"
msv=-10
grdtp=2
# Dimensions
d1=dim.def.ncdf("lon","degrees",as.double(lon))
d2=dim.def.ncdf("lat","degrees",as.double(lat))
# Variables
2004 Nov 12
1
Problems installing ncdf package into R
Hello
Can someone please look into the problem with installing ncdf package into R.
I get this message when I try install it:
> install.packages("ncdf")
trying URL `http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 22827 bytes
opened URL
downloaded 22Kb
Warning message:
No package "ncdf" on CRAN. in:
2016 Apr 22
2
Unexpected values obtained when reading in data using ncdf and ncdf4
Dear R Users,
I am encountering a problem when reading nc files into R using the ncdf and ncdf4 libraries. The nc files are too large to attach an example (but if someone is interested in helping out I could send a file privately via an online drive), but the code is basic:
for(i in 1:length(thesenames[,1])){
data <- nc_open(paste(INDIR, thesenames[i,c("wholename")],
2011 Sep 24
2
ncdf - install error
Dear all,
I'm having issues with the installation of the ncdf package. It returns a
non-zero exit status. Can anyone suggest what I should do next? FYI, I do
not have problems installing other packages.
Thanks.
Muhammad
* installing *source* package ?ncdf? ...
checking for nc-config... /usr/local/bin/nc-config
configure: creating ./config.status
config.status: creating src/Makevars
**
2005 Apr 27
1
ncdf with opendap/dods support
Aloha,
I just made some quick hacks on the configure script with the 'ncdf'
package to make it link with the opendap/dods libraries (opendap.org)
rather than the netcdf api library. Basically, this allows a user to
interact in R with a remotely served dataset as if it were a netcdf file
on the local filesystem (read-only). Functionality with local files
should continue to work as
2017 Jun 28
4
Extraneous full stop in csv read
I ran into a puzzling minor behaviour I would like to understand.
Reading in a csv file, I find an extraneous "." after a column header,
"in" [short for "inches"] thus, "in.". Is this due to "in" being
reserved? I initially blamed this on RStudio or to processing the data
through LibreCalc. However, the same result occurs in a console R
session.
2012 Jan 05
1
[ncdf] programmatically copying a netCDF file
How to programmatically (i.e., without no or minimal handcoding) copy
a netCDF file? (Without calling
> system("cp whatever wherever")
:-) Why I ask:
I need to "do surgery" on a large netCDF file (technically an I/O API
file which uses netCDF). My group believes a data-assimilation error
caused a data variable to be corrupted in a certain way, so I'm going
to
2011 Jan 12
2
RNetCDF: retrieving variable names and units
Dear List,
does anybody has experience with the RNetCDF package? I manage to open a connection and copy data from a ncdf file but would need a way to automatically retrieve variable names (ideally all of them from one file) and units from the file.
Any ideas?
Jannis
2013 Mar 07
1
install error - Netcdf library (linux)
Hi All,
i'm on a debian linux 64bit,
i'm tying to install the netcdf intraface, i tried both ncdf and ncdf4
but trying to build i received the error :
(i have necdf installed on my machine and it is able to fiund it .. no missed .h)
epy at epinux:~$ sudo R CMD INSTALL --configure-args="-with-netcdf_incdir=/usr/include -with-netcdf_libdir=/usr/lib" ncdf4_1.8.tar.gz
*
2016 Apr 22
0
Unexpected values obtained when reading in data using ncdf and ncdf4
On Fri, Apr 22, 2016 at 1:32 AM, Louise Mair <louise.mair at slu.se> wrote:
> Dear R Users,
>
> I am encountering a problem when reading nc files into R using the ncdf
> and ncdf4 libraries. The nc files are too large to attach an example (but
> if someone is interested in helping out I could send a file privately via
> an online drive), but the code is basic:
>
?[...]?