pyngl | Python module built on top of NCL 's graphics | Data Visualization library
kandi X-RAY | pyngl Summary
kandi X-RAY | pyngl Summary
PyNGL ("pingle") is a Python module built on top of NCL's graphics library, which produces publication-quality, two-dimensional visualizations tailored for climate and weather data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pyngl
pyngl Key Features
pyngl Examples and Code Snippets
Community Discussions
Trending Discussions on pyngl
QUESTION
I'm reading wind components (u and v) data from a netCDF file from NCEP/NCAR Reanalysis 1 to make some computations. I'm using xarray to read the file.
In one of the computations, I'd like to mask out all data below some threshould, make them be equal to the missing_value attribute. I don't want to use NaN's.
However, when reading the data with xarray, the missing_value attribute - present in the variable in the netCDF file - isn't copied to xarray.DataArray that contained the data.
I couldn't find a way to copy this attribute from netCDF file variable, with xarray.
Here is an example of what I'm trying to do:
...ANSWER
Answered 2019-Apr-15 at 17:40The "missing_value" attribute is kept in the encoding
dictionary. Other attributes like "units" or "standard_name" are kept in the attrs
dictionary. For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyngl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page