fatal:linint1_n: Unable to allocate memory for output array
DanaOdeh opened this issue · comments
**when I run the code in another file it work but in my file it is sill keep show me this error massage **
fatal:linint1_n: Unable to allocate memory for output array
Provide the following:
begin
f = addfile("bias-corrected_prAdjust_EUR-11_1986-1987.nc","r")
var = f->prAdjust
time_360 = var&time
lat = f->lat
lon = f->lon
time_steps = 2*365
time_365 = fspan(1,time_steps,time_steps)
time_365!0 = "time"
time_365&time = time_365
time_365@standard_name = "time"
time_365@units = "days since 1949-12-01 00:00:00"
time_365@calendar = "365_day"
time_365@long_name = "time"
time_365@axis = "T"
#tasmax_new = linint1_n(time_360,var,False,time_365,0,0)
tasmax_new!0 = "time"
tasmax_new&time = time_365
tasmax_new!1 = "lat"
tasmax_new&lat = lat
tasmax_new!2 = "lon"
tasmax_new&lon = lon
tasmax_new@_FillValue = 1.e+20
tasmax_new@missing_value = 1.e+20
tasmax_new@standard_name = " precipitation_flux "
tasmax_new@long_name = " Bias-Adjusted Precipitation "
tasmax_new@units = " kg m-2 s-1 "
tasmax_new@cell_methods = "time: mean"
printVarSummary(tasmax_new)
system("rm -rf outfile_365_days_NCL.nc")
outf = addfile("outfile_365_days_NCL.nc","c")
outf->lat = lat
outf->lon = lon
outf->lat = lat
outf->lon = lon
outf->prAdjust = tasmax_new
end
**Computing environment **
- OS: [ Windows]
- OS version: [ Windows 10]
- NCL Version: [e.g. 6.2.0]
- Installation method: [other package manager (apt, brew, macports, yum), built from source]
I get the code form here [https://code.mpimet.mpg.de/boards/2/topics/6335]
Add any other context about the problem here.
I want to convert year form 360 days to 365 days