Comments (7)
@haileyajohnson
Sure. The link below provides the file mentioned in the code:
https://drive.google.com/file/d/1RjI8Mte5M9joROqVvHqR8yWGh-6fjdOa/view?usp=drive_link
from netcdf-java.
I didn't know the new API has got such a syntax.
There was some refactoring and adding of methods and classes for opening/acquiring datasets a few years ago, maybe when NJ 5.3 was in development. I'm not sure if the NetcdfFiles
or NetcdfDatasets
classes existed before then. I had to figure out how to use them because I was tired of getting deprecation alerts whenever I compiled my old code for opening datasets.
from netcdf-java.
Could you provide an example of a file that isn't working as a NetcdfDataset
?
from netcdf-java.
I am unable to reproduce the issue with the file you've provided. Are you using the latest version of netCDF-Java?
Unrelated to your problem, but we recommend using the newer APIs to open netcdf files and datasets, e.g.:
`NetcdfDataset dataset = NetcdfDatasets.openDataset(filepath);
from netcdf-java.
I came across a confusing situation:
I was not using the latest version (netcdfAll-5.5.3.jar
). Instead, I was using the maven-built netcdf-4.3.22.jar
.
With the latest version, the aforementioned problem was solved and era5.nc
could be successfully read by NetcdfDataset
. However, some other files that used to be read by netcdf-4.3.22.jar
, could not be read by the latest version! I provide them below (they are standard and widely used environmental/atmospheric data):
More or less, the same situation happened for ucar.nc2.NetcdfFile
.
I have a bunch of NetCDF files which have different metadata, attributes, and coordinate systems. This is probably something that causes such a problem and chaotic situation.
Can a user modify or develop the associated netcdf-java
class and make it compatible with their own data and application?
from netcdf-java.
@anikfal, I had no trouble opening any of your three examples. Boiled down, my code does
NetcdfFile njFile = NetcdfFiles.open ( filePathStr );
NetcdfDataset njdEnhanced = NetcdfDatasets.enhance (njFile, enhSet, null);
where enhSet
is my own enhancement set which omits one of the netCDF-Java defaults.
The VIIRS example, I do not see a lot-lat gridding system of any sort. Is it defined outside the dataset?
from netcdf-java.
NetcdfFile njFile = NetcdfFiles.open ( filePathStr );
I didn't know the new API has got such a syntax. Now I can open them all. Thanks.
The VIIRS example, I do not see a lot-lat gridding system of any sort. Is it defined outside the dataset?
Yes. Coordinates are stored in separate file.
from netcdf-java.
Related Issues (20)
- Exception when opening twoD grib collection as a coverage
- Missing GRIB-1 time range indicators HOT 6
- netcdfAll-5.5.3.jar Unable to release handle after reading file HOT 1
- Build failed due to `gretty:2.0.1` HOT 3
- DOC: Oudated link to ncml XSD in NCML documentation HOT 1
- Unlimited dimension cannot work without a specified length HOT 3
- Lambert conformal projection does not respect units of the false northing/easting
- BUFR delayed replication descriptor HOT 4
- cdm-radial: Parsing issues with radar files from IDEAM Colombia HOT 4
- Contributors guide says to branch off of `develop`, which appears not to exist
- Grib2 reader issue for data using second order packing and a bitmap section HOT 2
- Problems opening Zipped datasets HOT 3
- Broken link on https://www.unidata.ucar.edu/blogs/news/entry/netcdf-java-version-5-51 webpage HOT 1
- Unpacked values from scaled/offset dataset are all NaN. HOT 6
- Fix order of Enhancements to use packed fillValues for comparisons to packed data HOT 1
- ZarrIosp claims any zipped dataset HOT 8
- Configurable time units when using dateFormatMark
- Multithreaded access with both file cache and dataset cache fails HOT 5
- Filters scans service loader over and over HOT 3
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-java.