Hello All,
I am trying to write out some data in IDL 8.0.1 and keep encountering
the following error:
idl: string.c:177: NC_check_name: Assertion `name != ((void *)0)'
failed.
which results in IDL aborting. I have checked to ensure my dimensions
are the correct sizes and I have not mistyped anything. The error is
occurring when the program reaches "varvid=NCDF_VARDEF(fnid,variable,
[lonid,latid,timid,memid],/FLOAT)". Here is the code for writing out
the file:
fid=NCDF_CREATE('/Volumes/Disk2/Data/Volcanic_Impact/
atmos_'+variable(i)+'_el_chichon.nc',/CLOBBER)
lonid=NCDF_DIMDEF(fid,'longitude',nx)
latid=NCDF_DIMDEF(fid,'latitude',ny)
timid=NCDF_DIMDEF(fid,'time',48)
memid=NCDF_DIMDEF(fid,'member',17)
lonvid=NCDF_VARDEF(fid,'longitude',[lonid],/FLOAT)
latvid=NCDF_VARDEF(fid,'latitude',[latid],/FLOAT)
timvid=NCDF_VARDEF(fid,'time',[timid],/FLOAT)
memvid=NCDF_VARDEF(fid,'member',[memid],/FLOAT)
varvid=NCDF_VARDEF(fid,variable,[lonid,latid,timid,memid],/F LOAT)
NCDF_CONTROL,fid,/ENDEF
NCDF_VARPUT,fid,lonvid,lon
NCDF_VARPUT,fid,latvid,lat
NCDF_VARPUT,fid,timvid,vtime
NCDF_VARPUT,fid,memvid,INDGEN(17)
NCDF_VARPUT,fid,varvid,vimpact
NCDF_CLOSE,fid
I would greatly appreciate any assistance or insight.
Sincerely,
Jason
|