Skip to main content

A CIMISS client for python

Project description

cimiss-python

CIMISS client for Python 3

Installation

Python >= 3.6

Ubuntu

sudo apt install -y build-essential libssl-dev libbz2-dev
pip install cimiss-python

Windows

pip install cimiss-python

CentOS

未经验证

yum groupinstall "Development Tools"
yum -y install zlib-devel bzip2-devel openssl-devel
pip install cimiss-python

Usage

CIMISS-MUSIC仅为内网用户提供服务,且需要拥有相应数据访问权限的账号。

import cimiss

# host 不带http前缀,通常为纯ip地址
client = cimiss.Query(user_id='myuserid', password='mypasswd', host='myhost')


# callAPI_to_array2D
# array_2d(interface_id: str, params: Dict[str, str]) -> pd.DataFrame
resp_array_2d = client.array_2d(interface_id="getSurfEleByTime",
                                params={'dataCode': "SURF_CHN_MUL_HOR",
                                        'elements': "Station_ID_C,PRE_1h,PRS,RHU,VIS,WIN_S_Avg_2mi,WIN_D_Avg_2mi,Q_PRS",
                                        'times': "20181224000000",
                                        'orderby': "Station_ID_C:ASC",
                                        'limitCnt': "10"}
                                )
# pandas
# https://pandas.pydata.org/pandas-docs/stable/


# callAPI_to_gridArray2D
# grid_array_2d(interface_id: str, params: Dict[str, str]) -> xr.DataArray
resp_grid = client.grid_array_2d(interface_id="	getNafpEleGridByTimeAndLevelAndValidtime",
                                 params={'dataCode': 'NAFP_FOR_FTM_HIGH_EC_ANEA',
                                         'fcstEle': 'TEM',
                                         'time': '20191206000000',
                                         'fcstLevel': '1000',
                                         'validTime': '0'
                                         }
                                 )
# xarray
# http://xarray.pydata.org/en/stable/


# callAPI_to_fileList
# def file_list(interface_id: str, params: Dict[str, str]) -> pd.DataFrame


# callAPI_to_saveAsFile
# save_file(interface_id: str, params: Dict[str, str], data_format: str, file_name: str) -> str


# callAPI_to_downFile
# down_file(interface_id: str, params: Dict[str, str], file_dir: str) -> List[str]#

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cimiss-python-0.1.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cimiss_python-0.1.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file cimiss-python-0.1.3.tar.gz.

File metadata

  • Download URL: cimiss-python-0.1.3.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for cimiss-python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 82e1b639fa372aa82190f7060f8ec1349a36aeb408e94031b736f8190e5bbc99
MD5 661b10961d0782c8bb6134c3deac2449
BLAKE2b-256 6eb46b170576e64e7379a60459eda8f31a323d13f1337c5f46ee27004d973f32

See more details on using hashes here.

File details

Details for the file cimiss_python-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cimiss_python-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for cimiss_python-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f7e8992712ec07c983ac08e01ce8d2ee18ad9ef78335f9ef2a25442fa439e6d
MD5 c9235ae7b6fa9329d3d6eb8d8d980a99
BLAKE2b-256 3af83842ad489bee4109f24e38267b325d233257b90832b0746f865ba83c3766

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page