How do I convert a .nc file with multiple layers into a file readible in ENVI in R

324 views Asked by At

I have downloaded data from https://oceancolor.gsfc.nasa.gov/ that is formatted into a .nc file but I want to be able to use it in ENVI.

I have done

x <- stack("C:\\Users\\blopezbarreto\\Downloads\\A2018012210500.L2_LAC_IOP.nc")

This only has it for one layer so when converted

writeRaster(x, filename= "name", overwrite = T)

the ENVI file was not formatted correctly and

xs <- raster("C:\\Users\\blopezbarreto/\\Downloads\\A2018012210500.L0_LAC")

had the same results.

Not sure what more I can do from here, but simply I am trying to convert .nc files from specifically Ocean color Data in order to work with the chlorophyll data in ENVI.

0

There are 0 answers