On a local machine the user should have installed the following programs as well as setting up a user account with Earthdata. The list below gives a summary of what is needed to be done prior to work with NASAaccess software on any local machine:
After registration with EarthdataNASAaccess software package users should create a reference file (.netrc) with Earthdata credentials stored in it to streamline the retrieval access to NASA servers.
Creating the .netrc file at the user machine Home directory and storing the user NASAGES DISC logging information in it is needed to execute the NASAaccess package commands. Accessing data at NASA servers is further explained at NASA earth data wiki. The manual steps for creating the .netrc file has been discussed in NASAaccess R package installation. The .netrc file should look like:
Note
In your .netrc file <uid> is your user name and <password> is your Earthdata Login password.
For Windows OS machines user the NASAGES DISC logging information should be saved in a file _netrc beside the .netrc file explained above. Define a HOME variable in your Environment Variables by picking any directory you want to be referenced as your HOME directory. In many machines HOME directory is already set to be your personal Documents folder (i.e., C:\Users\yourname\Documents). Store your netrc file(s) in your Documents or the specfied HOME directory.
Installing the r-nasaaccess conda package is obtained by:
condainstall-cconda-forger-nasaaccess
2.3. Getting Started with the NASAaccess Conda package
The NASAaccess commands can be easily executed in the conda environment by writing the NASAaccess commands to a separate file (e.g., work.R) and running it by calling the Rscript executable in conda.
Rscriptwork.R
More examples on NASAaccess functionalities can be found Here.