<commit_before># download-nldas-forcings
The Matlab function, 'getNldasForcing.m' will help users download [NLDAS](http://ldas.gsfc.nasa.gov/nldas/) data forcings to their local computer.

### Requirements

Matlab R2008a+. You can verify the version of Matlab by typing:

      version

You must first install [nctoolbox](https://github.com/nctoolbox/nctoolbox). Follow the instructions on that page to install.

You must have java version 7 or higher. You can verify the version of Java used by Matlab by typing:

      version('-java')

The version returned should start with 'Java 1.7.' If it doesn't, you can try updating the Matlab JVM: http://www.mathworks.com/support/solutions/en/data/1-1812J/

### Demo

Use the file, 'callGetNldasForcing.m' to test out the downloading of two days of hourly NLDAS data. Locations to be downloaded are in the input file, 'inFile.txt.'

The 'callGetNldasForcing.m' script will create an output directory, 'forcingFromNasa,' with text files holding each location's NLDAS forcing data.<commit_msg>edits to README.md<commit_after># download-nldas-forcings
The Matlab function, 'getNldasForcing.m' will help users download [NLDAS](http://ldas.gsfc.nasa.gov/nldas/) data forcings to their local computer.

### Requirements

Matlab R2008a+. You can verify the version of Matlab by typing:

      version

You must first install [nctoolbox](https://github.com/nctoolbox/nctoolbox). Follow the instructions on that page to install.

You must have java version 7 or higher. You can verify the version of Java used by Matlab by typing:

      version('-java')

The version returned should start with 'Java 1.7.' If it doesn't, you can try updating the Matlab JVM: http://www.mathworks.com/support/solutions/en/data/1-1812J/

### Demo

The script, 'callGetNldasForcing.m' will
* Read the site name, latitude, and longitude of two arbitrary locations found in the input file, 'inFile.txt.'
* Define the range of dates over which to download. This is initially set to only 2 days for testing, which should take about a minute.
* Place output in a directory it creates called 'forcingFromNasa.' Each location's forcing data will be in a tab-delimited .txt file named after the site name. Details about the site's location are provided in a header in each file.
The above options can be changed in the 'callGetNldasForcing.m' script.

### Contact
If you have any questions or edits, please [contact me](mailto:<EMAIL>) or create a new pull request.
{'fraction_non_alphanumeric': 0.08164915117219078, 'fraction_numerical': 0.010105092966855295, 'mean_word_length': 4.334051724137931, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1106225', 'n_tokens_mistral': 759, 'n_tokens_neox': 722, 'n_words': 324}