When I try to save it with write_mdim() to netcdf I get the following error:
write_mdim(m, "m.nc") # Fails
# Error: NA value in which_dims: logic error
But, if I simply replace the values of the attributes with themselves, it saves:
m2=m
m2$`F Coli` = m$`F Coli` |> as.vector()
m2$Entero = m$Entero |> as.vector()
# write
write_mdim(m2, "m2.nc") # Succeeds
m_test <- read_mdim("m2.nc")
m_test
# but note that is False, but seems like they are the same?
identical(m2, m_test) # False?
Any ideas why this happening or what could be "wrong" with the attribute values?
I have an issue that might be similar/related to #699
Consider this stars object output from
dput()
:When I try to save it with
write_mdim()
to netcdf I get the following error:But, if I simply replace the values of the attributes with themselves, it saves:
Any ideas why this happening or what could be "wrong" with the attribute values?