Displaying 9 results from an estimated 9 matches for "ncfile".
Did you mean:
cfile
2012 Jun 29
1
number of items to replace is not a multiple of replacement length
...library(ncdf)
start_yr=y1850_file_no+(startyr-1850)
print("************************************")
filename=paste(file_name,start_yr,".nc",sep="")
print("Opening:")
print(varname)
print("in:")
print(filename)
ncfile=open.ncdf(filename)
mod1=get.var.ncdf(ncfile,varname)
print("------------------------------------")
a=dim(mod1)
print(a)
b=length(a)
if (b==3) {
mod =array(0,dim=c(a[1],a[2],a[3],nyrs))
modi=array(0,dim=a)
} else {
mod =array(0,dim=c...
2010 Feb 25
0
missing values in 'ncdf', integer versus byte
...im<-dim.def.ncdf("variable","units", 1:10)
variable_byte<-
var.def.ncdf("as.byte","case",dim=vardim,missval=-99,prec="byte")
variable_int<- var.def.ncdf("as.int","case",dim=vardim,missval=-99,prec="integer")
ncfilename <- "test.nc"
ncfile <- create.ncdf(ncfilename,list(variable_byte,variable_int))
array <- c(1:5,NA,7:10)
put.var.ncdf(ncfile,variable_byte,array,start=1,count=10)
put.var.ncdf(ncfile,variable_int,array,start=1,count=10)
close(ncfile)
nc <- open.ncdf(ncfile)
int_return...
2017 Aug 02
3
Remove attribute from netcdf4 object
...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
------------------------------------------------------------------------------------
Raphael Felber, Dr. sc.
Wissenschaftlicher Mitarbeiter, Klima und Lufthygiene
Eidgen?ssisches Departement f?r
Wirtschaf...
1997 Oct 16
0
Browsing on WfW
...dead time = 5
password server = dbo1fl19
security = server
log file = /usr/local/samba/log/%m.log
log level = 2
[IPC$]
path = /tmp
guest ok = yes
[nc_files]
path = /es130065/bocad/grpdata/cam/ncfiles
comment = NC-Files
browsable = yes
read only = yes
guest ok = no
For example the directory "/es130065/bocad/grpdata/cam/ncfiles/3000" has two
subdirectories named "171808-1" and "171808-2". Under 171808-1 t...
2013 Apr 12
1
Batch open netcdf files and get variables
...9;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, ".1.nc", sep="")
#print(filename)
open.nc(filename)
})
to open the files in January. Questions is: how may I get the variable from each opened file. Rnetcdf package has the var.get.nc() that only...
2017 Aug 02
0
Remove attribute from netcdf4 object
...gt;
> 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 not mixed both.
Marc
>
> Thanks a lot for any help.
>
> Kind regards
>
> Raphael Felber
>
> ------------------------------------------------------------------------------------
> Rapha...
2017 Aug 02
0
Remove attribute from netcdf4 object
...ing 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 not mixed both.
Marc
Thanks a lot for any help.
Kind regards
Raphael Felber
------------------------------------------------------------------------------------
Raphael Felber, Dr. sc.
Wissensch...
2017 Aug 02
0
Remove attribute from netcdf4 object
...ing 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 not mixed both.
Marc
Thanks a lot for any help.
Kind regards
Raphael Felber
------------------------------------------------------------------------------------
Raphael Felber, Dr. sc.
Wissensc...
2000 Dec 22
2
REading the netCDF format into R
...nt;
long int ptrs[5]; /* array of pointers holding locations */
/* returned by malloc in ncread */
double ofs, scl; /* offset and scaling
factors */
double *ptr;
SEXP field, dim, dimnames, lon, lat, tim, missing;
printf("ncfile= %s, vname=%s\n",fname,vname);
printf("\nfield->%x\nlon -> %x\nlat -> %x\ntim -> %x\nmissing ->
%x\n",
field,lon,lat,tim,missing);
/* Call the function dealing with the netCDF data */
/* The data is placed in memeory */
status=ncread(fname, vname, &...