Hello,<br><br>I&#39;m trying to access the data of a GRIB file using lat, lon coordinates. I&#39;ve defined a ProjectedCRS modifying some parameters of the Lambert Conic Conformal (1SP) projection to adjust it to the one used in my GRIB file. This is my code:<br>
            <br>            <br>            GridCoverage coverage = CoverageIO.read(&quot;~/myfile.grb&quot;);<br>            GridCoverage2D gc2D = (GridCoverage2D) coverage;<br>            float[] values=null;<br>            values = gc2D.evaluate(new Point2D.Float(600, -420), values);<br>
            <br>            MathTransformFactory mtFactory = FactoryFinder.getMathTransformFactory(null);<br>            ParameterValueGroup p = mtFactory.getDefaultParameters(&quot;Lambert Conic Conformal (1SP)&quot;);<br>
            p.parameter(&quot;Latitude of natural origin&quot;).setValue(40);<br>            p.parameter(&quot;Longitude of natural origin&quot;).setValue(-2.5);<br>            Conversion conversion = new DefiningConversion(&quot;Harmonie_ES&quot;, p);<br>
<br>            CRSFactory crsFactory = FactoryFinder.getCRSFactory(null);<br>            Map&lt;String,?&gt; properties = Collections.singletonMap(ProjectedCRS.NAME_KEY, &quot;Harmonie_ES&quot;);<br>            GeographicCRS baseCRS = DefaultGeographicCRS.WGS84;<br>
            CartesianCS projectedCS = DefaultCartesianCS.PROJECTED;<br>            ProjectedCRS crs = crsFactory.createProjectedCRS(properties, baseCRS, conversion, projectedCS);<br><br><br>Does anybody knows how to use the ProjectedCRS to transform my GridCoverage2D and being able to evaluate points using lat, lon coordinates?<br>
<br>Thanks for your help,<br><br>Pablo Rozas<br>