Questions tagged [netcdf-java]

8 questions
1
vote
0 answers

Efficiently merging into a single dataframe content split across multiple netCDF files in Spark 3.4 (scala)

I am using Spark 3.4. I have data that is split across multiple netCDF files. I would like to efficiently merge them into one dataframe. I could not get SciSpark to work with Spark 3.x (though it works with Spark 2.x) and found no helpful source to…
Quiescent
  • 1,088
  • 7
  • 18
1
vote
2 answers

How do I get a NetcdfFile out of a byte array?

I am relatively new to using the netcdf-java library, and I've immediately run into a problem when trying to load a file. The problem is that there doesn't seem to be a way to load a NetcdfFile from a byte array stored in memory, and that is the…
numberQ
  • 21
  • 3
1
vote
0 answers

How to find lat/lon bounding box for a single specific CELL in a NetCDF GridDatatype?

I'm attempting to render the data in a NetCDF GridDatatype (specifically, GOES16-ABI-L2-ACMC) to accurately scaled and cropped bitmaps suitable for use by Google Maps as TileOverlays. Somehow, I need to find the lat/lon bounds (say, the coordinates…
Bitbang3r
  • 6,826
  • 5
  • 27
  • 40
0
votes
1 answer

How to create netcdfFile without location ? JAVA

I am trying to convert a product into netcdf object. i am using unidata library. What i want to do is return a netcdf object into xml response. In fact, I create NetcdfFileWriter with method createNew() . But a location is mandatory. I do not want…
Fab83i
  • 85
  • 7
0
votes
0 answers

How can I extract data from a netcdf file?

I have relatively new to Python. I have a NetCDF file and I want to extract rainfall information for a particular coordinate. I have used the following code: from netCDF4 import Dataset import numpy as np import pandas as pd ## Reading in the…
Asish
  • 11
  • 1
0
votes
1 answer

Reading row and column index values from GRIB file via netcdf

Recently I have been working on netcdf files and I am using this library. I am able to open and read the data like this: NetcdfFile ncfile = NetcdfFile.open(inputPath); I am able to list variables and get desired variable inside the…
Sami
  • 490
  • 6
  • 29
0
votes
1 answer

How to read grib file by netcdfAll

I am moving from "edu.ucar" % "netcdfAll" % "5.0.0-beta2" to "edu.ucar" % "netcdfAll" % "5.4.1" and I see that function, which I use to open .grib2 files NetcdfDataset.openDataset(path) is marked as deprecated. What is new way to open it?
Kuba Wenta
  • 580
  • 1
  • 5
  • 25
0
votes
1 answer

How do I convert NetCDF to .grd?

I've got a couple of NetCDF files that I want to convert to Surfer 6's ".grd" format programmatically. NetCDF's java library is only able to convert to NetCDF and I also can't seem to get CDO to run properly with Cydwin. How do I convert these files…
Neph
  • 1,823
  • 2
  • 31
  • 69