Skip to content

"nan" is not supported in NCL but more and more dataset make nan as fillvalue #217

@Yonghan33

Description

@Yonghan33

Describe the bug
Recently, I found that the era5 dataset is different from the old CDS.

The new website to download. (https://cds-beta.climate.copernicus.eu/)

  1. The dataset's fillvalue is 'nan' , and NCL cannot recognize this fill value. Everytime I need to use the 'where' function to take it place to 9.96921e+36 or other fillvalue NCL supported. This problem also happends in the output data from python.
  2. The type of 'time' dimension is int64, which is not supported in cd_calendar function.
    image

ERA5 dataset is a dataset that we commonly use. I hope the official team can resolve the issue to facilitate the use of the datasets. Thanks!

Provide the following:

  • a concise NCL script demonstrating the issue (remove unnecessary code)
  • necessary data files
  • relevant graphical output
    The code I used to deal with,
    ; ----take place the fillvalue
    u@_FillValue = 9.96921e+36
    u = where(u.eq."nan", u@_FillValue, false_value)
    ; ----change the time type to integer not int64
    time0 = f->valid_time
    time = toint(time0)
    copy_VarMeta(time0, time)
    ; printVarSummary(time)
    timeARR = cd_calendar(time, 3)

Computing environment

  • OS: [Linux, Mac, or Windows]
  • OS version: [e.g. Ubuntu 16.04, MacOS 10.13.6, Windows 10]
  • NCL Version: [e.g. 6.5.0]
  • Installation method: [binary from NCAR website, conda, other package manager (apt, brew, macports, yum), built from source]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions