Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/adjust time function #272

Merged
merged 14 commits into from
Jun 25, 2024
Merged

Feature/adjust time function #272

merged 14 commits into from
Jun 25, 2024

Conversation

sliu008
Copy link
Contributor

@sliu008 sliu008 commented Jun 24, 2024

Description

Update l2ss-py to remove warnings and better get the time variable

Overview of work done

  • Add function to get the time variable for a granule for better temporal subsetting
  • Update l2ss-py to remove warnings using sizes instead of dims
  • Add script and update github actions to deploy to harmony for release candidates and release
  • Add parallelization to pytest

Overview of verification done

  • Tested locally
  • Ran pytests locally
  • Tested harmony deploy script but didn't make actual deployment

PR checklist:

  • Linted
  • Updated unit tests
  • Updated changelog
  • Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

@sliu008 sliu008 marked this pull request as ready for review June 24, 2024 20:40
parser.add_argument("--tag", help="The new tag version to update.", required=True)
args = parser.parse_args()

url = f"https://harmony.{'uat.' if ENV == 'uat' else ''}earthdata.nasa.gov/service-image-tag/#podaac-l2-subsetter"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this doesn't work, trying taking out the "#". I've always ran it without the # in the url.

# then check if any variables have 'time' in the string if the above loop doesn't return anything
for var_name in list(dataset.data_vars.keys()):
var_name_time = var_name.strip(GROUP_DELIM).split(GROUP_DELIM)[-1]
if len(dataset[var_name].squeeze().dims) == 0:
continue
if var_name not in total_time_vars and 'time' in var_name_time.lower() and dataset[var_name].squeeze().dims[0] in lat_var.squeeze().dims:
print(var_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to a log call or remove

@sliu008 sliu008 merged commit 55ae1e0 into develop Jun 25, 2024
2 checks passed
@sliu008 sliu008 deleted the feature/adjust_time_function branch June 25, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants