Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal:linint1_n: Unable to allocate memory for output array #181

Open
DanaOdeh opened this issue Mar 30, 2022 · 0 comments
Open

fatal:linint1_n: Unable to allocate memory for output array #181

DanaOdeh opened this issue Mar 30, 2022 · 0 comments

Comments

@DanaOdeh
Copy link

**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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant