Skip to content

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

@DanaOdeh

Description

@DanaOdeh

How can i fixed this and what is the problem

this is the code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions