Skip to content

Commit

Permalink
Merge pull request #1 from wvenialbo/pre-release
Browse files Browse the repository at this point in the history
Pre release v0.1-rc1
  • Loading branch information
wvenialbo authored Oct 20, 2024
2 parents b030c5e + 45878a3 commit b8a1594
Show file tree
Hide file tree
Showing 39 changed files with 1,120 additions and 731 deletions.
35 changes: 32 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
],
"mypy-type-checker.importStrategy": "fromEnvironment",
"pylint.importStrategy": "fromEnvironment",
"pylint.enabled": true,
"pylint.severity": {
"convention": "Warning",
"error": "Error",
"fatal": "Error",
"refactor": "Hint",
"warning": "Warning",
"undefined-variable": "Warning",
},
"pylint.args": [
// "--disabe=C0116",
],
Expand Down Expand Up @@ -231,6 +240,21 @@
"editor.colorDecorators": true,
"editor.defaultFormatter": "vscode.json-language-features",
},
"[toml]": {},
"evenBetterToml.formatter.alignComments": true,
"evenBetterToml.formatter.alignEntries": true,
"evenBetterToml.formatter.allowedBlankLines": 1,
"evenBetterToml.formatter.arrayAutoExpand": true,
"evenBetterToml.formatter.arrayTrailingComma": true,
"evenBetterToml.formatter.columnWidth": 120,
"evenBetterToml.formatter.indentEntries": true,
"evenBetterToml.formatter.indentString": " ",
"evenBetterToml.formatter.indentTables": true,
"evenBetterToml.formatter.inlineTableExpand": true,
"evenBetterToml.formatter.reorderArrays": false,
"evenBetterToml.formatter.reorderKeys": false,
"evenBetterToml.formatter.trailingNewline": true,
"evenBetterToml.semanticTokens": true,
// MarkDown editor settings
"[markdown]": {
"editor.defaultFormatter": "vscode.markdown-language-features",
Expand Down Expand Up @@ -307,6 +331,12 @@
"text": "Generate NumPy Style Python Docstrings (numpydoc)."
}
],
"github.copilot.chat.fixTestFailure.enabled": true,
"github.copilot.chat.scopeSelection": true,
"github.copilot.chat.useProjectTemplates": true,
"github.copilot.editor.enableCodeActions": true,
"github.copilot.renameSuggestions.triggerAutomatically": true,
"github.copilot.chat.search.semanticTextResults": true,
"github.copilot.editor.enableAutoCompletions": true,
"github.copilot.enable": {
"*": true,
Expand All @@ -319,12 +349,11 @@
"markdown": true,
"plaintext": true,
"python": true,
"scminput": false,
"scminput": true,
"toml": true,
"yaml": true,
},
"vsintellicode.python.completionsEnabled": false,
"vsintellicode.sql.completionsEnabled": false,
"vsintellicode.python.completionsEnabled": true,
// Productivity tools settings
"diffEditor.diffAlgorithm": "advanced",
"diffEditor.wordWrap": "off",
Expand Down
3 changes: 0 additions & 3 deletions GOES_DL/__init__.py

This file was deleted.

39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ datasource = DatasourceHTTP(locator)

downloader = Downloader(
datasource=datasource,
product_locator=locator,
locator=locator,
date_format="%Y-%m-%dT%H:%M%z", # use a custom short date format
)

# Set your desired date...
files1 = downloader.get_files("2012-08-23T00:00Z")
files1 = downloader.get_files(start="2012-08-23T00:00Z")

# ...or your desired date range
files2 = downloader.get_files(
"2012-08-23T00:00-0004",
"2012-08-24T00:00-0004",
start="2012-08-23T00:00-0004",
end="2012-08-24T00:00-0004",
)
```

Expand All @@ -113,22 +113,22 @@ from GOES_DL.datasource import DatasourceAWS
from GOES_DL.downloader import Downloader

# Initialize the downloader for GOES-R Series (set your desired product)
locator = GOESProductLocatorABIPP("CMIP", "F", ["C02", "C13-C15"], "G16")
locator = GOESProductLocatorABIPP("CMIP", "F", ["C02", "C08", "C13"], "G16")

datasource = DatasourceAWS(locator)

downloader = Downloader(
datasource=datasource,
product_locator=locator,
locator=locator,
)

# Set your desired date...
files1 = downloader.get_files("2024-08-23T00:00:00Z")
files1 = downloader.get_files(start="2024-08-23T00:00:00Z")

# ...or your desired date range
files2 = downloader.get_files(
"2024-08-23T00:00:00-0004", # use the default date format
"2024-08-24T00:00:00-0004",
start="2024-08-23T00:00:00-0004", # use the default date format
end="2024-08-24T00:00:00-0004",
)
```

Expand All @@ -147,17 +147,17 @@ datasource = DatasourceAWS(locator) # also available in HTTP from NCEI

downloader = Downloader(
datasource=datasource,
product_locator=locator,
locator=locator,
date_format="%Y-%m-%dT%H:%M%z",
)

# Set your desired date...
files1 = downloader.get_files("1984-08-23T00:00Z")
files1 = downloader.get_files(start="1984-08-23T00:00Z")

# ...or your desired date range
files2 = downloader.get_files(
"1984-08-23T00:00-0004",
"1984-08-24T00:00-0004",
start="1984-08-23T00:00-0004",
end="1984-08-24T00:00-0004",
)
```

Expand All @@ -166,10 +166,10 @@ files2 = downloader.get_files(
The general workflow for downloading data using **GOES-DL** is as follows:

1. **Initialize the locator**: Import the appropriate locator class for the
desired product and satellite and initialize a locator object. The locator
provides the necessary information to locate the data files in the dataset
repository. This is the only step that is specific to the dataset being
downloaded.
desired product and satellite and initialize a locator object. The product
locator provides the necessary information to find the data files in the
dataset repository. This is the only step that is specific to the dataset
being downloaded.
2. **Initialize the datasource**: Import the appropriate datasource class for
the desired dataset and instantiate a datasource object. The datasource
provides the necessary functionality to access the data files from the
Expand All @@ -194,8 +194,9 @@ format to the downloader object during initialization.

## Data Sources

1. **NOAA NCEI Archive**: GOES-8 to GOES-15 data is available through NOAA’s
National Centers for Environmental Information.
1. **NOAA NCEI Archive**: GridSat-B1 Climate Data Record and GOES-8 to GOES-15
data is available through NOAA’s National Centers for Environmental
Information.
2. **NOAA AWS Cloud Archive**: GOES-16 to GOES-18 data and GridSat-B1 Climate
Data Record are accessible via the NOAA archive hosted on AWS.

Expand Down
Loading

0 comments on commit b8a1594

Please sign in to comment.