Expose Grib2JpegDecoder - #1591
Conversation
|
Greetings @archmoj! Thank you for your suggestion. I am open to the idea of opening up access to this class, with the understanding that it isn't part of the actual netCDF-Java public API, and it isn't subject to the same guarantees implied with semantic versioning (the Can you tell me a little more about the specific use case you have for wanting to use this directly? |
|
Hi @lesserwhirls, String[] argv = new String[4];
argv[0] = "-rate";
argv[1] = nf(this.NumberOfBitsUsedForEachPackedValue, 0); // number of bits per pixel
argv[2] = "-verbose";
argv[3] = "off";
Grib2JpegDecoder g2j = new Grib2JpegDecoder(argv);But it would be nice to replace it with this adaptation of Also it would simplify providing the dependencies here: Thank you! |
Description of Changes
Grib2JpegDecoderconstructor to public access modifierExposing
Grib2JpegDecoderconstructor could help applications to extract data section in JPEG-2000 format directly.Also according to this documentation (https://docs.unidata.ucar.edu/netcdf-java/4.6/javadocAll/index.html?ucar/nc2/grib/grib2/Grib2JpegDecoder.html) it is expected to be a public method.
Please let me know if I'm missing something.
Thank you.
PR Checklist
until ready for review