Skip to content

Commit

Permalink
try to comply with planemo lint
Browse files Browse the repository at this point in the history
  • Loading branch information
annefou committed Nov 2, 2023
1 parent b41b5f0 commit 01612a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
3 changes: 0 additions & 3 deletions tools/netcdf2zarr/xarray_netcdf2zarr.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import argparse
import ast
import warnings

import cftime # noqa: F401

import xarray as xr # noqa: I202,E402

import zarr # noqa: I202,E402

parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", type=str, help="input file in netCDF format")
Expand Down
26 changes: 20 additions & 6 deletions tools/netcdf2zarr/xarray_netcdf2zarr.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<tool id="netcdf2zarr" name="NetCDF to Zarr" version="0.1.0" profile="23.1">
<description>Rewrite a netCDF to Zarr</description>
<edam_topics>
<edam_topic>topic_3318</edam_topic>
</edam_topics>
<edam_operations>
<edam_operation>operation_0335</edam_operation>
</edam_operations>
<requirements>
<requirement type="package" version="3">python</requirement>
<requirement type="package" version="2.16.1">zarr</requirement>
Expand Down Expand Up @@ -39,11 +45,19 @@ This tool is a wrapper to convert a netCDF data to Zarr using xarray.
]]></help>
<citations>

<citation type="bibtex">
@article{hoyer2017xarray,
title = {xarray: {N-D} labeled arrays and datasets in {Python}},
author = {Hoyer, S. and J. Hamman},
journal = {Journal of Open Research Software},
volume = {5},
number = {1},
year = {2017},
publisher = {Ubiquity Press},
doi = {10.5334/jors.148},
url = {http://doi.org/10.5334/jors.148}
}
</citation>
</citations>
<edam_topics>
<edam_topic>topic_3318</edam_topic>
</edam_topics>
<edam_operations>
<edam_operation>operation_0335</edam_operation>
</edam_operations>
</tool>

0 comments on commit 01612a7

Please sign in to comment.