search for: missval

Displaying 17 results from an estimated 17 matches for "missval".

2011 Sep 07
1
Error: in routine alloca() there is a stack overflow: thread 0, max 535822282KB, used 0KB, request 24B
...ize: 30" [1] "ROW Size: 1200" [1] "COL Size: 2496" [1] "------------------------" [1] "file /users/huxxx249/MEGANv2.04/Output/latlong_spec2_WOCONV_150s_2004187.ncf has 31 variables:" [1] "int TFLAG[DATE-TIME,VAR,TSTEP] Longname:TFLAG Missval:NA" [1] "float ISOPRENE[COL,ROW,LAY,TSTEP] Longname:ISOPRENE Missval:1e+30" [1] "float TRP1[COL,ROW,LAY,TSTEP] Longname:TRP1 Missval:1e+30" [1] "float MEOH[COL,ROW,LAY,TSTEP] Longname:MEOH Missval:1e+30" [1] "float ACET[COL,ROW,LAY,...
2010 Sep 07
1
adding variable to netCDF file
...is test code gives the idea of what I am trying to do: library(ncdf) print('here we go') print('first, construct netCDF file') t<-dim.def.ncdf('t','',1:1,unlim=T,create_dimvar=F) print('defining first vars') a<-var.def.ncdf('a','km',t,missval=-999) b<-var.def.ncdf('b','km',t,missval=-999) print('creating ncobj') ncobj<-create.ncdf('testfile.nc',list(a,b)) print('adding data') put.var.ncdf(ncobj,a,c(1,2,3,4,5),count=5) put.var.ncdf(ncobj,b,c(10,20,30,40,50),count=5) print('file constr...
2008 Nov 24
0
spatial subset of ncdf
...uot;rlat Size: 75" [1] "rlon Size: 65" [1] "time Size: 11160" [1] "time_bnds Size: 2" [1] "------------------------" [1] "file C:/RDaten/t2m.ETH.HC_A2.nc has 4 variables:" [1] "float lat[rlon,rlat] Longname:latitude of grid-points Missval:1e+30" [1] "float lon[rlon,rlat] Longname:longitude of grid-points Missval:1e+30" [1] "char rotated_pole[] Longname:rotated_pole Missval:NA" [1] "float t2m[rlon,rlat,height,time] Longname:2-m Temperature Missval:1e+30" I wonder now how to make a spatial subse...
2013 Jan 17
2
How to calculate monthly average from daily files in R?
I have 365 binary files: https://echange-fichiers.inra.fr/get?k=oy3CN1yV1Um7ouRWm2U ,I want to calculate the monthly average. So from the 365 files, I will get 12 files.I would like also to tell R not to take into account the no-data value (-32765).for example, for the first month, there are 31 records: 3 of these records has the value -32765,I want R to take the average of the rest records(28
2009 Sep 27
3
Teach me how to transpose in R
...itude Size: 72" [1] "latitude Size: 36" [1] "unspecified Size: 1" [1] "t Size: 1916" [1] "------------------------" [1] "file C:/CRUTEM3.nc has 1 variables:" [1] "float temp[longitude,latitude,unspecified,t] Longname:Temperature T Missval:2.00000004008175e+20" > data2=get.var.ncdf(hyo) > write.csv(data2,file="C:/ple.csv") But the problem is, I expected this data would be 17000 * 72 (row* col) ; but, it is the other way around. 72*17000 Because the maximum col number in excel is 16383, this cvs file doesn'...
2008 Aug 06
2
Attempting to make a custom color spectrum to use in heatmap.2
Hello there! I'd just like to say in advance, "Thank you," for any help and/or advice. My problem is as follows: I have a dataset that is made up of percentages. I've assigned my "error" percentages a value of '-100', my "non-existent" percentages a value of '0', and all my other percentages are normal values that range from the high
2009 Nov 17
1
How to plot an image in R
...: 127" [1] "latitude Size: 110" [1] "ht Size: 1" [1] "t Size: 1680" [1] "------------------------" [1] "file Tmax.DJF.daily.1981_1999.echama2.nc has 1 variables:" [1] "float temp[longitude,latitude,ht,t] Longname:TEMPERATURE AT 1.5M Missval:2.00000004008175e+20" I have done this but I dont know how to plot the graph. data<-open.ncdf("Tmax.DJF.daily.1981_1999.echama2.nc") lon<-get.var.ncdf(data,"longitude") lat<-get.var.ncdf(data,"latitude") temp<-get.var.ncdf(data,"temp") time&...
2010 Feb 25
0
missing values in 'ncdf', integer versus byte
...uot; it comes back as NA. Is this the desired behavior? If so, how might I read missing byte values as NA? The following shows the behavior: -- vardim<-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(ncfi...
2010 Nov 05
0
NaN, ncdf
.... I am trying to pass in a vector of data that has some NaN in it, into a variable in NetCDF. dimX <- dim.def.ncdf("X","count",(1:6)) dimY <- dim.def.ncdf("Y","count",(1:3)) var1 <- var.def.ncdf("genotype","freq",list(dimX,dimY),missval=-9999,prec="single") nc <- create.ncdf("/home/challar/testunix6.nc",list(var1)) genovals <- c("0.0","3",NaN,NaN,"-4","99") put.var.ncdf(nc,"genotype",genovals,start=c(1,1),count=c(6,1),verbose=TRUE) [1] "put.var.ncdf...
2011 May 10
1
Reading a large netCDF file using R
...ot;Time Size: 14608" [1] "lat Size: 99" [1] "lon Size: 199" [1] "DateStrLen Size: 20" [1] "------------------------" [1] "file NCEP_prec_1949_58.nc has 1 variables:" [1] "float Prec[lon,lat,Time] Longname:yearly accumulated precip Missval:1e+30" I tried to get the variable values using this command > xx=get.var.ncdf(nc) Error: cannot allocate vector of size 2.1 Gb This file has six hourly data for the 199 x 99 points for 10 years. I wanted to aggregate this data into a monthly scale. I tried used a simple code like this...
2012 Mar 17
0
-1e+34
...+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 [232,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 [233,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 i managed to open and read ncdf file but shall I define it.I used var.def.ncdf( name, units, dim, missval, longname=name, prec="single") varPop <- var.def.ncdf("Pop", "kelven",720*360*1460,1e+30,longname="Temperature", prec="float") -- View this message in context: http://r.789695.n4.nabble.com/1e-34-tp4480714p4480714.html Sent from the R help maili...
2011 Mar 21
1
Lat Lon NetCDF subset
...This is its R summary #[1] "file ccd1983_01-dk1_20.nc has 2 dimensions:" #[1] "lat Size: 1974" #[1] "lon Size: 1894" #[1] "------------------------" #[1] "file ccd1983_01-dk1_20.nc has 1 variables:" #[1] "short data[lon,lat] Longname:data Missval:NA" I want to be able to do 2 things: 1) Extract a lat-long defined box 2) Extract a selection of pixels whose lat-long coordinates are defined in a separate data.frame (basically I want the value of CCD at specified rain-gauge locations) So far my code is as follows #---------------------...
2011 May 06
1
read a netcdf file _Fill_value=-32768
...Median Mean 3rd Qu. Max. -32770.00 -32770.00 -32770.00 -20020.00 0.42 6.59 > q() It is clear that the missing value_FillValue = -32768. here , is used to calculate the mean , the Median etc . But I don't succed to avoid NA value in the sum ??? I've seen set.missval.ncdf but I don't succeed anymore to make R understand that -32768 is a missing_value. What are my mistakes , has someone an example or a solution ? 2) Then after I want to calculate correlation between this one and another one , so my time dimension is 80 (80 days) but my time variable...
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
2009 Aug 04
0
Writing a NetCDF file in R
...$ id : num -1 $ unlim : logi FALSE $ dimvarid : num -1 $ create_dimvar: logi TRUE - attr(*, "class")= chr "dim.ncdf" > str(mrunoff_dims); str(mrunoff_data) List of 9 $ name : chr "mrunoff_out" $ units : chr "mm/month" $ missval : num -9999 $ longname: chr "Global Monthly Runoff for 1986-1995" $ id : num -1 $ prec : chr "double" $ dim :List of 3 ..$ :List of 8 .. ..$ name : chr "Lon" .. ..$ units : chr "deg E" .. ..$ vals : num [1:720] 0...
2009 Aug 05
0
ncdf package problem - put.var.ncdf
...$ id : num -1 $ unlim : logi FALSE $ dimvarid : num -1 $ create_dimvar: logi TRUE - attr(*, "class")= chr "dim.ncdf" > str(mrunoff_dims); str(mrunoff_data) List of 9 $ name : chr "mrunoff_out" $ units : chr "mm/month" $ missval : num -9999 $ longname: chr "Global Monthly Runoff for 1986-1995" $ id : num -1 $ prec : chr "double" $ dim :List of 3 ..$ :List of 8 .. ..$ name : chr "Lon" .. ..$ units : chr "deg E" .. ..$ vals : num [1:720] 0...
2008 Jan 22
1
install ncdf package on a 64-bit machine
Dear All, I recently got a 64bit machine and had netcdf-3.6.2 installed. Then I tried to install ncdf package but got the following error message when using netcdflib: gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include -I/home/ljin/share/R-2.6.1/include -I. -I/usr/local/include -fpic -g -O2 -c ncdf2.c -o ncdf2.o gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include