Skip to content

Commit

Permalink
Still working on documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-harter committed Feb 17, 2022
1 parent 1fb753c commit 69cc0a5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
8 changes: 0 additions & 8 deletions cdflib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@

try:
from .epochs_astropy import CDFAstropy as cdfastropy
except Exception:
pass
'''
try:
from .cdf_to_xarray import cdf_to_xarray
from .xarray_to_cdf import xarray_to_cdf
except Exception:
pass
'''

from .cdf_to_xarray import cdf_to_xarray
from .xarray_to_cdf import xarray_to_cdf

from pathlib import Path

Expand Down
3 changes: 1 addition & 2 deletions cdflib/cdf_to_xarray.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import numpy as np
import xarray as xr

import cdflib
from cdflib import CDF
from cdflib.epochs import CDFepoch as cdfepoch
import re

Expand Down
2 changes: 1 addition & 1 deletion cdflib/xarray_to_cdf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import cdflib
import os
import numpy as np
from datetime import datetime
from cdflib.epochs import CDFepoch as cdfepoch
from cdflib import CDF
import re

def _dtype_to_cdf_type(var):
Expand Down
2 changes: 1 addition & 1 deletion doc/modules/xarray_to_cdf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ xarray_to_cdf function

This module is comprised of a single function which takes XArray Dataset files and converts them into CDF files.

This will attempt to conform to `ISTP Complaince <https://spdf.gsfc.nasa.gov/istp_guide/istp_guide.html>`_, and optionally provide warnings if it is not compliant.
This will attempt to conform to `ISTP Compliance <https://spdf.gsfc.nasa.gov/istp_guide/istp_guide.html>`_, and optionally provide warnings if it is not compliant.

.. autofunction:: cdflib.xarray_to_cdf

0 comments on commit 69cc0a5

Please sign in to comment.