Skip to main content

A personal reimplementation of NowcastNet inference framework

Project description

Introduction

This project is a personal reimplementation of the NowcastNet inference framework. The original research, titled "Skilful nowcasting of extreme precipitation with NowcastNet," by Yuchen Zhang, Mingsheng Long et al., was published in Nature and can be accessed at https://www.nature.com/articles/s41586-023-06184-4. Additionally, the original code by Yuchen Zhang is available at https://doi.org/10.24433/CO.0832447.v1.

Getting Started

Begin by cloning the repository:

git clone https://github.com/VioletsOleander/nowcastnet-rewritten.git

Next, setup the environment:

conda create -n nowcastnet python=3.10
conda activate nowcastnet
pip install -r requirements.txt

You may need to implementated your own code to read the dataset. Sample Code for reading the radar dataset is provided in the datasets directory.

To ensure compatibility with this reimplementation's architecture, weights have been modified by me and are available for downloading from Hugging Face.

Usage

To start inference, run inference.py with required arguments. To get an overview of the arguments, start with the basic command:

python inference.py -h

Here is an example shell script do_inference.sh to streamline the process. You can adjust it accordingly:

#!/bin/bash
python inference.py \
    --case_type normal \
    --device cuda:0 \
    "path_to_weights" \
    "path_to_data" \
    "path_to_result" \

Ensure that do_inference.sh has executable premissions:

chmod +x do_inference.sh

Then run the script using:

./do_inference.sh

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

nowcastnet_rewritten-0.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

nowcastnet_rewritten-0.0.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file nowcastnet_rewritten-0.0.1.tar.gz.

File metadata

  • Download URL: nowcastnet_rewritten-0.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nowcastnet_rewritten-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f2be269171258a55b4ec40e6bba5672c827fd706c0c6382db6762505b71bdd81
MD5 b424b095be482e0ac21dabde11ecace1
BLAKE2b-256 764f73135fc7c15a0376c95eebeadb34aa32f901560625d44eeb6f7f42b963a2

See more details on using hashes here.

File details

Details for the file nowcastnet_rewritten-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nowcastnet_rewritten-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d557abc663893c2b4fe7a84d77016549103b4de974f7959bd2a046e20d1181
MD5 bddb068f8a2bbccb64fd19d6752dbc9a
BLAKE2b-256 f88635eae5225d1651322073442807487c4287f98f3560241503e90b3eb4a724

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