Skip to content

Commit

Permalink
rename to NetCDFTools
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Aug 10, 2023
1 parent f39779b commit 7c4ddf0
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "NCTools"
name = "NetCDFTools"
uuid = "13b2da74-5743-4fb0-a7fd-ee492c7bd322"
authors = ["Dongdong Kong <kongdd@users.noreply.github.com>"]
version = "0.1.7"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# NCTools in Julia
# NetCDFTools in Julia

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://jl-spatial.github.io/NCTools.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://jl-spatial.github.io/NCTools.jl/dev)
[![CI](https://github.com/jl-spatial/NCTools.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/jl-spatial/NCTools.jl/actions/workflows/CI.yml)
[![Codecov](https://codecov.io/gh/jl-spatial/NCTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jl-spatial/NCTools.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://jl-spatial.github.io/NetCDFTools.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://jl-spatial.github.io/NetCDFTools.jl/dev)
[![CI](https://github.com/jl-spatial/NetCDFTools.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/jl-spatial/NetCDFTools.jl/actions/workflows/CI.yml)
[![Codecov](https://codecov.io/gh/jl-spatial/NetCDFTools.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/jl-spatial/NetCDFTools.jl)

> Dongdong Kong, CUG
# Installation

```
using Pkg
Pkg.add(url = "https://github.com/jl-spatial/NCTools.jl")
Pkg.add(url = "https://github.com/jl-spatial/NetCDFTools.jl")
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ makedocs(modules=[NCTools],
)

if CI
deploydocs(repo="github.com/jl-spatial/NCTools.jl.git",
deploydocs(repo="github.com/jl-spatial/NetCDFTools.jl.git",
target="build")
end
2 changes: 1 addition & 1 deletion docs/qmd/bilinear.qmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
```{julia}
using Ipaper
using NCTools
using NetCDFTools
function write_fig2(file="Rplot.pdf", width=10, height=5; show=true)
# using Plots
Expand Down
4 changes: 2 additions & 2 deletions docs/qmd/tutorial01-nc_write.qmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 1. NCTools写入数据示例
# 1. NetCDFTools写入数据示例

```{julia}
using NCTools
using NetCDFTools
using Test
import Random: seed!
```
Expand Down
12 changes: 6 additions & 6 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NCTools.jl
# NetCDFTools.jl

Documentation for NCTools.jl, a Julia package for loading/writing NetCDF data on
Documentation for NetCDFTools.jl, a Julia package for loading/writing NetCDF data on
the top of `NCDatasets.jl`.

## Installation
Expand All @@ -9,7 +9,7 @@ Inside the Julia shell, you can download and install using the following command

```julia
using Pkg
Pkg.add("NCTools")
Pkg.add("NetCDFTools")
```

```@docs
Expand All @@ -18,9 +18,9 @@ nc_cellsize
Base.getindex
NCTools.NcDim
NCTools.ncdim_def
NCTools.make_dims
NetCDFTools.NcDim
NetCDFTools.ncdim_def
NetCDFTools.make_dims
ncvar_def
ncatt_put
Expand Down
2 changes: 1 addition & 1 deletion examples/example01_search_CMIP6.qmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```{julia}
# using DataStructures
# include("src/CMIP/esgf.jl")
using NCTools.CMIP
using NetCDFTools.CMIP
import HTTP, JSON
function request_esgf(url)
Expand Down
2 changes: 1 addition & 1 deletion ext/RbaseTerraExt/RbaseTerra.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```{julia}
using NCTools, RCall
using NetCDFTools, RCall
# using DataFrames
```
Expand Down
2 changes: 1 addition & 1 deletion src/CMIP/CMIP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module CMIP

using DocStringExtensions
using NCTools
using NetCDFTools
using DataFrames

import Ipaper: str_extract, str_extract_all,
Expand Down
2 changes: 1 addition & 1 deletion src/NCTools.jl → src/NetCDFTools.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2022 Dongdong Kong. All rights reserved.
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
module NCTools
module NetCDFTools

export NcDim

Expand Down
2 changes: 1 addition & 1 deletion test/debug.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NCTools
using NetCDFTools
using NCDatasets

# f = "/mnt/g/Researches/CMIP6/CMIP6_ChinaHW_mergedFiles/HItasmax/hist-GHG/HItasmax_day_ACCESS-CM2_hist-GHG_r1i1p1f1_gn_19610101-20141231.nc"
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Test
using NCTools
using NetCDFTools
using Ipaper

# println(dirname(@__FILE__))
Expand Down
4 changes: 2 additions & 2 deletions test/test-bilinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ using Test

@testset "nanmean" begin
x = [1.0, 2, 3, 4]
@test NCTools.nanmean4(x...) == 2.5
@test NCTools.mean4(x...) == 2.5
@test NetCDFTools.nanmean4(x...) == 2.5
@test NetCDFTools.mean4(x...) == 2.5
end


Expand Down
2 changes: 1 addition & 1 deletion test/test-nc_write.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# using NCTools
# using NetCDFTools
# using Test

import Random: seed!
Expand Down
2 changes: 1 addition & 1 deletion test/test-nc_write.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```{julia}
using NCTools
using NetCDFTools
using Test
import Random: seed!
```
Expand Down
2 changes: 1 addition & 1 deletion test/test-ncvar_def.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NCTools
using NetCDFTools

function create_nc()
isfile(f) && rm(f)
Expand Down

0 comments on commit 7c4ddf0

Please sign in to comment.