Comments (1)
Follow up: my lat long grid does not, of course, have a time dimension. So reading individual x,y values like
// startp_2.push_back(0);
startp_2.push_back(y);
startp_2.push_back(x);
// countp_2.push_back(1);
countp_2.push_back(1);
countp_2.push_back(1);
double dlat,dlon;
latVar.getVar(startp_2,countp_2, &dlat);
lonVar.getVar(startp_2,countp_2, &dlon);
Appears to work as expected. However, reading the entire grid as:
// startp.push_back(0);
startp.push_back(0);
startp.push_back(0);
// countp.push_back(1);
countp.push_back(NLAT);
countp.push_back(NLON);
netCDF::NcVar latVar, lonVar;
latVar = data.getVar("gridlat_0");
if(latVar.isNull()) return -1;
lonVar = data.getVar("gridlon_0");
if(lonVar.isNull()) return -1;
does not work and still results in 0,0 values
from netcdf-cxx4.
Related Issues (20)
- Plain delete used on pointer allocated with new[] HOT 1
- Issue building with clang on macOS 11.3 HOT 3
- MacOS 11.3 Macports can't build netcdf-cxx @4.2 possibly due to VERSION
- Errors building 4.3.1 tag on macOS with Clang 12.0.5
- libnetcdf_c++4 vs. libnetcdf-cxx4 HOT 1
- Get attributes in the original order
- compile failure ncVar.cpp:630:11 error: 'nc_def_var_filter' was not declared in this scope (on static build) HOT 1
- header file is right? HOT 2
- Erroneous condition always evaluating true HOT 2
- Minimum required C++ standard?
- How to load data into a std::vector HOT 4
- 2 * field not copied in copy constructor ? HOT 1
- Does netcdf-cxx4 support parallel IO?
- netCDF::exceptions::NcHdfErr after calling getVar too often HOT 1
- CMake uninstall target conflicts with other previously registered uninstall targets
- Inconsistent constructor signatures
- HDF 1.14 + netcdf-c 4.9 Support? HOT 3
- Cmake modernization
- Testing: cxx4_test_filter (10/18) - Failed HOT 2
- [feature-request] `netcdfcpp_meta.h` file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcdf-cxx4.