Skip to content
Prev 28435 / 29559 Next

Reprojection doubt

It probably doesn't matter at all. Your data is longitude,latitude on datum
WGS84? Those strings are equivalent (some softwares will flip the order of
lon,lat as that's what the standard dictates but easy to spot that
usually).

raster::projection(), raster::crs(), sp::proj4string() all are fairly
equivalent functions, they just get the projection metadata - they are just
overlapping and inconsistent because of historical vagarie, they differ in
ideological stance and how much checking and churn they do to the metadata
and in efforts to interpret your intentions. But on the face of it I don't
think you need to worry about your code here.

Just keep an eye on whether your data looks right, before and after
reprojection. It takes care, but the details are yours alone for checking
unless you can pin down a reproducible example that raises questions.

Good luck.

fwiw you seem to not be doing anything with ncdf4 (or ncdf4::nc_open) here.
the raster package *uses* ncdf4 on your behalf via raster()/stack()/brick()
functions.

Cheers, Mike.



On Fri, Nov 6, 2020 at 12:11 PM Pietro Andre Telatin Paschoalino <
Pietro_telato at hotmail.com> wrote:

            

  
    
Message-ID: <CAAcGz9-1kW4y-MLAqY8iFBd_zb+F_eqc0DbsXTKTWcYmcU9P4A@mail.gmail.com>
In-Reply-To: <BN8PR17MB2980FF76B7719BFBEA0AA3F982ED0@BN8PR17MB2980.namprd17.prod.outlook.com>