Displaying 20 results from an estimated 900 matches similar to: "Remove attribute from netcdf4 object"
2017 Aug 14
2
ncdf4: Why are NAs converted to _FillValue when saving?
Dear all
I'm a newbie regarding netcdf data. Today I realized that I maybe do not understand some basics of the netcdf. I want to create a *.nc file containing three variables for Switzerland. All data outside of the country are NAs. The third variable is calculated from the first two variables. Basically there is no problem to do that. I copy the file with the data of the first variable,
2017 Aug 02
0
Remove attribute from netcdf4 object
Dear Marc
Thanks for your remark. I don't want to use both packages. I mentioned the package RNetCDF to show that there is a similar function I' d like to use.
Raphael
Von: Marc Girondot [mailto:marc.girondot at u-psud.fr]
Gesendet: Mittwoch, 2. August 2017 14:51
An: Felber Raphael Agroscope <raphael.felber at agroscope.admin.ch>; r-help at r-project.org
Betreff: Re: [R] Remove
2017 Aug 02
0
Remove attribute from netcdf4 object
Hi Marc
That's a workaround I can use. Thanks. I'm a newbie regarding netCDF data. Is there any information I'm losing when switching between the packages?
Raphael
Von: Marc Girondot [mailto:marc.girondot at u-psud.fr]
Gesendet: Mittwoch, 2. August 2017 15:13
An: Felber Raphael Agroscope <raphael.felber at agroscope.admin.ch>
Betreff: Re: AW: [R] Remove attribute from netcdf4
2017 Aug 02
0
Remove attribute from netcdf4 object
Le 02/08/2017 ? 12:03, raphael.felber at agroscope.admin.ch a ?crit :
> Dear all
>
> For a model I need to combine several netCDF files into one (which works fine). For better overview I'd like to delete/remove some of the attributes. Is there a simple way doing this?
>
> I'm using the package netcdf4, which creates an object of class(nc) = "ncdf4". It seems that
2017 Aug 14
0
ncdf4: Why are NAs converted to _FillValue when saving?
On Mon, Aug 14, 2017 at 5:29 AM, <raphael.felber at agroscope.admin.ch> wrote:
Dear all
>
> I'm a newbie regarding netcdf data. Today I realized that I maybe do not
> understand some basics of the netcdf. I want to create a *.nc file
> containing three variables for Switzerland. All data outside of the country
> are NAs. The third variable is calculated from the first two
2017 Sep 07
1
extend limited dimension in netcdf
Dear all
I have to combine 3D netCDF files (lon, lat, time). The files contain data of one month and I need a year file containing all the data. Because the attributes of all files are the same, I copied the first file and appended the data of the other months. This went well until the provider of the data changed the time-dimension from UNLIMITED to LIMITED. Is there a way to change the time
2017 Aug 22
1
How to benchmark speed of load/readRDS correctly
Note that if you force a garbage collection each iteration the times are
more stable. However, on the average it is faster to let the garbage
collector decide when to leap into action.
mb_gc <- microbenchmark::microbenchmark(gc(), { x <- as.list(sin(1:5e5)); x
<- unlist(x) / cos(1:5e5) ; sum(x) }, times=1000,
control=list(order="inorder"))
with(mb_gc,
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
The large value for maximum time may be due to garbage collection, which
happens periodically. E.g., try the following, where the
unlist(as.list()) creates a lot of garbage. I get a very large time every
102 or 51 iterations and a moderately large time more often
mb <- microbenchmark::microbenchmark({ x <- as.list(sin(1:5e5)); x <-
unlist(x) / cos(1:5e5) ; sum(x) }, times=1000)
2017 Aug 22
4
How to benchmark speed of load/readRDS correctly
Dear all
I was thinking about efficient reading data into R and tried several ways to test if load(file.Rdata) or readRDS(file.rds) is faster. The files file.Rdata and file.rds contain the same data, the first created with save(d, ' file.Rdata', compress=F) and the second with saveRDS(d, ' file.rds', compress=F).
First I used the function microbenchmark() and was a astonished
2017 Aug 23
1
How to benchmark speed of load/readRDS correctly
Hi there
Thanks for your answers. I didn't expect that this would be so complex. Honestly, I don't understand everything you wrote since I'm not an IT specialist. But I read something that reading *.rds files is faster than loading *.Rdata and I wanted to proof that for my system and R version. But thanks anyway for your time.
Cheers Raphael
> -----Urspr?ngliche Nachricht-----
2017 Aug 22
0
How to benchmark speed of load/readRDS correctly
You need to study how reading files works in your operating system. This question is not about R.
--
Sent from my phone. Please excuse my brevity.
On August 22, 2017 5:53:09 AM PDT, raphael.felber at agroscope.admin.ch wrote:
>Dear all
>
>I was thinking about efficient reading data into R and tried several
>ways to test if load(file.Rdata) or readRDS(file.rds) is faster. The
2015 Mar 24
3
NetCDF
Buenas tardes,
pido disculpas si mi consulta es demasiado elemental, pero actualmente
encuentro una gran barrera para continuar mi trabajo si no lo solvento.
Soy usuaria principiante de R, estoy trabajando con una base de datos
climática <https://digital.csic.es/handle/10261/104742>que se encuentra en
formato netcdf4 y necesito transformarla a la versión 3 con el fin de
visualizarlo en un
2012 Oct 22
2
Problem installing ndf library
Hello,
I am a new user of R and Linux (debian squeeze), and I am trying to install
the ncdf library.
First I don't know wich is the best to use (ncdf or ncdf4), But not matter
the one I tried to install, it always failled.
I try to find a solution to this common problem on the web, but I never find
the good way to solve it.
I hope you could help me I try many things during two days and now I
2012 Mar 16
2
ncd4 package
Hi
I am using windows. I cant install ncdf4 package but it didn't work . any
suggestions!!
--
View this message in context: http://r.789695.n4.nabble.com/ncd4-package-tp4477496p4477496.html
Sent from the R help mailing list archive at Nabble.com.
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 Feb 05
1
ncdf4 installation problem: undefined symbol [SEC=UNCLASSIFIED]
Hello,
I'm trying to install ncdf4 on RHEL 5.8, R version 2.15.1.
Previously installed is netcdf 3.6.2 from Red Hat, so I've compiled and installed netcdf 4.2.1.1 (with hdf5 and zlib as per install instructions, and also set --enable-netcdf4 option) into /usr/local.
When attempting to install ncdf4 it is failing with:
** testing if installed package can be loaded
Error in
2013 Apr 12
1
Batch open netcdf files and get variables
Hi, I'm new to R. I have some daily soil moisture data for the year 1979 in netcdf format such as these
sm19790101.1.nc
sm19790102.1.nc
.
.
.
sm19791231.1.nc
I need to average a variable called "sm" to monthly resolution. I've done these
days = formatC(1:31, width=2, flag="0")
ncfiles = lapply(days, function(d){
filename = paste("sm197901", d,
2012 Sep 13
1
Auomatic Download of climate netcdf4 files from the Climate Explorer Website
Dear R-helpers,
I am trying to download some netcdf4 files from the Climate Explorer
Website:
http://climexp.knmi.nl/start.cgi?id=someone at somewhere
In fact, there are 78 distinct files. I have found a way to download a
particular file and open it in R, but I have been informed that there exists
some code to automatically download all the files. Do you have any clue
regarding how to achieve
2013 Apr 27
1
Loading of package RNetCDF fails
Dear Pavel Michna [maintainer of the package] (and copy to R-help
Mailing List)
When I try to load the package RNetCDF (after install from CRAN) I get
this message:
> library("RNetCDF",
lib.loc="/Library/Frameworks/R.framework/Versions/3.0/Resources/library")
Error : .onLoad a ?chou? dans loadNamespace() pour 'RNetCDF', d?tails :
appel : NULL
erreur : I/O error
2004 Nov 18
1
ROracle connection problem
Hi,
I found the same question in the mailing list already a few months ago -
but there was no answer to it - so I'll try it again
Could somebody help me to solve this following problem? I just begin to
learn how to connect my Oracle database with R.
> library(DBI)
> library(ROracle)
Warning message:
DLL attempted to change FPU control word from 8001f to 9001f
>