[ncl-talk] all nan after dim_avg_n_Wrap

xiaoming Hu yuanfangcan at hotmail.com
Fri Apr 23 10:06:56 MDT 2021


I have used dim_avg_n_Wrap for a long time and never had issues. But today it led to all nan, any idea? Thanks,
xiaoming

See my code:
  printVarSummary(wetland_CH4_emissions_ens)
  printMinMax(wetland_CH4_emissions_ens,0)
  wetland_CH4_emissions = dim_avg_n_Wrap(wetland_CH4_emissions_ens,0) ; [model | 18] x [time | 228] x [lat | 360] x [lon | 720]
  print("got ensembe everage")
      printMinMax(wetland_CH4_emissions,0)

and output:
Variable: wetland_CH4_emissions_ens
Type: double
Total Size: 8510054400 bytes
            1063756800 values
Number of Dimensions: 4
Dimensions and sizes: [model | 18] x [time | 228] x [lat | 360] x [lon | 720]
Coordinates:
            model: [1913..3934]
            time: [   1.. 228]
Number Of Attributes: 1
  units : mg CH4 m-2 day-1
(0) min=-0   max=535.915259495705
(0) got ensembe everage
(0) min=-nan   max=-nan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210423/1279507e/attachment.html>


More information about the ncl-talk mailing list