Skip to content

A python module built using earthaccess APIs created to schedule automatic plots of sea surface temperature using user given coordinates.

License

Notifications You must be signed in to change notification settings

shreybh1/oceanData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oceanData

The oceanData module searches the MODIS satellite data to obtain sea surface temperature using user specified search parameters which calls the NASA earthaccess package. The py files are in oceanData folder. The repository uses a scheduler to obtain the plots for specified intervals.

Create a new environment package for earthaccess

The scripts need conda environments to run the packages.

# Earth access module for the NASA earth access package  
conda install -c conda-forge earthaccess

# xarray package for data analysis
conda install -c anaconda xarray

# open blas package may be required for MAC users 
conda install openblas 

# h5netcdf for xarray 
conda install -c conda-forge h5netcdf
conda install dask 

# plotting using matplotlib
conda install matplotlib 

# job scheduling using apscheduler 
conda install -c anaconda apscheduler 

Alternatively, env.yml can be used to build the conda environment to run the scripts using the following command.

conda env create -f env.yml 

Create access file providing your credentials to use earth access

Access token can be created using earthdata website using this link.

touch ~/.netrc 
echo "machine urs.earthdata.nasa.gov" >> ~/.netrc 
echo "	login <enter username>" >> ~/.netrc
echo "	password <enter password>" >> ~/.netrc 

Documentation

GH pages is used to host documentation.

Alternatively, mkdocs can be used to host the documents locally using the following pages.

mkdocs build 
mkdocs serve 

Quick start

scheduler.py is the main file containing the scheduler which then calls the sst function for default interval of 1 hour.

python3 scheduler.py  

A test flag can be added which calls the sst once, to verify if the plot function is working as expected.

python3 scheduler.py test 

About

A python module built using earthaccess APIs created to schedule automatic plots of sea surface temperature using user given coordinates.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published