Project

General

Profile

« Previous | Next » 

Revision 78f94710

Added by Adam Wilson about 11 years ago

Discovered possible cause of weird missing data stripes due to identifying missing data as 225.0 rather than 255s

View differences:

climate/procedures/MOD35_L2_process.r
290 290
system(paste(ncopath,"ncks -A ",tempdir(),"/time.nc ",ncfile,sep=""))
291 291
## add other attributes
292 292
  system(paste(ncopath,"ncrename -v Band1,PClear ",ncfile,sep=""))
293
  system(paste(ncopath,"ncatted -a scale_factor,PClear,o,d,1 -a units,PClear,o,c,\"Probability (%)\" -a missing_value,PClear,o,d,255 -a _FillValue,PClear,o,d,255 -a long_name,PClear,o,c,\"Probability of Clear Sky\" ",ncfile,sep=""))
293
  system(paste(ncopath,"ncatted -a scale_factor,PClear,o,s,1 -a units,PClear,o,c,\"Probability (%)\" -a missing_value,PClear,o,s,255 -a _FillValue,PClear,o,s,255 -a long_name,PClear,o,c,\"Probability of Clear Sky\" ",ncfile,sep=""))
294 294

  
295 295
                                        #  system(paste(ncopath,"ncatted -a sourcecode,global,o,c,",script," ",ncfile,sep=""))
296 296
   

Also available in: Unified diff