You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function converts XArray Dataset objects into CDF files.
@@ -908,11 +902,6 @@ def xarray_to_cdf(
908
902
record_dimensions (list of str, optional): If the code cannot determine which dimensions should be made into CDF records, you may provide a list of them here
909
903
compression (int, optional): The level of compression to gzip the data in the variables. Default is no compression, standard is 6.
910
904
nan_to_fillval (bool, optional): Convert all np.nan and np.datetime64('NaT') to the standard CDF FILLVALs.
911
-
from_datetime (bool, optional, deprecated): Same as the datetime_to_cdftt2000 option
912
-
from_unixtime (bool, optional, deprecated): Same as the unixtime_to_cdftt2000 option
913
-
datetime_to_cdftt2000 (bool, optional, deprecated): Whether or not to convert variables named "epoch" or "epoch_X" to CDF_TT2000 from datetime objects
914
-
datetime64_to_cdftt2000 (bool, optional, deprecated): Whether or not to convert variables named "epoch" or "epoch_X" to CDF_TT2000 from the numpy datetime64
915
-
unixtime_to_cdftt2000 (bool, optional, deprecated): Whether or not to convert variables named "epoch" or "epoch_X" to CDF_TT2000 from unixtime
916
905
Returns:
917
906
None, but generates a CDF file
918
907
@@ -1041,30 +1030,6 @@ def xarray_to_cdf(
1041
1030
1042
1031
"""
1043
1032
1044
-
iffrom_unixtimeorunixtime_to_cdftt2000:
1045
-
warn(
1046
-
"from_unixtime and unixtime_to_cdftt2000 will eventually be phased out. Instead, use the more descriptive unix_time_to_cdf_time.",
1047
-
DeprecationWarning,
1048
-
stacklevel=2,
1049
-
)
1050
-
1051
-
iffrom_datetimeordatetime_to_cdftt2000:
1052
-
warn(
1053
-
"The from_datetime and datetime_to_cdftt2000 are obsolete. Python datetime objects are automatically converted to a CDF time. If you do not wish datetime objects to be converted, cast them to a different type prior to calling xarray_to_cdf()",
1054
-
DeprecationWarning,
1055
-
stacklevel=2,
1056
-
)
1057
-
1058
-
ifdatetime64_to_cdftt2000:
1059
-
warn(
1060
-
"datetime64_to_cdftt2000 will eventually be phased out. Instead, datetime64 types will automatically be converted into a CDF time type. If you do not wish datetime64 arrays to be converted, cast them to a different type prior to calling xarray_to_cdf()",
0 commit comments