search for: ncdf_varid

Displaying 1 result from an estimated 1 matches for "ncdf_varid".

2012 Jul 23
2
translating IDL to R
...= gfedmly[*,j-1] gfedmly[*,j-1] = gfedmly[*,nlat-j] gfedmly[*,nlat-j] = tmp endfor undefine, tmp ; Then, you can read daily fire fractions from the netcdf file. file1_in = string('fraction_emissions_20040121.nc') file1_in=strcompress(file1_in, /REMOVE_ALL) fid=NCDF_OPEN(file1_in) varid=NCDF_VARID(fid,'Fraction_of_Emissions') NCDF_VARGET, fid, varid, DATA NCDF_CLOSE, fid gfeddly=gfedmly*DATA ;++++++++++++++++++++ the end for daily emissions ++++++++++++++++++ ;++++++++++++++++++++ idl code to generate 3-hourly emissions ++++++ nlon=720 ; number of grid points by longitude nlat=360 ;...