How to create header files for multiple rasters in R

المشرف العام

Administrator
طاقم الإدارة
I have nearly 1000 generic binary images, i.e., headerless, band sequential and binary (16-bit signed integer). I have been succesfully able to load these with package 'raster' only when I create an associated .hdr file with the same name as the image.

Hence I would like to create an associated .hdr file for each image, with the following information;

ENVIdescription = { AVHRR_GIMMS 8km global NDVI x1000}samples = 2160lines = 4320bands = 1header offset = 0file type = ENVI Standarddata type = 2interleave = bsqsensor type = AVHRRbyte order = 1I am drawing a blank on how to accomplish this. I don't have any programming skills outside of R.

Any suggestions? Is there a more efficient way to accomplish this (e.g., specifying a single header for all files)?

This question is similar to this (presently) unanswered question, except I suspect it may be more straightforward in R than Arcgis.



أكثر...
 
أعلى