Closed superjai closed 4 years ago
This lack of coord_ref
dimension seems related to a disparity between SST and Chl netcdf's.
I was previously able to read Chl raster from erddap in the P2P project here (note: currently commented):
https://github.com/marinebon/p2p/blob/ab4d4a48ed5f08d8639f5368333025e9a1879579/functions.R#L34-L36
Issue fixed by changing how chlorophyll dataset is handled in ply2erddap function located in nm4r/spatial.r
So, I am attempting to redo the new SST graph (showing standard deviation and average for entire sanctuary) for the chlorophyll data. Unfortunately, it isn't working due to some funny file naming error in the chlorophyll data. I created a script to reproduce the error, with the script just reproducing most of the ply2erddap function. If you just run the entire script, you will hopefully see my errors, with the script being here.
The problem is in line 63, which produces the following error:
Not sure what is going on here, because data is being pulled, as can be seen from the following plot of the chlorophyll data (line 66).