Skip to content

Python script to download data from gesdisc.eosdis.nasa.gov

Notifications You must be signed in to change notification settings

soszhangyue/Python-MERRA2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-MERRA2

Python script to download data from gesdisc.eosdis.nasa.gov

Functions

  • Skip already downloaded files.
  • Automatically merge files by year.
  • Allow multi-field selection for each table.

Usage

Setup authentication

cd ~
touch .netrc         # Create File
chmod 0600 .netrc    # Fix Permission
echo "machine urs.earthdata.nasa.gov login USERNAME password PASSWORD" >> .netrc
                     # Save Authentication
touch .urs_cookies

Project structure

File Name Purpose
download.py main download logic
variable.py define download urls and paths
test.py run download tests

Directory

.
├── download.py
├── resources
│   ├── index.npy (log download status)
│   ├── FIELD_day_merra2_reanalysis_2015.nc4 (storage data for specific FIELD)
├── test.py
└── variables.py

Run

cd PROJECT_DIRECTORY
python test.py

About

Python script to download data from gesdisc.eosdis.nasa.gov

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Shell 0.3%