search for: ncdf4

Displaying 20 results from an estimated 46 matches for "ncdf4".

Did you mean: ncdf
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: ** test...
2010 Oct 26
1
ncdf4 package installation in R
Hello all, I could use some help installing the ncdf4 package in R (under CentOS 5.4). I've installed R-2.12.0, zlib-1.2.5, hdf5-1.8.4-patch1 and NetCDF4.1.1 from source. Make check reports all tests have passed for all of these programs. When I issue an 'install.packages(c('ncdf4')) in R, compilation succeeds but I receive the follow...
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 don't know what to do. One of the things I done is to try...
2015 Mar 24
3
NetCDF
...sé de la existencia de una orden en el paquete NetCDF4 que me lo permitiría pero el problema viene a la hora de instalar los paquetes. *1º-* instalo el paquete 'ncdf' desde Rstudio -> Tools/Install Packages/Repository/ncdf ? *2º.* Instalado este paquete, procedo a instalar el paquete ncdf4: http://cirrus.ucsd.edu/~pierce/ncdf/ En mi caso el archivo para MS Windows (64-bit R version 3.1.0) Y este es el mensaje que aparece: > install.packages("C:/Users/MRN/Downloads/ncdf4_1.12.tar.gz", repos = NULL, type = "source") Installing package into ?C:/Users/MRN/Docum...
2012 Nov 09
1
decorating API in R
How best to implement a decorator pattern in R? What I mean, why I ask: A group of ncdf4 users is trying to make it easier (notably for ourselves :-) to write correctly IOAPI-formatted netCDF. Since IOAPI http://www.baronams.com/products/ioapi/ decorates netCDF, one obvious way to do a package=ioapi is to decorate the netCDF API from package=ncdf4. E.g., to add a data variable (datav...
2017 Aug 02
3
Remove attribute from netcdf4 object
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 for earlier versions of netcdf objects, there was the function att.delete.nc{RNetCDF}. But this functions returns the following error, when applied to ncdf4-classes: Error: class(ncfile) == "NetCDF" is not TRUE Thanks a lot for any help. Kind regards Raphael Felber...
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: > ?[...]? ?Hi Louise, I'm the author of the ncdf and ncdf4 libraries. What are the details -- what o...
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")], sep=&quo...
2017 Aug 14
0
ncdf4: Why are NAs converted to _FillValue when saving?
...data for further calculations, the NAs should remain. > > Is that a bug or intended? Below you find a minimal example (adapted from > the code in the netcdf4 manual) of the ? in my eye ? strange behavior. > ?HI Raphael, I'm going to claim that this is more of an R question than a ncdf4 question per se. For example, you will notice that if you multiply data_temp2 times 1.0 (leaving values unchanged) or add zero to data_temp2, then the behavior is what you are expecting. Same holds if you multiply data_temp by 1.0 or add zero to it. It would seem that R does the equivalent of assi...
2017 Aug 14
2
ncdf4: Why are NAs converted to _FillValue when saving?
...ulations, the NAs should remain. Is that a bug or intended? Below you find a minimal example (adapted from the code in the netcdf4 manual) of the ? in my eye ? strange behavior. Thanks for any explanation. Kind regards Raphael Minimal working example (adapted from netcdf4 manual): library(ncdf4) #---------------- # Make dimensions #---------------- xvals <- 1:360 yvals <- -90:90 nx <- length(xvals) ny <- length(yvals) xdim <- ncdim_def('Lon','degreesE', xvals ) ydim <- ncdim_def('Lat','degreesE', yvals ) tdim <- ncdim_def('Time'...
2017 Aug 02
0
Remove attribute from netcdf4 object
...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 object ok. Sorry, I didn't understood good. I don't think you can do it in ncdf4 functions. The only solution would be to open it in RNetCDF, delete the attribute, save it and then open it in ncdf4. Marc Le 02/08/2017 ? 15:02, raphael.felber at agroscope.admin.ch<mailto:raphael.felber at agroscope.admin.ch> a ?crit : Dear Marc Thanks for your remark. I don't want t...
2012 Aug 28
4
[ncdf4] error converting GEIA data to netCDF
...ar_get(...) the same data, I get > Error in if (nc$var[[li]]$hasAddOffset) addOffset = nc$var[[li]]$addOffset else addOffset = 0 : > argument is of length zero How to fix or debug? details: R code @ https://github.com/TomRoche/GEIA_to_NetCDF successfully (if crudely) uses R packages={ncdf4, maps, fields} to + extract data from a GEIA-distributed datafile https://github.com/downloads/TomRoche/GEIA_to_netCDF/N2OOC90Y.1A + display the data (mostly successfully--the map's legend has problems which I'll attack later) https://github.com/downloads/TomRoche/GEIA_to_netCDF/outpu...
2011 Mar 16
2
how do we read netcdf / hdf files in R?
Dear R Users, How do we read netcdf / hdf format files in R ? Also, can we convert netcdf to hdf format in R? Great Thanks, Best Regards, Yogesh [[alternative HTML version deleted]]
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.
2020 Nov 05
1
Some packages have non-POSIX-compliant shell scripts. Implement a CRAN check for bashisms?
Dear R-devel, Recently I ran into trouble installing two separate packages, nloptr and ncdf4, both due to the same issue: they have scripts that have the shebang `#! /bin/sh', but have bashisms in them, i.e. non-POSIX-compliant bash scripts. I use dash [1] as my shell environment, since it's about 4x as fast as bash. It looks like it's recently also become the default shell fo...
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 * installing to library ?...
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...description: GFDL-ESM2M bias corrected impact model input prepared for ISIMIP2 Now I want to extract a subset from this dataset using pair of lon and lat points, e.g., (12.875, -11.625) & (8.875, 4.125) and convert the file into .csv format. so far I could make up to this step: # load the ncdf4 package library(ncdf4) # set path and filename setwd("D:/netcdf") ncname <- "gfdl_preci" ncfname <- paste(ncname, ".nc", sep = "") dname <- "prAdjust" # open a netCDF file ncin <- nc_open(ncfname) print(ncin)# get longitude and latitude...
2018 May 24
2
Problem with adding a raster and a brick
...28 svn rev 73368 language R version.string R version 3.4.2 (2017-09-28) nickname Short Summer > > packageDescription("raster") Package: raster Type: Package Title: Geographic Data Analysis and Modeling Version: 2.6-7 Date: 2017-11-12 > packageDescription("ncdf4") Package: ncdf4 Version: 1.16 Date: 2017-04-01 [[alternative HTML version deleted]]
2012 Nov 18
2
[newbie] convert 3D spatial array to dataframe
summary: how to convert a 3D array (as obtained from ncdf4::ncvar_get) to a dataframe suitable for use by lattice::levelplot(), e.g., levelplot(conc ~ lon * lat | lev, data = data.frame) details: I have atmospheric data in netCDF files specifying gas concentrations over a 3D space with dimensions longitude, latitude, and (vertical) level. I need to plot...
2017 Aug 02
0
Remove attribute from netcdf4 object
...t; 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 for earlier versions of netcdf objects, there was the function att.delete.nc{RNetCDF}. But this functions returns the following error, when applied to ncdf4-classes: > Error: class(ncfile) == "NetCDF" is not TRUE You should use package ncdf4 or package RNetCDF, but...